Added sensors for countdowns to school breaks
This commit is contained in:
@ -102,6 +102,15 @@ sensor:
|
|||||||
999
|
999
|
||||||
{% endif %}
|
{% endif %}
|
||||||
unit_of_measurement: 'Days'
|
unit_of_measurement: 'Days'
|
||||||
|
thanksgiving_break_days2go:
|
||||||
|
value_template: "{{ ((state_attr('input_datetime.thanksgiving_break_start', 'timestamp')-as_timestamp(now())) | int /60/1440) | round(0) }}"
|
||||||
|
unit_of_measurement: 'Days'
|
||||||
|
christmas_break_days2go:
|
||||||
|
value_template: "{{ ((state_attr('input_datetime.christmas_break_start', 'timestamp')-as_timestamp(now())) | int /60/1440) | round(0) }}"
|
||||||
|
unit_of_measurement: 'Days'
|
||||||
|
spring_break_days2go:
|
||||||
|
value_template: "{{ ((state_attr('input_datetime.spring_break_start', 'timestamp')-as_timestamp(now())) | int /60/1440) | round(0) }}"
|
||||||
|
unit_of_measurement: 'Days'
|
||||||
# - platform: rest
|
# - platform: rest
|
||||||
# resource: https://raw.githubusercontent.com/tm24fan8/Home-Assistant-Configs/master/packages/json_data/school.json
|
# resource: https://raw.githubusercontent.com/tm24fan8/Home-Assistant-Configs/master/packages/json_data/school.json
|
||||||
# name: School Lunch
|
# name: School Lunch
|
||||||
|
Reference in New Issue
Block a user