Removed binary_sensor.night, changed to using sunset offsets
This commit is contained in:
@ -250,28 +250,3 @@
|
||||
- light.living_room_lights
|
||||
- light.mud_room_overhead
|
||||
mode: single
|
||||
- alias: Set State Night
|
||||
description: Set the state of binary_sensor.night accurately on HA startup
|
||||
trigger:
|
||||
- platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: sun
|
||||
after: sunset
|
||||
before_offset: -00:30
|
||||
sequence:
|
||||
- service: python_script.hass_entities
|
||||
data:
|
||||
action: set_state
|
||||
entity_id: binary_sensor.night
|
||||
state: 'on'
|
||||
default:
|
||||
- service: python_script.hass_entities
|
||||
data:
|
||||
action: set_state
|
||||
entity_id: binary_sensor.night
|
||||
state: 'off'
|
||||
hide_entity: true
|
||||
initial_state: 'on'
|
||||
|
Reference in New Issue
Block a user