FOR COMMUNITY SUPPORT PLEASE USE THIS THREAD
This custom component provides support for Hue motion sensors, remotes, and some friends of Hue devices.
Place the custom_components
folder in your configuration directory (or add its contents to an existing custom_components
folder). You need to set up your Hue bridge first. Alternatively install via HACS.
Once installed add to your configuration:
binary_sensor:
- platform: huesensor
remote:
- platform: huesensor
device_tracker:
- platform: huesensor
Hue dimmer remotes can be used for a click and long press (hold button for 2 sec and see LED blink twice).
As per this issue it is recommended to use the default naming options in the Hue app in order to ensure sensible sensor names in HA.
To add the following group to your HA frontend, add the following to groups.yaml
(obviously editing to use your sensors):
default_view:
view: yes
entities:
- group.Hue
Hue:
entities:
- binary_sensor.bedroom_motion_sensor
- binary_sensor.hall_motion_sensor
- binary_sensor.living_room_motion_sensor
Temperature, light level and other data in the sensor attributes can be broken out into their own sensor using a template sensor, for example:
- platform: template
sensors:
living_room_temperature:
friendly_name: 'Living room temperature'
value_template: '{{state_attr("binary_sensor.living_room_motion_sensor", "temperature")}}'
unit_of_measurement: °C
living_room_light_level:
friendly_name: 'Living room light level'
value_template: '{{state_attr("binary_sensor.living_room_motion_sensor", "lx")}}'
unit_of_measurement: lux
This custom component can be tracked with the help of HACS.
If you get an error when using this component, the procedure for debugging is as follows.
- Open an issue here on Github. Include the error message, release number of the custom component.
- Download the Hue API response following the instructions here. Save into a .json file.
- Parse the json file using the hue_sensors package and report the device ID (e.g. RWL_06-02) that is causing your issue.
There are a couple of examples of this process in the debugging_issues folder.
Please format code usign Black before opening a pull request.
A big thanks to @yottatsa for his many contributions to this work, check out his profile!
https://github.com/sponsors/robmarkcole
If you or your business find this work useful please consider becoming a sponsor at the link above, this really helps justify the time I invest in maintaining this repo. As we say in England, 'every little helps' - thanks in advance!