Możesz sobie moje zobaczyć,
zmiana docelowej temperatury na głowicy na podst. odczytu z zewnętrznego czujnika.
Termostatem gdzie ustawiamy temp jaka faktycznie ma być w pokoju jest pomocnik z liczbą.
[{"id":"430d13f003702405","type":"server-state-changed","z":"fb7ad2d6d88b2fd4","name":"Temperatura Mały","server":"4d0e02c9.2307bc","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.czujnik_temeperatury_maly_temperature","entityidfiltertype":"exact","outputinitially":false,"state_type":"num","haltifstate":"","halt_if_type":"num","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"temperatura_z_czujnika","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":190,"y":360,"wires":[["c196fcfec7891979"]]},{"id":"4b7f8669d5e8160d","type":"switch","z":"fb7ad2d6d88b2fd4","name":"","property":"temperatura_z_czujnika","propertyType":"msg","rules":[{"t":"lt","v":"tempertaura_z_termostatu","vt":"msg"},{"t":"gte","v":"tempertaura_z_termostatu","vt":"msg"}],"checkall":"false","repair":false,"outputs":2,"x":650,"y":340,"wires":[["a42411098869508a"],["784ad074a3ad9f78"]]},{"id":"c196fcfec7891979","type":"api-current-state","z":"fb7ad2d6d88b2fd4","name":"Termostat maly","server":"4d0e02c9.2307bc","version":2,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"input_number.termostat_w_malym","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"tempertaura_z_termostatu","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":420,"y":360,"wires":[["4b7f8669d5e8160d"]]},{"id":"056757fc38983424","type":"server-state-changed","z":"fb7ad2d6d88b2fd4","name":"termostat maly","server":"4d0e02c9.2307bc","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_number.termostat_w_malym","entityidfiltertype":"exact","outputinitially":false,"state_type":"num","haltifstate":"","halt_if_type":"num","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"tempertaura_z_termostatu","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":180,"y":310,"wires":[["e7f7554de405ba17"]]},{"id":"e7f7554de405ba17","type":"api-current-state","z":"fb7ad2d6d88b2fd4","name":"Temperatura Mały","server":"4d0e02c9.2307bc","version":2,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.czujnik_temeperatury_maly_temperature","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"temperatura_z_czujnika","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":420,"y":310,"wires":[["4b7f8669d5e8160d"]]},{"id":"0b2f25d7506e2100","type":"comment","z":"fb7ad2d6d88b2fd4","name":"Mały","info":"","x":150,"y":270,"wires":[]},{"id":"0ebb18f5c09ba006","type":"function","z":"fb7ad2d6d88b2fd4","name":"","func":"var liczba = msg.temperatura_z_czujnika - msg.tempertaura_z_termostatu;\nliczba = liczba.toFixed(1) * 2;\nliczba = Math.round(liczba);\n\nmsg.roznica_temperatur = liczba;\n\nmsg.ustaw_temperature = msg.kaloryfer_temperatura - liczba;\n\n\nmsg.payload=\n{\n \"data\":\n {\n \"temperature\": msg.ustaw_temperature,\n }\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1320,"y":360,"wires":[["9b774b8401a0a07b"]]},{"id":"784ad074a3ad9f78","type":"api-current-state","z":"fb7ad2d6d88b2fd4","name":"kaloryfer maly","server":"4d0e02c9.2307bc","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.kaloryfer_maly","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"kaloryfer_temperatura","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":850,"y":360,"wires":[["054f337a67460501"]]},{"id":"054f337a67460501","type":"change","z":"fb7ad2d6d88b2fd4","name":"","rules":[{"t":"set","p":"kaloryfer_temperatura","pt":"msg","to":"data.attributes.current_temperature","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":360,"wires":[["0ebb18f5c09ba006"]]},{"id":"9b774b8401a0a07b","type":"api-call-service","z":"fb7ad2d6d88b2fd4","name":"Kaloryfer maly","server":"4d0e02c9.2307bc","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.kaloryfer_maly","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1490,"y":360,"wires":[[]]},{"id":"d68bda88b29cace6","type":"function","z":"fb7ad2d6d88b2fd4","name":"","func":"var liczba = msg.temperatura_z_czujnika - msg.tempertaura_z_termostatu;\nliczba = liczba.toFixed(1) * 2;\nliczba = Math.round(liczba);\n\nmsg.roznica_temperatur = liczba;\n\nmsg.ustaw_temperature = msg.kaloryfer_temperatura + liczba;\n\n\nmsg.payload=\n{\n \"data\":\n {\n \"temperature\": msg.ustaw_temperature,\n }\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1320,"y":320,"wires":[["cf0d09d82fb44158"]]},{"id":"a42411098869508a","type":"api-current-state","z":"fb7ad2d6d88b2fd4","name":"kaloryfer maly","server":"4d0e02c9.2307bc","version":2,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"climate.kaloryfer_maly","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"kaloryfer_temperatura","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":850,"y":320,"wires":[["6dcb1098e17dc27e"]]},{"id":"6dcb1098e17dc27e","type":"change","z":"fb7ad2d6d88b2fd4","name":"","rules":[{"t":"set","p":"kaloryfer_temperatura","pt":"msg","to":"data.attributes.current_temperature","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1090,"y":320,"wires":[["d68bda88b29cace6"]]},{"id":"cf0d09d82fb44158","type":"api-call-service","z":"fb7ad2d6d88b2fd4","name":"Kaloryfer maly","server":"4d0e02c9.2307bc","version":3,"debugenabled":false,"service_domain":"climate","service":"set_temperature","entityId":"climate.kaloryfer_maly","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1490,"y":320,"wires":[[]]},{"id":"4d0e02c9.2307bc","type":"server","name":"Asystent domowy","version":1,"legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]