I have the following rest binary sensor:
- platform: rest
resource: http://192.168.0.100_etc/sensors/15
name: living_room_motion_sensor
value_template: '{{value_json.state.presence}}'
scan_interval: 1
And the following automation:
- alias: 'Motion'
trigger:
platform: state
entity_id: binary_sensor.living_room_motion_sensor
to: 'on'
action:
- service: notify.ios_robins_iphone
data:
message: 'Motion detected'
Sensor is working, detecting motion and changing the state, entity_id correct etc. However the automation is not being triggered - what is wrong?
UPDATE: Using the automation editor, got it working with:
trigger:
- entity_id: binary_sensor.living_room_motion_sensor
from: 'off'
platform: state
to: 'on'