Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sensor:
- - platform: homeassistant
- name: Temperature Sensor Boiler
- entity_id: sensor.boiler_temperature
- unit_of_measurement: °C
- accuracy_decimals: 0
- device_class: temperature
- id: boiler
- - platform: template
- name: "Template Sensor "
- id: "average"
- accuracy_decimals: 0
- unit_of_measurement: °C
- lambda: |-
- return (id(value_20) + id(value_21) + id(value_22))/3;
- time:
- - platform: sntp
- timezone: "Asia/Yekaterinburg"
- id: time_now
- on_time:
- - seconds: 0
- minutes: 0
- hours: /1
- then:
- - lambda: |-
- id(value_01) = id(room).state;
- # id(value_{id(time_now).now().hour;}) = id(boiler).state;
- globals:
- - id: value_00
- type: float
- initial_value: "0"
- - id: value_01
- type: float
- initial_value: "0"
- - id: value_02
- type: float
- initial_value: "0"
- - id: value_03
- type: float
- initial_value: "0"
- - id: value_04
- type: float
- initial_value: "0"
- - id: value_05
- type: float
- initial_value: "0"
- - id: value_06
- type: float
- initial_value: "0"
- - id: value_07
- type: float
- initial_value: "0"
- - id: value_08
- type: float
- initial_value: "0"
- - id: value_09
- type: float
- initial_value: "0"
- - id: value_10
- type: float
- initial_value: "0"
- - id: value_11
- type: float
- initial_value: "0"
- - id: value_12
- type: float
- initial_value: "0"
- - id: value_13
- type: float
- initial_value: "0"
- - id: value_14
- type: float
- initial_value: "0"
- - id: value_15
- type: float
- initial_value: "0"
- - id: value_16
- type: float
- initial_value: "0"
- - id: value_17
- type: float
- initial_value: "0"
- - id: value_18
- type: float
- initial_value: "0"
- - id: value_19
- type: float
- initial_value: "0"
- - id: value_20
- type: float
- initial_value: "0"
- - id: value_21
- type: float
- initial_value: "0"
- - id: value_22
- type: float
- initial_value: "0"
- - id: value_23
- type: float
- initial_value: "0"
Advertisement
Add Comment
Please, Sign In to add comment