Added turn lights on when user comes home.
This commit is contained in:
parent
ac7df8c0ce
commit
24c5c1a1ff
@ -318,7 +318,9 @@
|
||||
- service: input_number.set_value
|
||||
data_template:
|
||||
entity_id: input_number.internet_traffic_delta_in
|
||||
value: '{{ ((trigger.to_state.state | int - trigger.from_state.state | int) * 8 ) / ( as_timestamp(trigger.to_state.last_updated) - as_timestamp(trigger.from_state.last_updated) ) }}'
|
||||
value: '{{ ((trigger.to_state.state | int - trigger.from_state.state | int)
|
||||
* 8 ) / ( as_timestamp(trigger.to_state.last_updated) - as_timestamp(trigger.from_state.last_updated)
|
||||
) }}'
|
||||
- id: snmp_monitor_traffic_out
|
||||
alias: Monitor Traffic Out
|
||||
trigger:
|
||||
@ -328,4 +330,28 @@
|
||||
- service: input_number.set_value
|
||||
data_template:
|
||||
entity_id: input_number.internet_traffic_delta_out
|
||||
value: '{{ ((trigger.to_state.state | int - trigger.from_state.state | int) * 8 ) / ( as_timestamp(trigger.to_state.last_updated) - as_timestamp(trigger.from_state.last_updated) ) }}'
|
||||
value: '{{ ((trigger.to_state.state | int - trigger.from_state.state | int)
|
||||
* 8 ) / ( as_timestamp(trigger.to_state.last_updated) - as_timestamp(trigger.from_state.last_updated)
|
||||
) }}'
|
||||
- id: '1632477389492'
|
||||
alias: Licht beim Heimkommen einschalten
|
||||
description: Nur während Dunkelphase
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: person.marcus_scholz
|
||||
to: home
|
||||
from: not_home
|
||||
condition:
|
||||
- condition: sun
|
||||
before: sunrise
|
||||
before_offset: '+1'
|
||||
after: sunset
|
||||
after_offset: '-1'
|
||||
action:
|
||||
- service: script.moodlight_neutral
|
||||
- service: light.turn_on
|
||||
target:
|
||||
device_id:
|
||||
- 32d15eec63fe68d5770813d47da53657
|
||||
- 53a27edf581fcf40f3bc8b253b1ee369
|
||||
mode: single
|
||||
|
Loading…
Reference in New Issue
Block a user