Node red - flow

Cześć,
zakładam temat z przykładami automatyzacji w Node Red. Proponuję tu opisywac swoją automatyzację i dodawać flow.
Pierwsze to powiadomienie na głośnik google (chromecast) w moim przypadku jak skończy się pranie. Binary.sensor dla pralki to gniazdo z pomiarem mocy. Jak pralka nie pobiera energii przez 5 min to idzie powiadomeinie.

Niestety nie można dodać pliku*.json. @jolka możesz włączyć na forum dodawanie plików? Można włączyć tylko pliki *.json. One zajmują malutko miejsca.

  [{"id":"81d7251f.9f9388","type":"cast-to-client","z":"5ecafb7d.a02514","name":"","url":"","contentType":"","message":"","language":"pl","ip":"","port":"","volume":"","x":830,"y":360,"wires":[["501533fc.686c2c"]],"icon":"node-red-contrib-cast/google-home-mini1.svg"},{"id":"f04c4be6.92c098","type":"inject","z":"5ecafb7d.a02514","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":100,"y":320,"wires":[["28f4ee84.4d7b02"]]},{"id":"5d856e58.deeb3","type":"change","z":"5ecafb7d.a02514","name":"powiadomienie głośne","rules":[{"t":"set","p":"ip","pt":"msg","to":"192.168.1.16","tot":"str"},{"t":"set","p":"message","pt":"msg","to":"Pranie się wysuszyło. Można prasować","tot":"str"},{"t":"set","p":"language","pt":"msg","to":"pl","tot":"str"},{"t":"set","p":"volume","pt":"msg","to":"60","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":320,"wires":[["81d7251f.9f9388"]]},{"id":"501533fc.686c2c","type":"debug","z":"5ecafb7d.a02514","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":970,"y":360,"wires":[]},{"id":"8b3856d7.60d228","type":"server-state-changed","z":"5ecafb7d.a02514","name":"Suszarka","server":"5596e145.a6e0f","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.suszarka","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":80,"y":380,"wires":[[],["28f4ee84.4d7b02"]]},{"id":"e1cd7af8.266168","type":"time-range-switch","z":"5ecafb7d.a02514","name":"","lat":"50.2443","lon":"19.04186","startTime":"7:00","endTime":"23:00","startOffset":0,"endOffset":0,"x":450,"y":360,"wires":[["5d856e58.deeb3"],["7687abf4.79d6f4"]]},{"id":"28f4ee84.4d7b02","type":"stoptimer","z":"5ecafb7d.a02514","duration":"5","units":"Minute","payloadtype":"num","payloadval":"0","name":"5 minut","x":280,"y":360,"wires":[["e1cd7af8.266168"],[]]},{"id":"7687abf4.79d6f4","type":"change","z":"5ecafb7d.a02514","name":"powiadomienie ciche","rules":[{"t":"set","p":"ip","pt":"msg","to":"192.168.1.16","tot":"str"},{"t":"set","p":"message","pt":"msg","to":"Pranie się wysuszyło. Można prasować","tot":"str"},{"t":"set","p":"language","pt":"msg","to":"pl","tot":"str"},{"t":"set","p":"volume","pt":"msg","to":"30","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":640,"y":380,"wires":[["81d7251f.9f9388"]]},{"id":"5596e145.a6e0f","type":"server","z":"","name":"AIS  ","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
2 polubienia

Kolejny flow to sonoff RF + 8 przyciskowy pilot do niego. Odczytujesz kody pilota z konsoli i wprowadzasz w noda switch i sterujesz czym chcesz

 [{"id":"a17b1b0a.032648","type":"mqtt in","z":"9cfe9fe8.2f389","name":"RF","topic":"tele/Sonoff_RFE4B531/RESULT","qos":"0","datatype":"json","broker":"586b7dcb.d98634","x":1010,"y":320,"wires":[["b235fc5f.515ed"]]},{"id":"b235fc5f.515ed","type":"switch","z":"9cfe9fe8.2f389","name":"kody RF","property":"payload","propertyType":"msg","rules":[{"t":"jsonata_exp","v":"payload.RfReceived.Data = \"B834C8\"","vt":"jsonata"},{"t":"jsonata_exp","v":"payload.RfReceived.Data = \"B834CC\"","vt":"jsonata"},{"t":"jsonata_exp","v":"payload.RfReceived.Data = \"B834C4\"","vt":"jsonata"},{"t":"jsonata_exp","v":"payload.RfReceived.Data = \"B834C9\"","vt":"jsonata"},{"t":"jsonata_exp","v":"payload.RfReceived.Data = \"B834C2\"","vt":"jsonata"},{"t":"jsonata_exp","v":"payload.RfReceived.Data = \"B834C5\"","vt":"jsonata"},{"t":"jsonata_exp","v":"payload.RfReceived.Data = \"B834C1\"","vt":"jsonata"},{"t":"jsonata_exp","v":"payload.RfReceived.Data = \"B834C3\"","vt":"jsonata"}],"checkall":"true","repair":false,"outputs":8,"x":1160,"y":380,"wires":[["7dc93cdd.91dac4"],["e2fe005a.22507"],["15b34f15.f2c511"],["6b043d39.270f64"],["e2bc89a3.bbd978"],[],["45554584.e4461c"],["75081654.651ca8"]]},{"id":"7dc93cdd.91dac4","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Basen","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"toggle","entityId":"switch.basen","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1370,"y":300,"wires":[[]]},{"id":"e2fe005a.22507","type":"api-call-service","z":"9cfe9fe8.2f389","name":"magnolia","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.magnolia","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1380,"y":340,"wires":[["1ecfd0ec.a669cf"]]},{"id":"15b34f15.f2c511","type":"api-call-service","z":"9cfe9fe8.2f389","name":"wodospad","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"toggle","entityId":"switch.wodospad","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1390,"y":380,"wires":[[]]},{"id":"6b043d39.270f64","type":"api-call-service","z":"9cfe9fe8.2f389","name":"ogród","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.ogrod_2","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1370,"y":420,"wires":[[]]},{"id":"75081654.651ca8","type":"api-call-service","z":"9cfe9fe8.2f389","name":"brama","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.brama_wjazdowa","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1370,"y":580,"wires":[[]]},{"id":"45554584.e4461c","type":"api-call-service","z":"9cfe9fe8.2f389","name":"furtka","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.furtka","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1370,"y":540,"wires":[[]]},{"id":"e2bc89a3.bbd978","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Lamki Wiata","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"toggle","entityId":"switch.inverted_lampki_wiata","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1390,"y":460,"wires":[[]]},{"id":"1ecfd0ec.a669cf","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Magnolia","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.magnolia","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1540,"y":340,"wires":[[]]},{"id":"586b7dcb.d98634","type":"mqtt-broker","z":"","name":"broker","broker":"http://192.168.1.10","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"5596e145.a6e0f","type":"server","z":"","name":"AIS  ","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
2 polubienia

Może jeszcze przycisk Xiaomi mijia aqara zigbee
Prosty flow, ale dla początkujących na pewno pomocny. Dołożony jest delay, który po 30 sekundach wyłącza pompę obiegową

       [{"id":"8f7fbb06.783df8","type":"server-state-changed","z":"9cfe9fe8.2f389","name":"przycisk kuchnia","server":"5596e145.a6e0f","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.przycisk_witek_click","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":860,"y":180,"wires":[["c30c4043.56383"]]},{"id":"c30c4043.56383","type":"switch","z":"9cfe9fe8.2f389","name":"dzielenie","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"single","vt":"str"},{"t":"eq","v":"double","vt":"str"},{"t":"eq","v":"triple","vt":"str"},{"t":"eq","v":"quadruple","vt":"str"},{"t":"eq","v":"many","vt":"str"},{"t":"eq","v":"long","vt":"str"},{"t":"eq","v":"long_release","vt":"str"}],"checkall":"true","repair":false,"outputs":7,"x":1020,"y":180,"wires":[["af53d3de.e13b"],["7029ba25.550404"],["3ccf63ce.0e18bc"],["16f6cde4.dc1d72"],[],["c55b2742.e22b48"],[]]},{"id":"19663aab.126985","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Nad zlewem","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.kuchnia_nad_zlewem","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1370,"y":140,"wires":[[]]},{"id":"3ccf63ce.0e18bc","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Kuchnia sufit","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"toggle","entityId":"switch.kuchnia_halogeny","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1190,"y":180,"wires":[[]]},{"id":"5083562c.ac62f8","type":"delay","z":"9cfe9fe8.2f389","name":"30s","pauseType":"delay","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1370,"y":100,"wires":[["22b079bb.9e5696","c8d43fa2.f1116"]]},{"id":"af53d3de.e13b","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Pompa Obiegowa","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.pompa_obiegowa","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1210,"y":100,"wires":[["5083562c.ac62f8","19663aab.126985"]]},{"id":"22b079bb.9e5696","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Pompa Obiegowa","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.pompa_obiegowa","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1570,"y":100,"wires":[[]]},{"id":"7029ba25.550404","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Nad zlewem","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"toggle","entityId":"switch.kuchnia_nad_zlewem","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1190,"y":140,"wires":[[]]},{"id":"c8d43fa2.f1116","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Nad zlewem","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.kuchnia_nad_zlewem","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1570,"y":140,"wires":[[]]},{"id":"c55b2742.e22b48","type":"api-call-service","z":"9cfe9fe8.2f389","name":"furtka","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.furtka","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1190,"y":260,"wires":[[]]},{"id":"16f6cde4.dc1d72","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Kuchnia nad stołem","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.kuchnia_nadstolem","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1250,"y":220,"wires":[[]]},{"id":"5596e145.a6e0f","type":"server","z":"","name":"AIS  ","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
2 polubienia

Może jeszcze się przydać ściemnianie żarówki tym przyciskiem Ikea obsługiwanym przez zigbee2mqtt

   [{"id":"99d22f28.c5986","type":"switch","z":"9cfe9fe8.2f389","name":"Wat","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"},{"t":"eq","v":"brightness_up","vt":"str"},{"t":"eq","v":"brightness_down","vt":"str"},{"t":"eq","v":"brightness_stop","vt":"str"}],"checkall":"true","repair":false,"outputs":5,"x":350,"y":800,"wires":[["f52a1f57.839bf"],["7ff8409b.ac7d5"],["50938689.553fc8"],["eb1d410a.1677d"],["f64f168b.cbbb98"]]},{"id":"c7447c0e.3357a","type":"server-state-changed","z":"9cfe9fe8.2f389","name":"Przycisk Marcin","server":"5596e145.a6e0f","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.przycisk_marcin_click","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":180,"y":780,"wires":[["99d22f28.c5986"]]},{"id":"f52a1f57.839bf","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Lampka sypialnia","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.lampka_sypialnia_light","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":970,"y":740,"wires":[[]]},{"id":"7ff8409b.ac7d5","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Lampki parapet","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.sciemiacz","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":960,"y":780,"wires":[[]]},{"id":"6b3925c4.6b45cc","type":"api-render-template","z":"9cfe9fe8.2f389","name":"Bri +20","server":"5596e145.a6e0f","template":"{{ [255, state_attr('light.lampka_sypialnia_light', 'brightness') + 20] | min }}","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":720,"y":740,"wires":[["3e8e3a0b.0a7ac6"]]},{"id":"50938689.553fc8","type":"api-current-state","z":"9cfe9fe8.2f389","name":"Is aan?","server":"5596e145.a6e0f","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.lampka_sypialnia_light","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":520,"y":740,"wires":[["6b3925c4.6b45cc","3978b3a1.111fbc"],[]]},{"id":"3e8e3a0b.0a7ac6","type":"api-call-service","z":"9cfe9fe8.2f389","name":"Zmień jasność","server":"5596e145.a6e0f","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.lampka_sypialnia_light","data":"{\"brightness\":\"{{ payload }}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":960,"y":820,"wires":[[]]},{"id":"eb1d410a.1677d","type":"api-current-state","z":"9cfe9fe8.2f389","name":"Is aan?","server":"5596e145.a6e0f","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.lampka_sypialnia_light","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":520,"y":800,"wires":[["58b30b1a.e782c4","ce1441fd.ecb82"],[]]},{"id":"58b30b1a.e782c4","type":"api-render-template","z":"9cfe9fe8.2f389","name":"Bri -20","server":"5596e145.a6e0f","template":"{{ [1, state_attr('light.lampka_sypialnia_light', 'brightness') - 20] | max }}","resultsLocation":"payload","resultsLocationType":"msg","templateLocation":"template","templateLocationType":"msg","x":710,"y":780,"wires":[["3e8e3a0b.0a7ac6","d822ca3c.d256a8"]]},{"id":"f64f168b.cbbb98","type":"change","z":"9cfe9fe8.2f389","name":"Stop","rules":[{"t":"set","p":"payload","pt":"msg","to":"STOP","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":510,"y":880,"wires":[["3978b3a1.111fbc","ce1441fd.ecb82"]]},{"id":"3038833e.595b4c","type":"server-state-changed","z":"9cfe9fe8.2f389","name":"Przycisk Edyta","server":"5596e145.a6e0f","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"sensor.przycisk_edyta_click","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":180,"y":840,"wires":[["99d22f28.c5986"]]},{"id":"d822ca3c.d256a8","type":"debug","z":"9cfe9fe8.2f389","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":950,"y":880,"wires":[]},{"id":"6dff281b.8fa978","type":"comment","z":"9cfe9fe8.2f389","name":"Przyciski IKEA","info":"","x":200,"y":740,"wires":[]},{"id":"3978b3a1.111fbc","type":"looptimer2","z":"9cfe9fe8.2f389","duration":"0.5","units":"Second","maxloops":"100","maxtimeout":"1","maxtimeoutunits":"Minute","name":"Loop up","x":740,"y":860,"wires":[["6b3925c4.6b45cc"],[]]},{"id":"ce1441fd.ecb82","type":"looptimer2","z":"9cfe9fe8.2f389","duration":"0.5","units":"Second","maxloops":"100","maxtimeout":"1","maxtimeoutunits":"Minute","name":"Loop Down","x":750,"y":920,"wires":[["58b30b1a.e782c4"],[]]},{"id":"5596e145.a6e0f","type":"server","z":"","name":"AIS  ","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
2 polubienia

Bardzo dobry post, ponieważ wszystkie swoje automatyzacje również mam w Node-RED to się przyłączę do tematu i wrzucę swój zbiór z “Porannym powiadomieniem” przed wyjazdem do pracy.

[{"id":"16b0edd0.bf3cd2","type":"inject","z":"8acfe29.68d5a2","name":"6:59 (wt. - piąt.)","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"59 06 * * 2,3,4,5","once":false,"onceDelay":0.1,"x":150,"y":400,"wires":[["65187d44.4ba004"]]},{"id":"4141f3de.f8402c","type":"api-current-state","z":"8acfe29.68d5a2","name":"Przewidywana pogoda","server":"d7879a84.ebd9a8","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.dark_sky_summary_3h","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":180,"y":480,"wires":[["4b09023a.a5667c"]]},{"id":"4b09023a.a5667c","type":"switch","z":"8acfe29.68d5a2","name":"Przewidywana pogoda","property":"payload","propertyType":"msg","rules":[{"t":"neq","v":"aktualna_pogoda","vt":"msg"},{"t":"eq","v":"aktualna_pogoda","vt":"msg"}],"checkall":"true","repair":false,"outputs":2,"x":420,"y":480,"wires":[["6545619.32f13a"],["33cc4efd.eeac92"]]},{"id":"6545619.32f13a","type":"function","z":"8acfe29.68d5a2","name":"Zmiana","func":"msg.przewidywana_pogoda = msg.payload\nmsg.wiadomosc = msg.wiadomosc+\n    \"W najbliższych godzinach pogoda ulegnie zmianie na \"+msg.przewidywana_pogoda+\". \";\nreturn msg;","outputs":1,"noerr":0,"x":620,"y":460,"wires":[["28dedc3b.64dd54"]]},{"id":"33cc4efd.eeac92","type":"function","z":"8acfe29.68d5a2","name":"Bez zmian","func":"msg.przewidywana_pogoda = msg.payload\nmsg.wiadomosc = msg.wiadomosc+\n    \"W najbliższych godzinach pogoda nie ulegnie zmianie. \";\nreturn msg;","outputs":1,"noerr":0,"x":630,"y":500,"wires":[["28dedc3b.64dd54"]]},{"id":"28dedc3b.64dd54","type":"api-current-state","z":"8acfe29.68d5a2","name":"Aktualna temperatura","server":"d7879a84.ebd9a8","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.dark_sky_temperature_0h","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":840,"y":480,"wires":[["d67a779a.fb5738"]]},{"id":"d67a779a.fb5738","type":"function","z":"8acfe29.68d5a2","name":"Temperatura","func":"msg.temperatura = Math.round(msg.payload);\nmsg.wiadomosc = msg.wiadomosc+\n    \"Temperatura odczuwalna na ten moment to około \"+msg.temperatura+\" stopni celcjusza. \";\nreturn msg;","outputs":1,"noerr":0,"x":1050,"y":480,"wires":[["717e9d20.431514"]]},{"id":"717e9d20.431514","type":"api-current-state","z":"8acfe29.68d5a2","name":"Czas dojazdu Marcina do Pracy","server":"d7879a84.ebd9a8","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.dojazd_do_pracy_m","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":210,"y":580,"wires":[["148ccd67.fc5c23"]]},{"id":"148ccd67.fc5c23","type":"function","z":"8acfe29.68d5a2","name":"Czas dojazdu Marcina do Pracy","func":"msg.wiadomosc = msg.wiadomosc+\n    \"Czas dojazdu Marcina do pracy to około \"+msg.payload+\" minuty. \";\nreturn msg;","outputs":1,"noerr":0,"x":510,"y":580,"wires":[["b52c67a2.06ddd8"]]},{"id":"b52c67a2.06ddd8","type":"api-current-state","z":"8acfe29.68d5a2","name":"Najbliższe zadania","server":"d7879a84.ebd9a8","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"calendar.calendar_gmail_com","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":770,"y":580,"wires":[["1994c971.4ed1c7"]]},{"id":"1994c971.4ed1c7","type":"function","z":"8acfe29.68d5a2","name":"Aktualna data","func":"const date = new Date(msg.data.attributes.start_time);\n\ndate.getDate();\ndate.getMonth();\ndate.getFullYear();\n\nconst isToday = (date) => {\n    const today = new Date()\n    return date.getDate() === today.getDate() &&\n        date.getMonth() === today.getMonth() &&\n        date.getFullYear() === today.getFullYear();\n};\n\nif (isToday(date)) {\n  msg.wiadomosc = msg.wiadomosc+\n    \" Pamiętaj, że dzisiaj najbliższym zadaniem do wykonania jest \"+msg.data.attributes.message+\". \";\n} else {\n  msg.wiadomosc = msg.wiadomosc+\n    \" Dzisiaj brak zadań do wykonania. Najbliższe to \"+msg.data.attributes.message+\". Jednak to dopiero jutro. \";\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":980,"y":580,"wires":[["41606f4c.bc877"]]},{"id":"3087f539.4d936a","type":"function","z":"8acfe29.68d5a2","name":"Pełna wiadomość","func":"msg.payload = \n{\n    \"data\":\n    {\n        \"text\": msg.wiadomosc,\n    }\n}\n\nreturn msg;","outputs":1,"noerr":0,"x":170,"y":680,"wires":[["d4191bfa.404d48"]]},{"id":"d4191bfa.404d48","type":"api-call-service","z":"8acfe29.68d5a2","name":"Wbudowany głośnik","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"ais_ai_service","service":"say_it","entityId":"media_player.wbudowany_glosnik","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":400,"y":680,"wires":[[]]},{"id":"41606f4c.bc877","type":"api-call-service","z":"8acfe29.68d5a2","name":"Ustawienie głośności","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.wbudowany_glosnik","data":"{\"volume_level\": 0.8}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1200,"y":580,"wires":[["3087f539.4d936a"]]},{"id":"a8b7347b.f35d88","type":"comment","z":"8acfe29.68d5a2","name":"Poranne powiadomienia dla Marcina","info":"","x":180,"y":300,"wires":[]},{"id":"a74d4c9d.8d798","type":"inject","z":"8acfe29.68d5a2","name":"7:46 (pon.)","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"46 07 * * 1","once":false,"onceDelay":0.1,"x":130,"y":360,"wires":[["65187d44.4ba004"]]},{"id":"92a6f33b.26712","type":"function","z":"8acfe29.68d5a2","name":"Aktualna data i godzina","func":"const teraz = new Date();\nconst dni_miesiaca = [\"\",\"pierwszy\",\"drugi\",\"trzeci\",\"czwarty\",\"piąty\",\"szósty\",\"siódmy\",\"ósmy\",\"dziewiąty\",\"dziesiąty\",\n                    \"jedenasty\",\"dwónasty\",\"trzynasty\",\"czternasty\",\"piętnasty\",\"szesnasty\",\"siedemnasty\",\"osiemnasty\",\n                    \"dziewiętnasty\",\"dwódziesty\",\"dwódziesty pierwszy\",\"dwódziesty drugi\",\"dwódziesty trzeci\",\n                    \"dwódziesty czwarty\",\"dwódziesty piąty\",\"dwódziesty szósty\",\"dwódziesty siódmy\",\"dwódziesty ósmy\",\n                    \"dwódziesty dziewiąty\",\"trzydziesty\",\"trzydziesty pierwszy\"];\nconst dni_tygodnia = [\"niedziela\",\"poniedziałek\",\"wtorek\",\"środa\",\"czwartek\",\"piątek\",\"sobota\"];\nconst miesiace = [\"stycznia\",\"lutego\",\"marca\",\"kwietnia\",\"maja\",\"czerwca\",\"lipca\",\"sierpnia\", \"września\",\n                \"października\",\"listopada\",\"grudnia\"];\nmsg.dzien_tygodnia = `${ dni_tygodnia[teraz.getDay()] }`;\nmsg.dzien_miesiaca = `${ dni_miesiaca[teraz.getDate()] }`;\nmsg.miesiac = `${ miesiace[teraz.getMonth()] }`;\nmsg.godzina = teraz.getHours() + \":\" + teraz.getMinutes();\n\nmsg.wiadomosc = \"Dzisiaj jest \"+msg.dzien_tygodnia+\" \"+msg.dzien_miesiaca+\" dzień \"+msg.miesiac+\" właśnie mineła godzina \"+msg.godzina+\". \";\n\nreturn msg;","outputs":1,"noerr":0,"x":610,"y":360,"wires":[["d1e949c8.33f028"]]},{"id":"d1e949c8.33f028","type":"api-current-state","z":"8acfe29.68d5a2","name":"Aktualna pogoda","server":"d7879a84.ebd9a8","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"sensor.dark_sky_summary_0h","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":850,"y":360,"wires":[["15290aad.b7fa85"]]},{"id":"15290aad.b7fa85","type":"function","z":"8acfe29.68d5a2","name":"Aktualna pogoda","func":"msg.aktualna_pogoda = msg.payload\nmsg.wiadomosc = msg.wiadomosc+\n    \"Pogoda na ten moment to \"+msg.aktualna_pogoda+\". \";\nreturn msg;","outputs":1,"noerr":0,"x":1070,"y":360,"wires":[["4141f3de.f8402c"]]},{"id":"65187d44.4ba004","type":"api-current-state","z":"8acfe29.68d5a2","name":"Gdzie Marcin?","server":"d7879a84.ebd9a8","version":1,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"person.marcin","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":380,"y":360,"wires":[["92a6f33b.26712"],[]]},{"id":"d7879a84.ebd9a8","type":"server","z":"","name":"Asystent domowy","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
2 polubienia

Jeszcze dorzucę również flow sonoff RF + 8 przyciskowy pilot do sterowania Roborock S50 oraz taśmą LED RGB (aktualnie go modernizuję w związku z rozbudową systemu powiadomień).

[{"id":"85bcb267.53698","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Turbo","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_set_turbo","entityId":"script.vacuum_set_turbo","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":220,"wires":[["f032a57a.964d68"]]},{"id":"f032a57a.964d68","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Kuchnia i Jadalnia","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_kuchnia","entityId":"script.vacuum_kuchnia","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1140,"y":220,"wires":[[]]},{"id":"9812c7de.871638","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Turbo","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_set_turbo","entityId":"script.vacuum_set_turbo","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":280,"wires":[["f1807772.a58d78"]]},{"id":"f1807772.a58d78","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Korytarz","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_korytarz","entityId":"script.vacuum_korytarz","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1110,"y":280,"wires":[[]]},{"id":"dfbaac53.8a5cc","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Turbo","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_set_turbo","entityId":"script.vacuum_set_turbo","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":160,"wires":[["80b0222.bbe6ae"]]},{"id":"1480164c.bc9c1a","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Turbo","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_set_turbo","entityId":"script.vacuum_set_turbo","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":340,"wires":[["149b173d.d5b759"]]},{"id":"149b173d.d5b759","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Łazienka","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_lazienka","entityId":"script.vacuum_lazienka","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1110,"y":340,"wires":[[]]},{"id":"e1645ebd.4b222","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Mop","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_set_mop","entityId":"script.vacuum_set_mop","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":100,"wires":[[]]},{"id":"80b0222.bbe6ae","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Kuchnia 1","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_kuchnia_strefa","entityId":"script.vacuum_kuchnia_strefa","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1120,"y":160,"wires":[[]]},{"id":"c0741125.822b2","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Command","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"ais_ai_service","service":"say_it","entityId":"","data":"{\"text\":\"OK! Rozpoczynam sprzątanie kuchni skoro tego sobie życzysz.\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":160,"wires":[["dfbaac53.8a5cc"]]},{"id":"9b9c00a8.2b535","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Turbo","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_set_turbo","entityId":"script.vacuum_set_turbo","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":400,"wires":[["ca73da6e.5c94d8"]]},{"id":"ca73da6e.5c94d8","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Sypialnia","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_sypialnia","entityId":"script.vacuum_sypialnia","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1110,"y":400,"wires":[[]]},{"id":"3e1e18ce.8a1e28","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Turbo","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_set_turbo","entityId":"script.vacuum_set_turbo","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":940,"y":460,"wires":[["aec044e6.164038"]]},{"id":"aec044e6.164038","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Dziecięcy","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"script","service":"vacuum_wiktoria","entityId":"script.vacuum_wiktoria","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1120,"y":460,"wires":[[]]},{"id":"33c2e83b.3c69a8","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Command","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"ais_ai_service","service":"say_it","entityId":"","data":"{\"text\":\"OK! Ustawiam tryb mopowania skoro tego sobie życzysz.\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":100,"wires":[["e1645ebd.4b222"]]},{"id":"77b43dd5.f60ac4","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Command","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"ais_ai_service","service":"say_it","entityId":"","data":"{\"text\":\"OK! Rozpoczynam sprzątanie jadalni i kuchni skoro tego sobie życzysz.\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":220,"wires":[["85bcb267.53698"]]},{"id":"a9a78bdb.f95098","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Command","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"ais_ai_service","service":"say_it","entityId":"","data":"{\"text\":\"OK! Rozpoczynam sprzątanie korytarza skoro tego sobie życzysz.\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":280,"wires":[["9812c7de.871638"]]},{"id":"96f2c092.2b40b","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Command","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"ais_ai_service","service":"say_it","entityId":"","data":"{\"text\":\"OK! Rozpoczynam sprzątanie łazienki skoro tego sobie życzysz.\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":340,"wires":[["1480164c.bc9c1a"]]},{"id":"2d619825.3c3828","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Command","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"ais_ai_service","service":"say_it","entityId":"","data":"{\"text\":\"OK! Rozpoczynam sprzątanie sypialni skoro tego sobie życzysz.\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":400,"wires":[["9b9c00a8.2b535"]]},{"id":"c2883ef2.73eec","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Set Command","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"ais_ai_service","service":"say_it","entityId":"","data":"{\"text\":\"OK! Rozpoczynam sprzątanie u Wiki skoro tego sobie życzysz.\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":760,"y":460,"wires":[["3e1e18ce.8a1e28"]]},{"id":"7941652d.d8270c","type":"comment","z":"7037b4cb.fd12bc","name":"Pilot 433 MHz - Roborock S50","info":"","x":160,"y":60,"wires":[]},{"id":"50c64f3.ec80eb","type":"mqtt in","z":"7037b4cb.fd12bc","name":"Bramka RF","topic":"Bridge-RF/tele/RESULT","qos":"0","datatype":"json","broker":"f20ce2ab.c6893","x":110,"y":300,"wires":[["48d0bf44.816d8"]]},{"id":"48d0bf44.816d8","type":"switch","z":"7037b4cb.fd12bc","name":"Kody RF","property":"payload.RfReceived.Data","propertyType":"msg","rules":[{"t":"eq","v":"D4BD71","vt":"str"},{"t":"eq","v":"D4BD78","vt":"str"},{"t":"eq","v":"D4BD7C","vt":"str"},{"t":"eq","v":"D4BD74","vt":"str"},{"t":"eq","v":"D4BD79","vt":"str"},{"t":"eq","v":"D4BD72","vt":"str"},{"t":"eq","v":"D4BD75","vt":"str"},{"t":"eq","v":"D4BD73","vt":"str"}],"checkall":"true","repair":false,"outputs":8,"x":280,"y":300,"wires":[["aaa52c7f.51b3b"],["a1154469.28f888"],["eef58b02.bab508"],["4b15e20a.9eff6c"],["b326e22d.da8ca"],["fe4c8e16.42773"],["7aac8b85.d9b114"],["5e19f805.066048"]]},{"id":"4de8c069.18adc","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Light Off","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.wled","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":540,"wires":[[]]},{"id":"d1096a23.b58ce8","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Light On","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.wled","data":"{\"brightness_pct\":85,\"effect\":\"Rainbow\",\"transition\":1.5}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":740,"y":680,"wires":[[]]},{"id":"5e19f805.066048","type":"api-current-state","z":"7037b4cb.fd12bc","name":"WLED Kuchnia","server":"d7879a84.ebd9a8","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.wled","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":520,"y":580,"wires":[["4de8c069.18adc"],["a4585676.9e5ef8"]]},{"id":"d76572b1.13e8a","type":"comment","z":"7037b4cb.fd12bc","name":"Pilot 433 MHz - RGB Kuchnia","info":"","x":160,"y":500,"wires":[]},{"id":"aaa52c7f.51b3b","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Ustawienie głośności","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.wbudowany_glosnik","data":"{\"volume_level\": 0.8}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":100,"wires":[["33c2e83b.3c69a8"]]},{"id":"a4585676.9e5ef8","type":"wled2","z":"7037b4cb.fd12bc","address":"192.168.4.201","brightness":"229","delay":0,"color1":"#ffffff","color2":"#ffffff","color3":"#ffffff","effect":"9","effectIntensity":"97","effectSpeed":"97","name":"WLED (Kuchnia)","palette":"0","state":"on","x":770,"y":620,"wires":[[]]},{"id":"a1154469.28f888","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Ustawienie głośności","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.wbudowany_glosnik","data":"{\"volume_level\": 0.8}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":160,"wires":[["c0741125.822b2"]]},{"id":"eef58b02.bab508","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Ustawienie głośności","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.wbudowany_glosnik","data":"{\"volume_level\": 0.8}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":220,"wires":[["77b43dd5.f60ac4"]]},{"id":"4b15e20a.9eff6c","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Ustawienie głośności","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.wbudowany_glosnik","data":"{\"volume_level\": 0.8}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":280,"wires":[["a9a78bdb.f95098"]]},{"id":"b326e22d.da8ca","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Ustawienie głośności","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.wbudowany_glosnik","data":"{\"volume_level\": 0.8}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":340,"wires":[["96f2c092.2b40b"]]},{"id":"fe4c8e16.42773","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Ustawienie głośności","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.wbudowany_glosnik","data":"{\"volume_level\": 0.8}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":400,"wires":[["2d619825.3c3828"]]},{"id":"7aac8b85.d9b114","type":"api-call-service","z":"7037b4cb.fd12bc","name":"Ustawienie głośności","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.wbudowany_glosnik","data":"{\"volume_level\": 0.8}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":540,"y":460,"wires":[["c2883ef2.73eec"]]},{"id":"d7879a84.ebd9a8","type":"server","z":"","name":"Asystent domowy","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"f20ce2ab.c6893","type":"mqtt-broker","z":"","name":"MQTT","broker":"192.168.4.4","port":"1883","clientid":"Node-Red","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]
2 polubienia

I jeszcze flow do wyłączania grupy oświetlenia zewnętrznego o zadanej godzinie. Do prawidłowego funkcjonowania tego flow będziemy musieli stworzyć dwóch pomocników w Home Assistant (jeden " Data i/lub godzina" oraz drugi “Przełącznik”).

harmonogram_oswietlenie_ha

[{"id":"9413db69.4aa5e8","type":"server-state-changed","z":"8acfe29.68d5a2","name":"Pobranie danych z input","server":"d7879a84.ebd9a8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_datetime.czas","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":280,"y":1480,"wires":[["a55c9489.52de58"]]},{"id":"a55c9489.52de58","type":"change","z":"8acfe29.68d5a2","name":"Ustawiony czas","rules":[{"t":"set","p":"godziny","pt":"msg","to":"data.new_state.attributes.hour","tot":"msg"},{"t":"set","p":"minuty","pt":"msg","to":"data.new_state.attributes.minute","tot":"msg"},{"t":"set","p":"sekundy","pt":"msg","to":"data.new_state.attributes.second","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":1480,"wires":[["db8c9fd5.ac04d"]]},{"id":"db8c9fd5.ac04d","type":"api-current-state","z":"8acfe29.68d5a2","name":"Czy włączony","server":"d7879a84.ebd9a8","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.harmonogram","state_type":"str","state_location":"harmonogram","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":460,"y":1560,"wires":[["101cf2de.8970bd"],["90f8a59.b178258"]]},{"id":"101cf2de.8970bd","type":"function","z":"8acfe29.68d5a2","name":"Ustawienie harmonogramu","func":"msg.payload =\n  {\n    \"command\": \"add\",\n    \"name\": \"one time\",\n    \"expression\": msg.sekundy+\" \"+msg.minuty+\" \"+msg.godziny+\" * * *\",\n    \"expressionType\": \"cron\",\n    \"payloadType\": \"default\",\n  }\nreturn msg;","outputs":1,"noerr":0,"x":760,"y":1520,"wires":[["354e29fe.86f446"]]},{"id":"354e29fe.86f446","type":"cronplus","z":"8acfe29.68d5a2","name":"Harmonogram","outputField":"payload","timeZone":"","persistDynamic":false,"commandResponseMsgOutput":"output1","outputs":1,"options":[],"x":1020,"y":1560,"wires":[["a3bf74aa.720b08"]]},{"id":"90f8a59.b178258","type":"function","z":"8acfe29.68d5a2","name":"Zatrzymanie harmonogramu","func":"msg.payload =\n  {\n    \"command\": \"stop\",\n    \"name\": \"one time\",\n  }\nreturn msg;","outputs":1,"noerr":0,"x":760,"y":1620,"wires":[["354e29fe.86f446"]]},{"id":"dbffcfcf.a0e4c","type":"server-state-changed","z":"8acfe29.68d5a2","name":"Pobranie danych z input","server":"d7879a84.ebd9a8","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.harmonogram","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":280,"y":1700,"wires":[["ad4812ff.c3343"],["90f8a59.b178258"]]},{"id":"ad4812ff.c3343","type":"api-current-state","z":"8acfe29.68d5a2","name":"Aktualnie czas","server":"d7879a84.ebd9a8","version":1,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_datetime.czas","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":260,"y":1620,"wires":[["5bfdf85b.383e38"]]},{"id":"5bfdf85b.383e38","type":"change","z":"8acfe29.68d5a2","name":"Ustawiony czas","rules":[{"t":"set","p":"godziny","pt":"msg","to":"data.attributes.hour","tot":"msg"},{"t":"set","p":"minuty","pt":"msg","to":"data.attributes.minute","tot":"msg"},{"t":"set","p":"sekundy","pt":"msg","to":"data.attributes.second","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":460,"y":1620,"wires":[["101cf2de.8970bd"]]},{"id":"a3bf74aa.720b08","type":"api-call-service","z":"8acfe29.68d5a2","name":"Oświetlenie na zewnątrz","server":"d7879a84.ebd9a8","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"group.lights_na_zewnatrz","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1270,"y":1560,"wires":[[]]},{"id":"405d9b70.fe7974","type":"comment","z":"8acfe29.68d5a2","name":"Harmonogram wyłączania oświetlenia zewnętrznego.","info":"","x":350,"y":1420,"wires":[]},{"id":"d7879a84.ebd9a8","type":"server","z":"","name":"Asystent domowy","legacy":false,"addon":false,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
2 polubienia

Super @Marco zapraszam kolejnych użytkowników Jolki :hugs:

Brawo Wy!
Ja się czaje na node reda, ale boję się o stabilność Jolki. Automatyzacji tyle mam w HA, że grzebanie w nich doprowadza mnie do szału.
PS piątek, piąteczek, piątunio :cocktail:

1 polubienie

Kończ drineczka i instaluj Node Reda. Automatyzacja w nim to bajka. Jak przekroczyłem setkę automatyzacji w HA to NR mnie uratował. @Tomasz otwieraj flaszkę i ogarniemy twoje automatyzacje w NR. :stuck_out_tongue_winking_eye:

1 polubienie

Ja korzystam z Node-RED na bramce Jolki i na stabilność nie narzekam, nie zauważyłem jakichkolwiek problemów po instalacji Node-REDa. A i Jolka sobie dobrze z nim radzi.

jolka_nodered

1 polubienie

Namówileś :crazy_face:

U mnie bez node red

2 polubienia

Jak dodać te wszystkie encje z czujnikami, CPU i odczyty zajętości?
Instalujecie lm_sensors?

No to może moja konfiguracja pilot IKEA 2 przyciskowy + Żarówka IKEA z dimmerem + światło zwykłe po MQTT.


flows (1).json (16,8 KB)

1 polubienie

w sensor.yaml dodajemy wpis:

- platform: systemmonitor
  resources:
    - type: disk_use_percent
      arg: /data/data/pl.sviete.dom/files/home
    - type: disk_free
      arg: /data/data/pl.sviete.dom/files/home
    - type: memory_free
    - type: memory_use_percent
    - type: processor_use
    - type: last_boot
    - type: swap_use_percent
    - type: swap_free

źrodło: System monitor - Home Assistant

3 polubienia

Nie mogę u siebie odnaleźć takiego pliku jak sensor.yaml.
Chyba, że sam go tworzysz.
Jeśli TAK to, czy w configuration.yaml dodajesz wówczas wpis: sensor: !include sensor.yaml?

Dokładnie jak piszesz.

Dzięki, to jeszcze tylko podpowiedz jak zmieniłaś nazwy tych encji na własne?

KONFIGURACJA - - > DOSTOSOWYWANIE

1 polubienie