Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Condition wont work

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>