mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-19 23:36:51 +00:00
Update automation_sun.markdown (#10532)
* Update automation_sun.markdown Implements changes proposed on https://github.com/home-assistant/home-assistant.io/issues/10315 * ✏️ Tweak
This commit is contained in:
parent
8f6578449e
commit
c5343253cc
@ -73,7 +73,7 @@ Solar elevation automations can cope with offsets from sunset / sunrise as the s
|
|||||||
trigger:
|
trigger:
|
||||||
platform: numeric_state
|
platform: numeric_state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
value_template: '{% raw %}{{ state.attributes.elevation }}{% endraw %}'
|
value_template: "{% raw %}{{ state_attr('sun.sun', 'elevation') }}{% endraw %}"
|
||||||
below: 3.5
|
below: 3.5
|
||||||
action:
|
action:
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
@ -83,7 +83,7 @@ Solar elevation automations can cope with offsets from sunset / sunrise as the s
|
|||||||
trigger:
|
trigger:
|
||||||
platform: numeric_state
|
platform: numeric_state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
value_template: '{% raw %}{{ state.attributes.elevation }}{% endraw %}'
|
value_template: "{% raw %}{{ state_attr('sun.sun', 'elevation') }}{% endraw %}"
|
||||||
below: 1.5
|
below: 1.5
|
||||||
action:
|
action:
|
||||||
service: scene.turn_on
|
service: scene.turn_on
|
||||||
@ -93,7 +93,7 @@ Solar elevation automations can cope with offsets from sunset / sunrise as the s
|
|||||||
trigger:
|
trigger:
|
||||||
platform: numeric_state
|
platform: numeric_state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
value_template: '{% raw %}{{ state.attributes.elevation }}{% endraw %}'
|
value_template: "{% raw %}{{ state_attr('sun.sun', 'elevation') }}{% endraw %}"
|
||||||
below: -2.5
|
below: -2.5
|
||||||
action:
|
action:
|
||||||
service: switch.turn_off
|
service: switch.turn_off
|
||||||
|
Loading…
x
Reference in New Issue
Block a user