Hi there,
I’ve had a sensor automation working for over a year however it has just stopped working. I think it coincided with the recent change of the way tplink is configured but I cant be sure. tplink used to be configured as a switch but now has its own integration. I was surprised that I did not need to change my (custom) entity names after changing this.
I have a custom sensors that monitor the dryer and washer. When they are idle for a certain period of time they notify us via pushbullet and turn the light on in the (scary) laundry. It looks like the action is not being triggered at all. Neither the light or the PB message are being activated.
Here is my automation:
###############################
- id: 'wm_done'
alias: wm_done
trigger:
platform: state
entity_id: sensor.washingmachine_idle
from: 'False'
to: 'True'
for:
seconds: 60
action:
- service: notify.pushbullet
data_template:
title: "Washing is done. #washing #laundry"
message: "Washing machine stopped because current is {{ states.switch.washingmachine.attributes['current_power_w'] | replace(' W', '') | float }} amps"
target:
- 'email/[email protected]'
- 'email/[email protected]'
- service: light.turn_on
entity_id: light.laundry
###############################
and the sensor:
- platform: template
sensors:
washingmachine_idle:
friendly_name: 'Washing Machine Idle'
value_template: '{{ states.switch.washingmachine.attributes["current_power_w"] | replace(" W", "") | float < 1.5 }}'
I can see from the log that the idle sensor is switching from False to True but the automation is not firing. Any ideas?