Bosch external temp blueprint
unknown
yaml
5 months ago
1.4 kB
11
Indexable
blueprint: name: Termostat - zew. czujnik description: Odczytuje temperaturę z termometru i przypisuje do termostatu po zmianie last_seen domain: automation input: thermometer: name: Termometr description: "Termometr, na podstawie którego termostat będzie dostawał temperaturę z pomieszczenia" selector: entity: integration: mqtt domain: sensor device_class: timestamp thermostat: name: Termostat description: "Encja termostatu, który dostanie odczyt temperatury" selector: device: integration: mqtt filter: manufacturer: Bosch variables: thermometer_entity: !input thermometer thermostat_entity: !input thermostat trigger: - platform: state entity_id: !input thermometer action: - variables: current_temperature_entity: "{{ expand(device_entities(device_id(thermometer_entity))) | selectattr('entity_id', 'match', '.*temperature$') | map(attribute='entity_id') | first }}" thermostat_remote_temp_entity: "{{ expand(device_entities(thermostat_entity)) | selectattr('entity_id', 'match', '.*remote_temperature$') | map(attribute='entity_id') | first }}" - action: number.set_value data: value: "{{ states(current_temperature_entity) | round(1, 'ceil') }}" target: entity_id: "{{ thermostat_remote_temp_entity }}" mode: single
Editor is loading...
Leave a Comment