Support for Hue switches (tab/ dimmer)

If you want instant events of remotes Hue bridge isn’t optimal to use.

To create a new post from an existing topic, click in the date and “+ New Topic.”

…mmm… I don’t have the “+New Topic” under the link

See the “4h” in the screenshot? Click in that link and there should be “New Topic” below the “selected” link.

A PR for this was opened and closed by @marthocoo here

I found the custom component written by @robmarkcole really helpful. Exposing the hue switches as sensors means I can at write automations to make them do what I want.

@robmarkcole: Is there any chance you may consider releasing this into an official Hassio add-on?

HI @brendan see Official Hue sensors component

1 Like

@robmarkcole: Thank you for the link. I really appreciate this.
My start in “home automation” was grabbing a few hue globes and switches. I have 3 Hue Motion sensors and half a dozen dimmer switches I am using with your custom app now. Figured there was no point wasting them.

Thanks for your work. I’ll check the other thread.

1 Like

@robmarkcole: Thanks for the excellent work on the Hue switches.
Folks I have a quick question (I hope).
I have a functioning environment with some hue lights and multiple bridges with some basic automations with switches around the house. Automations using the motion sensors work a treat.

I would love to enable a hue switch to toggle a few things around the house too.
I am running the stock HA hue integration under 0.95.4 with no problems so far (on linux docker).

Per https://github.com/robmarkcole/Hue-sensors-HASS i’ve added the custom_components/huesensor folder.
have followed https://github.com/home-assistant/home-assistant/pull/9796 in configuration.yaml
(do I need to enable the hue platform?)

HA is now throwing two new errors

Error while setting up platform hue
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 122, in _async_setup_platform
    task = async_create_setup_task()
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 87, in async_create_setup_task
    None, platform.setup_platform, hass, platform_config,
AttributeError: module 'homeassistant.components.hue.sensor' has no attribute 'setup_platform'
Connection lost. Reconnecting…

Exception occurred:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/zeroconf.py", line 2245, in send
    bytes_sent = s.sendto(packet, 0, (addr, port))
PermissionError: [Errno 1] Operation not permitted

AND unable to see any dimmers within my entities.

Where the heck do I start to resolve this?
or have I missed something fundamental?

Any help greatly appreciated.