mirror of
https://github.com/Laxilef/OTGateway.git
synced 2025-12-11 18:54:28 +05:00
chore: added blueprints
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
# Package for Home Assistant Packages
|
||||||
|
# More info: https://www.home-assistant.io/docs/configuration/packages/
|
||||||
|
|
||||||
dhw_meter:
|
dhw_meter:
|
||||||
sensor:
|
sensor:
|
||||||
- platform: integration
|
- platform: integration
|
||||||
|
|||||||
@@ -1,29 +0,0 @@
|
|||||||
# Script for reporting outdoor temperature to the controller from home assistant weather integration
|
|
||||||
# Updated: 07.12.2023
|
|
||||||
|
|
||||||
alias: Report outdoor temp to controller from weather
|
|
||||||
description: ""
|
|
||||||
variables:
|
|
||||||
# The source weather from which we take the temperature
|
|
||||||
source_entity: "weather.home"
|
|
||||||
|
|
||||||
# Target entity number where we set the temperature
|
|
||||||
# If the prefix has not changed, then you do not need to change it
|
|
||||||
target_entity: "number.opentherm_outdoor_temp"
|
|
||||||
trigger:
|
|
||||||
- platform: time_pattern
|
|
||||||
seconds: /30
|
|
||||||
condition:
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}"
|
|
||||||
action:
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{ (state_attr(source_entity, 'temperature')|float(0) - states(target_entity)|float(0)) | abs | round(2) >= 0.1 }}"
|
|
||||||
then:
|
|
||||||
- service: number.set_value
|
|
||||||
data:
|
|
||||||
value: "{{ state_attr(source_entity, 'temperature')|float(0)|round(2) }}"
|
|
||||||
target:
|
|
||||||
entity_id: "{{ target_entity }}"
|
|
||||||
mode: single
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
# Script for reporting indoor/outdoor temperature to the controller from any home assistant sensor
|
|
||||||
# Updated: 07.12.2023
|
|
||||||
|
|
||||||
alias: Report temp to controller
|
|
||||||
description: ""
|
|
||||||
variables:
|
|
||||||
# The source sensor from which we take the temperature
|
|
||||||
source_entity: "sensor.livingroom_temperature"
|
|
||||||
|
|
||||||
# Target entity number where we set the temperature
|
|
||||||
# To report indoor temperature: number.opentherm_indoor_temp
|
|
||||||
# To report outdoor temperature: number.opentherm_outdoor_temp
|
|
||||||
target_entity: "number.opentherm_indoor_temp"
|
|
||||||
trigger:
|
|
||||||
- platform: time_pattern
|
|
||||||
seconds: /30
|
|
||||||
condition:
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}"
|
|
||||||
action:
|
|
||||||
- if:
|
|
||||||
- condition: template
|
|
||||||
value_template: "{{ (states(source_entity)|float(0) - states(target_entity)|float(0)) | abs | round(2) >= 0.01 }}"
|
|
||||||
then:
|
|
||||||
- service: number.set_value
|
|
||||||
data:
|
|
||||||
value: "{{ states(source_entity)|float(0)|round(2) }}"
|
|
||||||
target:
|
|
||||||
entity_id: "{{ target_entity }}"
|
|
||||||
mode: single
|
|
||||||
48
assets/ha/report_temp_to_otgateway.yaml
Normal file
48
assets/ha/report_temp_to_otgateway.yaml
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# Blueprint for reporting indoor/outdoor temperature to OpenTherm Gateway from any home assistant sensor
|
||||||
|
# Updated: 03.09.2024
|
||||||
|
|
||||||
|
blueprint:
|
||||||
|
name: Report temp to OpenTherm Gateway
|
||||||
|
domain: automation
|
||||||
|
author: "Laxilef"
|
||||||
|
|
||||||
|
input:
|
||||||
|
source_entity:
|
||||||
|
name: Source entity
|
||||||
|
description: "Temperature data source"
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
multiple: false
|
||||||
|
filter:
|
||||||
|
- domain: sensor
|
||||||
|
device_class: temperature
|
||||||
|
target_entity:
|
||||||
|
name: Target entity
|
||||||
|
description: "Usually ``number.opentherm_indoor_temp`` or ``number.opentherm_outdoor_temp``"
|
||||||
|
default: "number.opentherm_indoor_temp"
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
multiple: false
|
||||||
|
filter:
|
||||||
|
- domain: number
|
||||||
|
|
||||||
|
mode: single
|
||||||
|
variables:
|
||||||
|
source_entity: !input source_entity
|
||||||
|
target_entity: !input target_entity
|
||||||
|
trigger:
|
||||||
|
- platform: time_pattern
|
||||||
|
seconds: /30
|
||||||
|
condition:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}"
|
||||||
|
action:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ (states(source_entity)|float(0) - states(target_entity)|float(0)) | abs | round(2) >= 0.01 }}"
|
||||||
|
then:
|
||||||
|
- service: number.set_value
|
||||||
|
data:
|
||||||
|
value: "{{ states(source_entity)|float(0)|round(2) }}"
|
||||||
|
target:
|
||||||
|
entity_id: "{{ target_entity }}"
|
||||||
47
assets/ha/report_temp_to_otgateway_from_weather.yaml
Normal file
47
assets/ha/report_temp_to_otgateway_from_weather.yaml
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# Blueprint for reporting temperature to OpenTherm Gateway from home assistant weather integration
|
||||||
|
# Updated: 03.09.2024
|
||||||
|
|
||||||
|
blueprint:
|
||||||
|
name: Report temp to OpenTherm Gateway from Weather
|
||||||
|
domain: automation
|
||||||
|
author: "Laxilef"
|
||||||
|
|
||||||
|
input:
|
||||||
|
source_entity:
|
||||||
|
name: Source entity
|
||||||
|
description: "Temperature data source"
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
multiple: false
|
||||||
|
filter:
|
||||||
|
- domain: weather
|
||||||
|
target_entity:
|
||||||
|
name: Target entity
|
||||||
|
description: "Usually ``number.opentherm_outdoor_temp``"
|
||||||
|
default: "number.opentherm_outdoor_temp"
|
||||||
|
selector:
|
||||||
|
entity:
|
||||||
|
multiple: false
|
||||||
|
filter:
|
||||||
|
- domain: number
|
||||||
|
|
||||||
|
mode: single
|
||||||
|
variables:
|
||||||
|
source_entity: !input source_entity
|
||||||
|
target_entity: !input target_entity
|
||||||
|
trigger:
|
||||||
|
- platform: time_pattern
|
||||||
|
seconds: /30
|
||||||
|
condition:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ states(source_entity) != 'unavailable' and states(target_entity) != 'unavailable' }}"
|
||||||
|
action:
|
||||||
|
- if:
|
||||||
|
- condition: template
|
||||||
|
value_template: "{{ (state_attr(source_entity, 'temperature')|float(0) - states(target_entity)|float(0)) | abs | round(2) >= 0.1 }}"
|
||||||
|
then:
|
||||||
|
- service: number.set_value
|
||||||
|
data:
|
||||||
|
value: "{{ state_attr(source_entity, 'temperature')|float(0)|round(2) }}"
|
||||||
|
target:
|
||||||
|
entity_id: "{{ target_entity }}"
|
||||||
Reference in New Issue
Block a user