Coder Social home page Coder Social logo

dohome_rgb's Introduction

DoHome RGB

Home Assistant integration


DoHome lights Home Assistant integration. Supports DoHome RGB bulb and strip.

Supports

  • RGB color
  • White temperature
  • State update
  • Re-establishing a connection after disconnection
  • Group control

Installation

Add this repository to your hapm.yaml by running:

hapm add mishamyrt/dohome_rgb@latest

HACS

Add this repo as HACS custom repository.

https://github.com/mishamyrt/dohome_rgb

Then find the integration in the list and press "Download".

Manual

Copy dohome_rgb folder from latest release to /config/custom_components folder.

Configuration

Devices are configured in groups. If you need to configure only one device, specify it in a separate group. Example:

light:
  # Group of bulbs (e.g. a chandelier)
  # entity_id will be dohome_rgb_2b5a_13a1_e77a
  - platform: dohome_rgb
    sids:
      - '2b5a' # Last 4 symbols of device MAC-address
      - '13a1'
      - 'e77a'
  # Individual bulb
  # entity_id will be dohome_rgb_5f7e
  - platform: dohome_rgb
    sids:
      - '5f7e'

Thanks

dohome_rgb's People

Contributors

mishamyrt avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

ardakilic

dohome_rgb's Issues

Invalid config for 'dohome_rgb' at configuration.yaml

2024-05-05 19:22:39.892 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from dohome_rgb, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'dohome_rgb' custom integration
2024-05-05 19:22:39.987 WARNING (ImportExecutor_0) [homeassistant.helpers.typing] HomeAssistantType was used from dohome_rgb, this is a deprecated alias which will be removed in HA Core 2025.5. Use homeassistant.core.HomeAssistant instead, please report it to the author of the 'dohome_rgb' custom integration
2024-05-05 19:22:39.992 ERROR (MainThread) [homeassistant.config] Invalid config for 'dohome_rgb' at configuration.yaml, line 10: 'script' is an invalid option for 'dohome_rgb', check: script, please check the docs at https://github.com/mishamyrt/dohome_rgb
Invalid config for 'dohome_rgb' at configuration.yaml, line 11: 'scene' is an invalid option for 'dohome_rgb', check: scene, please check the docs at https://github.com/mishamyrt/dohome_rgb
Invalid config for 'dohome_rgb' at configuration.yaml, line 3: 'default_config' is an invalid option for 'dohome_rgb', check: default_config, please check the docs at https://github.com/mishamyrt/dohome_rgb
Invalid config for 'dohome_rgb' at configuration.yaml, line 6: 'frontend' is an invalid option for 'dohome_rgb', check: frontend, please check the docs at https://github.com/mishamyrt/dohome_rgb
Invalid config for 'dohome_rgb' at configuration.yaml, line 9: 'automation' is an invalid option for 'dohome_rgb', check: automation, please check the docs at https://github.com/mishamyrt/dohome_rgb
2024-05-05 19:22:39.992 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration 'dohome_rgb': Invalid config.
2024-05-05 19:22:39.992 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'dohome_rgb.light': Unable to set up component.

Running the latest version of Home Assistant in LXC container.

My configuration.yaml look like this:

Loads default set of integrations. Do not remove.

default_config:

Load frontend themes from the themes folder

frontend:
themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

light:

  • platform: dohome_rgb
    sids:
    • '5c84' # lowercase is better

Invalid config for 'dohome_rgb' at configuration.yaml

I am aware of the issue and ensure that the syntax is latest for the yaml. Invalid config is still being encountered.

The main error log:
Screenshot 2024-01-15 at 11 55 45

Followed by another two log entries:
Screenshot 2024-01-15 at 11 57 10
Screenshot 2024-01-15 at 11 57 16

Other info:

  • Running on Home Assistant OS
  • The custom component is downloaded via HACS
  • The config/configuration.yaml file shows the following, where 7ED0 is the last 4 chars of the MAC address of the device
# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

light living_room:
  - platform: dohome_rgb
    sids:
      - 7ED0

Questions:

  1. The device is connected but not in pairing model, is that a requirement?
  2. From the error point of view looks like it is not because of variable/argument but rather some function/component calls isn't working? Any experience on this type of issue?
  3. Let me know which direction I should be looking at to troubleshoot the issue?

I am quite new to custom components, especially the troubleshooting, thank you for your understand and help in advance

When I tried to add it python throwed an error

Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.11/site-packages/homeassistant/setup.py", line 332, in _async_setup_component
result = await task
^^^^^^^^^^
File "/root/.homeassistant/custom_components/dohome_rgb/init.py", line 27, in async_setup
hass.data[DOMAIN] = DoHomeGateway(config[DOMAIN][CONF_GATEWAY])
~~~~~~^^^^^^^^
KeyError: 'dohome_rgb'
2024-01-13 14:26:33.059 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform 'dohome_rgb.light': Unable to set up component.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.