Skip to content

How to calculate one zone in automation #460

Closed Answered by JiriPrchal
JiriPrchal asked this question in Q&A
Discussion options

You must be logged in to vote

Am I a peace of fucking idiot, there is a typo "senzor". Rather to copy then type next time ;)
So now it's working:

 - alias: smart irrigation greenhouse
   mode: single
   trigger:
    - platform: numeric_state
      entity_id: sun.sun
      attribute: elevation
      above: 0
   condition:
    - condition: template
      value_template: '{{ (as_timestamp (now ()) | timestamp_custom ("%j") | int % 3) == 0 }}'
   action:
    - service: smart_irrigation.calculate_zone
      entity_id: sensor.smart_irrigation_greenhouse
    - if:
       - condition: numeric_state
         entity_id: sensor.smart_irrigation_greenhouse
         above: 0
      then:
       - service: switch.turn_on
         en…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JiriPrchal
Comment options

@JiriPrchal
Comment options

Answer selected by JiriPrchal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants