Binary_sensor

Hi!

I’m trying out the rather new binary_sensor. I’ve set it up to switch on if above threshold.
Then I’m having an automation that checks if the binary_sensor has been “off” for 10 minutes, and if so sends a HTML5 notification.

The problem is that HASS won’t stop sending the notifications (sends a new one every minute without stop - the sensor feeding the binary_sensor sends new data every minute). My expectation was that one notification would be sent, and then nothing more until it change it’s state.

Here’s my configuraion for the parts:

binary_sensor:

  • platform: threshold
    name: temp
    threshold: 50
    type: upper
    entity_id: sensor.temp

automation:

  • alias: ‘TEST-temp’
    trigger:
    platform: state
    entity_id: binary_sensor.temp
    state: ‘off’
    for:
    minutes: 10
    action:
    • service: notify.html5
      data_template:
      message: ‘TEST: temp’

And here are some logging data:

FROM LOGBOOK:
15:55
TEST-temp has been triggered
15:54
TEST-temp has been triggered
15:53
TEST-temp has been triggered
15:52
TEST-temp has been triggered
15:51
TEST-temp has been triggered
15:50
TEST-temp has been triggered

FROM HOME-ASSISTANT.LOG:
16-12-16 15:40:16 homeassistant.core: Unable to remove unknown listener <function async_track_state_change..state_change_listener at 0x7f3f3d381a60>
16-12-16 15:58:17 homeassistant.core: Unable to remove unknown listener <function async_track_state_change..state_change_listener at 0x7f3f3e722d90>