-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[V2.0] #1:Edit all Files for the new Home Assistant Theme Version 2.0
- Loading branch information
1 parent
bff6543
commit ee41b8e
Showing
95 changed files
with
7,997 additions
and
2,901 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
- id: ing_fritzbox_rollover | ||
alias: ING-Fritzbox Rollover | ||
description: '' | ||
trigger: | ||
- entity_id: sensor.ing_fritzbox_sent_gb_day | ||
platform: state | ||
condition: | ||
- condition: template | ||
value_template: '{{ not is_state("input_number.ing_fritzbox_sent_day", 0) }}' | ||
- condition: template | ||
value_template: '{{ (trigger.from_state.state | float) < (trigger.to_state.state | float) }}' | ||
action: | ||
- service: input_number.set_value | ||
data_template: | ||
entity_id: input_number.ing_fritzbox_sent_day | ||
value: '{{ states("input_number.ing_fritzbox_sent_day") | int + 1}}' | ||
- service: input_number.set_value | ||
data_template: | ||
entity_id: input_number.ing_fritzbox_sent_month | ||
value: '{{ states("input_number.ing_fritzbox_sent_month") | int + 1 }}' | ||
- service: input_number.set_value | ||
data_template: | ||
entity_id: input_number.ing_fritzbox_sent_year | ||
value: '{{ states("input_number.ing_fritzbox_sent_year") | int + 1 }}' | ||
- service: input_number.set_value | ||
data_template: | ||
entity_id: input_number.ing_fritzbox_received_day | ||
value: '{{ states("input_number.ing_fritzbox_received_day") | int + 1}}' | ||
- service: input_number.set_value | ||
data_template: | ||
entity_id: input_number.ing_fritzbox_received_month | ||
value: '{{ states("input_number.ing_fritzbox_received_month") | int + 1 }}' | ||
- service: input_number.set_value | ||
data_template: | ||
entity_id: input_number.ing_fritzbox_received_year | ||
value: '{{ states("input_number.ing_fritzbox_received_year") | int + 1 }}' | ||
|
||
|
||
# Clear ING Fritzbox Data | ||
- id: ing_fritzbox_daily_gb_clear | ||
alias: ING-Fritzbox Daily GB Clear | ||
description: '' | ||
trigger: | ||
- at: 00:00:00 | ||
platform: time | ||
condition: [] | ||
action: | ||
- entity_id: input_number.ing_fritzbox_sent_day | ||
service: input_number.set_value | ||
- entity_id: input_number.ing_fritzbox_received_day | ||
service: input_number.set_value | ||
|
||
- id: ing_fritzbox_monthly_gb_clear | ||
alias: ING-Fritzbox Monthly GB Clear | ||
description: '' | ||
trigger: | ||
- at: 00:00:00 | ||
platform: time | ||
condition: | ||
- condition: template | ||
value_template: '{{ now().day == 1 }}' | ||
action: | ||
- entity_id: input_number.ing_fritzbox_sent_month | ||
service: input_number.set_value | ||
- entity_id: input_number.ing_fritzbox_received_month | ||
service: input_number.set_value | ||
|
||
- id: ing_fritzbox_yearly_gb_clear | ||
alias: ING-Fritzbox Yearly GB Reset | ||
description: '' | ||
trigger: | ||
- at: 00:00:00 | ||
platform: time | ||
condition: | ||
- condition: template | ||
value_template: '{{ (utcnow().month == 1) + (utcnow().day == 1) == 2 }}' | ||
action: | ||
- entity_id: input_number.ing_fritzbox_sent_year | ||
service: input_number.set_value | ||
- entity_id: input_number.ing_fritzbox_received_year | ||
service: input_number.set_value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
- platform: template | ||
sensors: | ||
frontdoortest: | ||
friendly_name: "Haustür TEST" | ||
device_class: presence | ||
value_template: "{{ is_state('input_boolean.frontdoortest', 'on') }}" | ||
|
||
#- platform: template | ||
# sensors: | ||
# frontdoortest: # Rename this to choice your binary_sensor name | ||
# friendly_name: "Haustür TEST" #edit this | ||
# value_template: "{{ states('input_boolean.frontdoortest') }}" #edit sensor.your_door_sensor with your sensor door | ||
# attribute_templates: | ||
# door_state: "{{ state_attr('input_boolean.frontdoortest', 'door_state') }}" #edit sensor.your_door_sensor with your sensor door |
Oops, something went wrong.