mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-07-25 11:07:53 +00:00
Removed all instances of the icon_template #580 - Prep for 0.95 upgrade.
This commit is contained in:
parent
213a85d684
commit
453d28e42b
@ -28,7 +28,7 @@
|
|||||||
] | random -}}
|
] | random -}}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{% macro getVersion() %}
|
{% macro getVersion() %}
|
||||||
"New version of @Home_Assistant! Cannot wait for @CCostan to install it! - {{ states('updater.updater') }} (http://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)"
|
"New version of @Home_Assistant! Cannot wait for @CCostan to install {{ states('updater.updater') }}! (http://www.vmwareinfo.com/2017/07/my-smart-home-look-at-parts-that-make.html)"
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
{%- macro getRandomSnark() -%}
|
{%- macro getRandomSnark() -%}
|
||||||
{{- [
|
{{- [
|
||||||
@ -63,7 +63,6 @@
|
|||||||
"/config/www/custom_ui/floorplan/images/branding/repo_ad.png",
|
"/config/www/custom_ui/floorplan/images/branding/repo_ad.png",
|
||||||
"/config/www/custom_ui/floorplan/images/branding/repo_ad2.png",
|
"/config/www/custom_ui/floorplan/images/branding/repo_ad2.png",
|
||||||
"/config/www/custom_ui/floorplan/images/branding/repo_ad3.png",
|
"/config/www/custom_ui/floorplan/images/branding/repo_ad3.png",
|
||||||
"/config/www/custom_ui/floorplan/images/branding/repo_ad4.png"
|
|
||||||
] | random }}
|
] | random }}
|
||||||
|
|
||||||
- service: notify.html5
|
- service: notify.html5
|
||||||
|
@ -25,12 +25,7 @@ sensor:
|
|||||||
name: Grid Status
|
name: Grid Status
|
||||||
scan_interval: 60
|
scan_interval: 60
|
||||||
value_template: "{{ value_json.grid_status == 'SystemGridConnected' }}"
|
value_template: "{{ value_json.grid_status == 'SystemGridConnected' }}"
|
||||||
icon_template: >-
|
device_class: power
|
||||||
{%- if is_state('sensor.grid_status', 'True') %}
|
|
||||||
mdi:flash
|
|
||||||
{%- else %}
|
|
||||||
mdi:flash-off
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: House now
|
name: House now
|
||||||
@ -63,12 +58,7 @@ sensor:
|
|||||||
verify_ssl: false
|
verify_ssl: false
|
||||||
value_template: '{{ value_json.battery.instant_power / 1000 | round(2) }}'
|
value_template: '{{ value_json.battery.instant_power / 1000 | round(2) }}'
|
||||||
unit_of_measurement: kWh
|
unit_of_measurement: kWh
|
||||||
icon_template: >-
|
device_class: battery
|
||||||
{%- if states('sensor.powerwall_battery_now') | float > 0 %}
|
|
||||||
mdi:battery
|
|
||||||
{%- else %}
|
|
||||||
mdi:battery-charging
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
- platform: rest
|
- platform: rest
|
||||||
name: PowerWall Battery Capacity
|
name: PowerWall Battery Capacity
|
||||||
@ -78,29 +68,7 @@ sensor:
|
|||||||
value_template: '{{ (value_json.percentage | float | round(0)) }}'
|
value_template: '{{ (value_json.percentage | float | round(0)) }}'
|
||||||
unit_of_measurement: '%'
|
unit_of_measurement: '%'
|
||||||
scan_interval: 300
|
scan_interval: 300
|
||||||
icon_template: >-
|
device_class: battery
|
||||||
{%- set battery = states('sensor.powerwall_battery_capacity') | float %}
|
|
||||||
{%- if battery > 90 %}
|
|
||||||
mdi:battery
|
|
||||||
{%- elif battery > 80 %}
|
|
||||||
mdi:battery-90
|
|
||||||
{%- elif battery > 70 %}
|
|
||||||
mdi:battery-80
|
|
||||||
{%- elif battery > 60 %}
|
|
||||||
mdi:battery-70
|
|
||||||
{%- elif battery > 50 %}
|
|
||||||
mdi:battery-60
|
|
||||||
{%- elif battery > 40 %}
|
|
||||||
mdi:battery-50
|
|
||||||
{%- elif battery > 30 %}
|
|
||||||
mdi:battery-40
|
|
||||||
{%- elif battery > 20 %}
|
|
||||||
mdi:battery-30
|
|
||||||
{%- elif battery > 10 %}
|
|
||||||
mdi:battery-20
|
|
||||||
{%- else %}
|
|
||||||
mdi:battery-outline
|
|
||||||
{%- endif %}
|
|
||||||
|
|
||||||
#-------------------------------------------
|
#-------------------------------------------
|
||||||
# Located in the Grafana package. Tweets out Solar Production Daily!
|
# Located in the Grafana package. Tweets out Solar Production Daily!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user