Hue motion sensors + remotes: custom component

Asking again, can this support multiple switches?
(or am I just doing something wrong?)

It can. I don’t know if this is where something might go wrong at your end, but the following is what I had to do to make it work. The component assumes, and indeed requires, that you do not change the entity names of the switches from within the Hue app; ie. that you use the default Hue naming.

I just set this up. Prior to installing the custom component, I had renamed a switch to let’s say, “My switch”. I installed the component, and added a new, second switch from within the Hue app. In the Hue app, I had two switches: “My switch” and “Hue Dimmer Switch 1”. The latter was successfully picked up by the Hue component — it created a sensor called sensor.hue_dimmer_switch_1.

In order to get both switches into HA, I renamed “My switch” into “Hue Dimmer Switch 2” and restarted HA. I now had two sensors, as expected: sensor.hue_dimmer_switch_1 and sensor.hue_dimmer_switch_2.

I didn‘t have to rename them.
All dimmers were there at the beginning and the new ones were added when I added them with the hue app.

ok, so this custom component is fantastic! HA now recognises my friends of hue wall switch and detects things like left_upper_release

question now is how do I use these to automate things, I do not know the first thing about automation but would like to learn and would ideally like to use HA to detect a press and a double press?

Would anyone be able to help with example code for press this button once, turn light on if its off and turn it off if its on?

@Matt_Barnes You have to use Automation, it’s pretty straightforward. You need to learn to use basic conditions like if is_state, elif, endif. I use a Hue Tap Switch switch for my three roller shutters with a single button for each: they open if they are closed, they close if they are open, and they stop if they are opening or closing.

1 Like

I have the standard hue component configured now in Hassio but would like to add the remotes to my setup. Do I need to redo everything when I install this custom component or can I just use it to add the remotes?

I just used it to add the remotes, all my old config was fine.

1 Like

I’ve looked through this whole post, but sorry if I missed the answer…After installing from HACS, Home Assistant sees my hue light switches (which it didn’t before) but the temperature/lx values for my Hue motion sensor (which it saw before installing this component) are still “unknown”. All i really care about is utilizing the temperature sensor.

In config file, I have sensor, binary_sensor, and device_tracker all set to to platform: huesensor. I have the huesensor folder with each python file. However, I DON’T have a huesensor.conf file… is this what I am missing?

You should also be getting the temp sensors with the official Hue integration…

I’m using the component about 1,5-2 years and as long I remember I could see my hue taps as entities, but never used them, though tested if it was functional.

Today I decided finally to use the hue taps in some automations but I realized that one of the is not there as an entity anymore. I cleaned the pycache and restarted, but nothing. Removed the component and then installed it again but just one of the hue taps.

Any ideas what could be wrong?

Did you find a solution for that one? I have exactly the same problem.

It seems that the ids generated for the hue taps are not unique, that’s why it is just one sensor.
I modifiied the sensor.py and I got it working. I’ll do a PR as soon I have the time.

Sorry but I´m totally lost.

My sensor ID from http://hueIP/api/username/sensors/10 is:
{“state”:{“temperature”:2400,“lastupdated”:“2019-11-12T16:35:53”},“swupdate”:{“state”:“noupdates”,“lastinstall”:“2019-10-24T19:50:42”},“config”:{“on”:true,“battery”:100,“reachable”:true,“alert”:“none”,“ledindication”:false,“usertest”:false,“pending”:},“name”:“Hue temperature sensor 1”,“type”:“ZLLTemperature”,“modelid”:“SML001”,“manufacturername”:“Philips”,“productname”:“Hue temperature sensor”,“swversion”:“6.1.1.27575”,“uniqueid”:“00:17:88:01:06:f6:bc:62-02-0402”,“capabilities”:{“certified”:true,“primary”:false}}

In my confiuration.yaml is:

sensor:

  • platform: template
    sensors:
    decaktemp:
    friendly_name: ‘Decak room temperature’
    value_template: ‘{{state_attr(“binary_sensor.decaktemp”, “temperature”)}}’
    unit_of_measurement: °C

Hue bridge working fine as I have multiple light switches operating without problem.
HUE Bridge V2 on HASS 0.89.2
This “decaktemp” is name of motion sensor in Philips HUE android app - is it correct to use this?

Anybody an idea?

having had doubts about the device_tracker for the app device before (it never really responds to anything practically never updates its state), I now must get back to this:

I’ve installed a new phone, loaded the app and enabled remote access and remote control (buitenshuisbediening in Dutch). Of course I also configured the home location.

Unfortunately, no device_tracker.hue_devicename is created. Checking the api, I clearly can see 2 geofence sensors and all their attributes with the correct name.

Somehow the CC doesn’t get triggered to create the new device_tracker, or maybe it does, and it simply doesn’t work.

Could anyone check to see if they have a working device_tracker? Please @yottatsa forgive the tag, but could you see if all is well. and what I maybe could do to solve the issue. If you need a bug report on the GitHub repo, let me know.

Hi,

since any version of home assistant, I don’t see the binary_sensor for the hue motion and the hue dimmer anymore. Is there a known problem? I use Hue-sensors-HASS with HACS. I’m useing home assistant 0.101.3.

1 Like

Same here!! All my sensors are re-appearing every 5s for about 1s, dimmers & taps not present at all. I tried turning them on & off, deleting & re-adding, no luck. The only thing I ended-up noticing is this only happens when I add a 1st gen bridge (no sensor / dimmer / tap associated to this one). @robmarkcole I’ll check at debug level, so far haven’t seen much else, any help or advice is appreciated

just checking-in, latest dev ( 0.102.0.dev20191117) fixed the issue for me (both sensors & remotes) :smiley:

Just to say I love this add on. I now have a Niko friends of hue wall switch which I can use to control sonos.

Thank you!

Sorry if this has already been answered but I can’t get my Hue dimmers to show. All my lights and motions sensors are there, but thats it.