@forted.exe wrote:
Here is my code, I want it to notify during 6am to 7pm. Remove condition, the code is run, but when I put condition back, it stop working.
- alias: WPump Idle Warning trigger: - platform: state entity_id: switch.waterpump to: "off" for: minutes: 3 condition: condition: time after: '06:00:00' before: '19:00:00' action: - service: notify.browsernotification data_template: message: "WARNING!!! WaterPump is OFF for 4hrs {{now().strftime('%H:%M:%S %d-%m-%Y')}}."
Posts: 6
Participants: 3