Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Delay when using Hue motion sensor in HA automation

$
0
0

@HemiBob wrote:

New user here. - I have written my first automation, a simple one to turn on my passageway lights when motion is detected and to dim them after 5 mins of no_motion and then turn them off a minute later.

I had this all set up in the Philips hub and it worked well but some of the lights were not compatible with the Hue (they were Wi-Fi Tasmota bulbs). Hence my use of HA and an automations.yaml script.

The issue I have run into is a delay, sometimes a second or two, between the LED on the Hue motion sensor flashing, ie detecting motion, and the lights turning on, by which time I’ve tripped over something in the dark ;-).

I suspect this is either a polling issue or maybe the sensor has a delay to avoid false triggers, although the Philips app never showed any delay.

So I’m wondering if there is a better way to do this, maybe I could install a ConBee 2 on the RPi, and talk directly to all the devices, cutting out the Hue hub altogether, is that a good idea?
These are my present lines of code:

- id: '1577460350906'
  alias: Select scene Hall bright
  description: ''
  trigger:
  - device_id: e3803637b1094829fa353bbf2d1c60f0
    domain: binary_sensor
    entity_id: binary_sensor.hall_motion_sensor_motion
    platform: device
    type: motion
  condition: []
  action:
  - scene: scene.walking_hall_bright
- id: '1577461092488'
  alias: Select scene Hall dim
  description: ''
  trigger:
  - device_id: e3803637b1094829fa353bbf2d1c60f0
    domain: binary_sensor
    entity_id: binary_sensor.hall_motion_sensor_motion
    for:
      hours: 0
      minutes: 5
      seconds: 0
    platform: device
    type: no_motion
  condition: []
  action:
  - scene: scene.walking_hall_dim
  - delay: '60'
  - scene: scene.hall_off

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>