Advertisement
Guest User

Untitled

a guest
Nov 12th, 2021
34
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"482f890a.cda0a8","type":"tab","label":"Casa","disabled":false,"info":""},{"id":"980814d3.ecbc78","type":"server-state-changed","z":"482f890a.cda0a8","name":"Andre","server":"ca5bb1b0.694ae","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.andre_asus","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","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":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":150,"y":120,"wires":[["4caeb2ca.4784fc","3ab88cae.6c2d84"]]},{"id":"632fbbce.37ee34","type":"server-state-changed","z":"482f890a.cda0a8","name":"Paloma","server":"ca5bb1b0.694ae","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.paloma_motorola","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","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":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":150,"y":540,"wires":[["ad512850.feb0e8","469eeea0.78edc"]]},{"id":"4caeb2ca.4784fc","type":"api-current-state","z":"482f890a.cda0a8","name":"Andre chegou","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.andre_asus","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":360,"y":80,"wires":[["97615914.2da0e8"],[]]},{"id":"3ab88cae.6c2d84","type":"api-current-state","z":"482f890a.cda0a8","name":"Andre saiu","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.andre_asus","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":350,"y":520,"wires":[["ea97d6df.6f50f8"],[]]},{"id":"ad512850.feb0e8","type":"api-current-state","z":"482f890a.cda0a8","name":"Paloma chegou","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.paloma_motorola","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":360,"y":140,"wires":[["9141c026.18f2e"],[]]},{"id":"469eeea0.78edc","type":"api-current-state","z":"482f890a.cda0a8","name":"Paloma saiu","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.paloma_motorola","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":350,"y":580,"wires":[["109b7d81.b70232"],[]]},{"id":"97615914.2da0e8","type":"api-current-state","z":"482f890a.cda0a8","name":"Paloma fora?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.paloma_motorola","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":570,"y":80,"wires":[["3da03592.f1b7fa","3dd8d44531438dbf"],[]]},{"id":"ea97d6df.6f50f8","type":"api-current-state","z":"482f890a.cda0a8","name":"Paloma fora?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.paloma_motorola","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":570,"y":520,"wires":[["2007fb9e.170924","f7733410.4a3e48","22af75a0.f0afaa"],[]]},{"id":"9141c026.18f2e","type":"api-current-state","z":"482f890a.cda0a8","name":"Andre Fora?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.andre_asus","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":570,"y":140,"wires":[["3da03592.f1b7fa","3dd8d44531438dbf"],["8eddedd4.c5183","d15ca20a.62e7e","3dd8d44531438dbf"]]},{"id":"109b7d81.b70232","type":"api-current-state","z":"482f890a.cda0a8","name":"Andre Fora?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"not_home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.andre_asus","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":570,"y":580,"wires":[["2007fb9e.170924","f7733410.4a3e48","22af75a0.f0afaa"],[]]},{"id":"51e4be4f.5cef4","type":"api-call-service","z":"482f890a.cda0a8","name":"Liga luz rua","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.73106672c82b96e4bdb5","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1230,"y":20,"wires":[[]]},{"id":"2a56fc94.3d0884","type":"api-call-service","z":"482f890a.cda0a8","name":"Liga luz sala","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.ebcc79b5c4532db927kut3","data":"{\"brightness\":\"255\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1230,"y":140,"wires":[[]]},{"id":"22af75a0.f0afaa","type":"api-call-service","z":"482f890a.cda0a8","name":"Desliga luz rua","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.73106672c82b96e4bdb5","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":520,"wires":[[]]},{"id":"2007fb9e.170924","type":"api-call-service","z":"482f890a.cda0a8","name":"Desliga luz sala","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.ebcc79b5c4532db927kut3","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":640,"wires":[[]]},{"id":"bc1a9aaa.71a078","type":"harmonyws-command","z":"482f890a.cda0a8","name":"TV cozinha","server":"c3c57ba7.0c3758","activity":"67112703","command":"67112703:PowerToggle","hold":"1","repeat":"1","delay":"3","x":1010,"y":200,"wires":[[]]},{"id":"d15ca20a.62e7e","type":"api-call-service","z":"482f890a.cda0a8","name":"Paloma chegando","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"tts","service":"google_translate_say","entityId":"media_player.google_living_room","data":"{\t\"message\":\"Attention: Paloma will arrive soon, be prepared \"\t}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":690,"y":220,"wires":[[]]},{"id":"ca31396f.0a71e8","type":"api-call-service","z":"482f890a.cda0a8","name":"Luz freezer","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.eb55cb933b1be31e27vkkh","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1230,"y":80,"wires":[[]]},{"id":"f7733410.4a3e48","type":"api-call-service","z":"482f890a.cda0a8","name":"Luz freezer","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.eb55cb933b1be31e27vkkh","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1010,"y":580,"wires":[[]]},{"id":"8eddedd4.c5183","type":"api-call-service","z":"482f890a.cda0a8","name":"","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.google_living_room","data":"{\"volume_level\":1}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":430,"y":220,"wires":[[]]},{"id":"3da03592.f1b7fa","type":"ha-wait-until","z":"482f890a.cda0a8","name":"","server":"ca5bb1b0.694ae","version":0,"outputs":1,"entityId":"binary_sensor.ty36426202a4e57c898de8","entityIdFilterType":"exact","property":"state","comparator":"is","value":"on","valueType":"str","timeout":0,"timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":780,"y":140,"wires":[["bc1a9aaa.71a078","08035922bd9e31f6","00b1a8596bc13a7a"]]},{"id":"08035922bd9e31f6","type":"function","z":"482f890a.cda0a8","name":"Hora agora","func":"msg.payload = new Date().toISOString();\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1010,"y":320,"wires":[["4e6fe79c63f8efb7"]]},{"id":"4e6fe79c63f8efb7","type":"moment","z":"482f890a.cda0a8","name":"HH:mm","topic":"date","input":"payload","inputType":"msg","inTz":"America/Sao_Paulo","adjAmount":0,"adjType":"days","adjDir":"add","format":"HH:mm","locale":"BR","output":"payload","outputType":"msg","outTz":"America/Sao_Paulo","x":1220,"y":320,"wires":[["f6881243c24ffb67"]]},{"id":"00b1a8596bc13a7a","type":"openweathermap","z":"482f890a.cda0a8","name":"Porto Alegre","wtype":"onecall","lon":"-51.23","lat":"-30.0331","city":"","country":"","language":"pt","x":1010,"y":260,"wires":[["2f732ec0753eb4bb"]]},{"id":"2f732ec0753eb4bb","type":"delay","z":"482f890a.cda0a8","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":1200,"y":260,"wires":[["6eaab455c9ca3b87","ec5fd20ecd024ac1","14248054f72c4373"]]},{"id":"6eaab455c9ca3b87","type":"cast-to-client","z":"482f890a.cda0a8","name":"","url":"http://192.168.2.21/audio/05.wav","contentType":"audio/wav","message":"","language":"en","ip":"192.168.2.143","port":"","volume":"","x":1450,"y":200,"wires":[[]]},{"id":"ec5fd20ecd024ac1","type":"function","z":"482f890a.cda0a8","name":"","func":"msg.payload.current.temp = Math.round(msg.payload.current.temp)\nmsg.payload.daily[1].temp.min = Math.round(msg.payload.daily[1].temp.min)\nmsg.payload.daily[1].temp.max = Math.round(msg.payload.daily[1].temp.max)\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":1420,"y":260,"wires":[["f135522c370d5223"]]},{"id":"14248054f72c4373","type":"api-call-service","z":"482f890a.cda0a8","name":"","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"media_player","service":"volume_set","entityId":"media_player.google_living_room","data":"{\"volume_level\":1}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1490,"y":140,"wires":[[]]},{"id":"f135522c370d5223","type":"change","z":"482f890a.cda0a8","name":"hora sai do flow","rules":[{"t":"set","p":"payload.current.hora","pt":"msg","to":"hora","tot":"flow"}],"action":"","property":"","from":"","to":"","reg":false,"x":1440,"y":320,"wires":[["866fedd7887ddd56"]]},{"id":"866fedd7887ddd56","type":"api-call-service","z":"482f890a.cda0a8","name":"","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"tts","service":"watson_tts_say","entityId":"media_player.google_kitchen","data":"{\t\"message\":\"Seja bem vindo a sua casinha. A hora atual é \" & payload.current.hora & \", e a temperatura está em \" & payload.current.temp & \" graus. A previsão para amanhã é de \" & payload.daily[1].temp.min & \". Aproveite o resto do seu dia!\"\t}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1470,"y":380,"wires":[[]]},{"id":"f6881243c24ffb67","type":"change","z":"482f890a.cda0a8","name":"hora entra no flow","rules":[{"t":"set","p":"hora","pt":"flow","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":1030,"y":380,"wires":[[]]},{"id":"9bd06f1bca9b3a5f","type":"inject","z":"482f890a.cda0a8","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":750,"y":340,"wires":[["00b1a8596bc13a7a","08035922bd9e31f6"]]},{"id":"3dd8d44531438dbf","type":"time-range-switch","z":"482f890a.cda0a8","name":"","lat":"","lon":"","startTime":"sunset","endTime":"sunrise","startOffset":0,"endOffset":0,"x":760,"y":60,"wires":[[],["51e4be4f.5cef4","067dc9fa9f2b5a7d"]]},{"id":"067dc9fa9f2b5a7d","type":"ha-wait-until","z":"482f890a.cda0a8","name":"","server":"ca5bb1b0.694ae","version":0,"outputs":1,"entityId":"binary_sensor.ty36426202a4e57c898de8","entityIdFilterType":"exact","property":"state","comparator":"is","value":"on","valueType":"str","timeout":0,"timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":1000,"y":140,"wires":[["ca31396f.0a71e8","2a56fc94.3d0884"]]},{"id":"ca5bb1b0.694ae","type":"server","name":"Home Assistant","addon":true},{"id":"c3c57ba7.0c3758","type":"harmonyws-server","name":"maestro","ip":"192.168.2.51","debug":false}]
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement