Hi Guys,
i have read through many threads and tried many things until i have adapted the right solution of @Skylord123 so that it works correctly with the new Home-Assistant.io version
problem:
Philips Hue has a response time of up to 5 seconds if you simply integrate this via the integration.
Application area:
Since my automations often use the motion sensors, a reaction time of 5 seconds is really miserable.
Solution:
The solution goes via Node-RED and MQTT.
What do you need:
Node-RED:
- node-red-contrib-huemagic
MQTT ( in my case the Mosuitto broker )
How do you do:
–> Link to my configuration: https://pastebin.com/aDxGdngN
- Hue Magic Motion Node
–> configure the HUE bridge in the node and select the sensor - Function Node
–> Adapt the sensor_id
—> Number: Sensor ID of HUE (to be seen in the motion node when it is saved)
—> Sensor meaning for the MQTT mapping - MQTT out Node
–> MQTT Server - Debug Node
Home Assistant:
Create a binary_sensor for mapping with MQTT
# Motion MQTT HUE Sensor
- platform: mqtt
name: KMotionNRed
state_topic: 'home/kitchen/sensor/motion
payload_on: "true
payload_off: "false"
value_template: '{{{ value }}'
device_class: 'motion'.
The display remains the same but is now as fast as in the HUE app.
I hope I can summarize it with this post and help people who have the same problems as I have with the HUE motion sensor.