Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anatoliykant/e25ef20aeb04378fb2ff67da06848fef to your computer and use it in GitHub Desktop.
Save anatoliykant/e25ef20aeb04378fb2ff67da06848fef to your computer and use it in GitHub Desktop.
# Аverage pressure
- platform: min_max
name: mean_pressure
type: mean
entity_ids:
- sensor.pressure_kabinet_temp_vlazhn_davl
- sensor.pressure_spalnia_temp_vlazhn_davl
- sensor.pressure_gostinnaia_temp_vlazhn_davl
- sensor.pressure_kukhnia_temp_vlazhn_davl
- platform: template
sensors:
pressure_kabinet_temp_vlazhn_davl:
friendly_name: "Кабинет, давление мм рт. ст."
unit_of_measurement: 'mmHg'
value_template: "{{ (states('sensor.kabinet_temp_vlazhn_davl_pressure')|float * 0.7500637)|round(2) }}"
icon_template: mdi:gauge
pressure_spalnia_temp_vlazhn_davl:
friendly_name: "Спальня, давление мм рт. ст."
unit_of_measurement: 'mmHg'
value_template: "{{ (states('sensor.spalnia_temp_vlazhn_davl_pressure')|float * 0.7500637)|round(2) }}"
icon_template: mdi:gauge
pressure_gostinnaia_temp_vlazhn_davl:
friendly_name: "Гостинная, давление мм рт. ст."
unit_of_measurement: 'mmHg'
value_template: "{{ (states('sensor.gostinnaia_temp_vlazhn_davl_pressure')|float * 0.7500637)|round(2) }}"
icon_template: mdi:gauge
pressure_kukhnia_temp_vlazhn_davl:
friendly_name: "Кухня, давление мм рт. ст."
unit_of_measurement: 'mmHg'
value_template: "{{ (states('sensor.kukhnia_temp_vlazhn_davl_pressure')|float * 0.7500637)|round(2) }}"
icon_template: mdi:gauge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment