lazcad / homeassistant

Home Assistant Development
249 stars 83 forks source link

Wrong time duration with motion sensors #48

Open replayfactory opened 7 years ago

replayfactory commented 7 years ago

When using motion sensor in trigger, time duration is incorrect.

trigger:
  platform: state
  entity_id: binary_sensor.motion_sensor_158d000113d149
  to: 'off'
  for:
    seconds: 60            # Trigger fire at 3 minutes
    # seconds: 120         # Trigger fire at 6 minutes

Same code with a binary_sensor.switch or switch.plug work perfectly

Home Assistant  : 0.42.4
Xiaomi firmware : 1.4.1_145.0141