No, both components are working parallel to each other.
You can even add both motion sensors to an entity card and watch the different reaction time.
As an FYI, using the CC, it was able to find my RunLessWire switch.
So far, no luck finding my Lutron Aurora dimmer/switch however.
I feel I must be missing something. I have a 4 button tap switch. I’ve installed huesensor in custom_components, added binary_switch of huesensor and restarted pi. In developer tools/states I can see sensor.tap_switch but no binary_sensor.
How do I set an automation up for each button?
In Hue app the button is in ‘home’ not a room, does that matter ?
because it’s not a binary sensor but a regular one.
config:
sensor:
#custom hue component
- platform: huesensor
state:
sensor.hue_dimmer_switch_1 unknown last_updated: 2019-07-10,08:09:23
battery: 70
on: true
reachable: true
friendly_name: Hue dimmer switch 1
icon: mdi:remote
Thanks. So its a sensor. How do I know what it responds with when a given button is clicked. Rather noob with lots of this still ! In this and maybe other situations how can I find such facts? Is there a way to enable a log at that level?
Hi,
As soon as I add this to my config:
#hue sensor
- platform: huesensor
device_tracker:
- platform: huesensor
sensor:
- platform: huesensor
and preform a config check I get the spinning wheel of death. When I restart my rasberrypi it doesn’t allow me to open the dashboard.
I have everything in the right folders so I am not sure what I am doing wrong to cause the crash:
Any help would be great!
Thank you in advance
if anything, there’s an # in the config where binary_sensor should be (probably a cut and paste error…:
should be:
# hue sensor
binary_sensor:
- platform: huesensor
device_tracker:
- platform: huesensor
sensor:
- platform: huesensor
and not
#hue sensor
- platform: huesensor
device_tracker:
- platform: huesensor
sensor:
- platform: huesensor
Hi Marius,
Thanks for pointing that out.
I changed it to what you suggested and when I check my config file I get the spinning wheel of death. If I restart my rasberrypi it freezes and won’t let me open the dashboard:
# hue sensor
binary_sensor:
- platform: huesensor
device_tracker:
- platform: huesensor
sensor:
- platform: huesensor
I have both Hue sensors and switches. When I’ve used a switch to turn on a light I would like to disable the sensor and then turn it back on when I’ve turned it off with the switch. Ideally I would like to have the same behavior if I’ve turned on/off a light with the Hue app as well.
Would this be possible with this custom component?
that doesn’t sound good…
All I can say is I dont experience that. Are you sure you have installed all the files correctly, that is, used the raw code, and not copied html?
not sure what you want, but are you trying to switch-off the motion-sensors? That is possible indeed.
Just found this is possible and it sounds potentially just what I am looking for.
I have a Friends of Hue Niko switch and want to be able to use it press a button and make the sonos play. Trouble is I am very new to HA and have no idea what I am doing.
I am using this page:
But in the posts above etc have read mention of Hue.py amongst other things.
The readme file says “Place the custom_components folder in your configuration directory”
within the huesensor folder on github though I cannot see any mention of a hue.py file?
Really silly question but how do I download and add the files in custom_components/huesensor to my custom components folder on my HA install?
Are these the right files to make use of the Hue dimmer switch or the Friends of Hue switches?
I can see a pull request for Friends of Hue:
But that leaves me even more confused, is this a seperate set of files, are these now incorporated into the original files?
Sorry, I am new to HA and even newer to Github and am trying to learn by finding real use cases like using the FoH switch for none Hue projects, but its all a bit confusing.
you can press a button, check the states (of the sensor the CC makes for that switch in a sensor) which button that was, and then use that as a trigger for an automation, to fire a service in the action part…
example:
here’s a switch which had 1_click pushed.
so using an automation you could trigger on
trigger:
platform: state
entity_id: sensor.auditorium_schakelaar
to: ‘1_click’
and then use an action for the sonos player.
of course, If your new to HA that is maybe over-ambitious…
mind you, this is just being very quick and dirty, to give you an idea.
thanks. trouble is I do not think the switch is recognised by HA as it is a kinetic friends of hue switch which seems to work via Zigbee. There is nothing I have seen to enable adding this switch into HA which is why I thought the talk of Friends of Hue relating to this Github post would be of use, but I got stuck at the first hurdle of how to actually install the custom config files.
I see mention of Hue.py in all the posts above, and cannot even see that as a file in the customer components / hue sensor files on Github so was hoping someone could give some guidance as to how to get the required files into my HA install.
If I am wrong about the above and I can find a way of detecting the switch in HA even better
no more hue.py… that was long time ago. now these are the files:
as is explained there, you should save these filed under /custom_components/huesensor, and then add this in your config:
binary_sensor:
- platform: huesensor
device_tracker:
- platform: huesensor
sensor:
- platform: huesensor
Great addon!
But one question - can this sense multiple hue switches? I have 2 switches, and this in only detecting one of them.
Any help?
Thank you.
I can now see a “sensor.friends_of_hue_switch_1”
need to check when home whether this is the hue remote or the actual friends of hue switch. Cannot see another instance for a hue remote so not sure but will try them.
Currently see this:
so looks positive, just need to play and see which switch it has found.
this is the FOH switch, check the name, and the state. check here https://github.com/robmarkcole/Hue-sensors-HASS/blob/068b4bee3e109398ffeb2b7afed5f3f8670e7c87/custom_components/huesensor/sensor.py#L115 to see where the name and state origin: definitely a FOH switch
Perfect thank you. I will have a play when I get home but looks promising.
I wish I understood HOW it all worked, but at least I can see that it does for now.
the code you linked to is the sensor code I downloaded and added to custom components isnt it? (just checking I understand this)
yep, as you can see in the link… or on the page its links to