Disk Free: {{ states('sensor.paarthurnax_disk_free') }} GB
Disk Free: {{ ((states('sensor.paarthurnax_disk_free')|float)/1000)|round(3) }} TB
Disk Used: {{ ((states('sensor.paarthurnax_disk_used')|float)/1000)|round(3) }} TB
Disk Total: {{ ((states('sensor.paarthurnax_disk_total')|float)/1000)|round(3) }} TB
Disk Used %: {{ ((states('sensor.paarthurnax_disk_used')|float)/1000)|round(3) / ((states('sensor.paarthurnax_disk_total')|float)/1000)|round(3) * 100 }}
Disk Used: {{( ((states('sensor.paarthurnax_disk_used') | float)/1000) | round(3) / ((states('sensor.paarthurnax_disk_total') | float)/1000) | round(3) * 100) | round(2) }}%
"{{ is_state('device_tracker.jazz_s22_ultra', 'home') or is_state('device_tracker.chris_s_s22_ultra', 'home') }}"
#Time / Date
- platform: time_date
display_options:
- "time"
- "date"
- "date_time"
- "time_date"
- "beat"
# Weather Icon
- platform: template
sensors:
weather_just_icon:
friendly_name: "mdi Real Weather Icon"
unique_id: "100001"
icon_template: >-
{% set weather_icon = states('weather.styla_manor_ha') %}
{% if weather_icon == 'partlycloudy' %}
mdi:weather-partly-cloudy
{% elif weather_icon == 'thunderstorm' %}
mdi:weather-lightning
{% elif weather_icon == weather_icon%}
mdi:weather-{{weather_icon}}
{% else %}
mdi:weather-cloudy-alert
{% endif %}
value_template: >-
{% set weather_icon = states('weather.styla_manor_ha') %}
{% if weather_icon == 'partlycloudy' %}
mdi:weather-partly-cloudy
{% elif weather_icon == 'thunderstorm' %}
mdi:weather-lightning
{% elif weather_icon == weather_icon%}
mdi:weather-{{weather_icon}}
{% else %}
mdi:weather-cloudy-alert
{% endif %}
# Lights
- platform: template
sensors:
lights_on_count:
friendly_name: "How many lights are on"
unique_id: "1001"
value_template: >-
{{ expand(state_attr('light.all', 'entity_id') )
| selectattr('state', 'eq', 'on')
| list
| count
}}
#PAARTHURNAX
- platform: template
sensors:
paarthurnax_disk_used_percent:
friendly_name: "PARTHURNAX Array Used %"
entity_id: sensor.paarthurnax_disk_used_percent
unit_of_measurement: '%'
value_template: "{{( ((states('sensor.paarthurnax_disk_used') | float)/1000) | round(3) / ((states('sensor.paarthurnax_disk_total') | float)/1000) | round(3) * 100) | round(2) }}"
- platform: template
sensors:
paarthurnax_disk_free_tb:
friendly_name: "PAARTHURNAX Array Free TB"
entity_id: sensor.paarthurnax_disk_free_tb
unit_of_measurement: 'TB'
value_template: "{{ ((states('sensor.paarthurnax_disk_free')|float)/1000)|round(3) }}"
- platform: template
sensors:
paarthurnax_disk_used_tb:
friendly_name: "PAARTHURNAX Array Used TB"
entity_id: sensor.paarthurnax_disk_usedtb
unit_of_measurement: 'TB'
value_template: " {{ ((states('sensor.paarthurnax_disk_used')|float)/1000)|round(3) }}"
- platform: template