Advertisement
Guest User

Untitled

a guest
Nov 12th, 2021
42
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [{"id":"2ecd9a04.eea826","type":"tab","label":"Cozinha","disabled":false,"info":""},{"id":"b6d3fa88bf3b3afc","type":"api-call-service","z":"2ecd9a04.eea826","name":"Liga porta","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.tyeb5cad1028bfa98e4dw3xz","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":580,"y":40,"wires":[[]]},{"id":"f73ab9f39c93618b","type":"api-call-service","z":"2ecd9a04.eea826","name":"Desliga porta","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.tyeb5cad1028bfa98e4dw3xz","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":590,"y":200,"wires":[[]]},{"id":"5e7ac49e4ab09ed5","type":"api-call-service","z":"2ecd9a04.eea826","name":"Liga pia","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.tyeb54d3c19f6efdd8b7c3ap","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":580,"y":120,"wires":[[]]},{"id":"61d20f783c12cce4","type":"api-call-service","z":"2ecd9a04.eea826","name":"Desliga pia","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.tyeb54d3c19f6efdd8b7c3ap","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":590,"y":280,"wires":[[]]},{"id":"fb351d3ad3bca58f","type":"server-state-changed","z":"2ecd9a04.eea826","name":"Luz Freezer","server":"ca5bb1b0.694ae","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.eb55cb933b1be31e27vkkh","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,"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":110,"y":160,"wires":[["d9226e0b6d328ae4","d7043918ea4be58b"],["cc285abcbc24841b","814fd14a0b01081c"]]},{"id":"d9226e0b6d328ae4","type":"api-current-state","z":"2ecd9a04.eea826","name":"Porta ligada?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.tyeb5cad1028bfa98e4dw3xz","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":330,"y":40,"wires":[[],["b6d3fa88bf3b3afc"]]},{"id":"d7043918ea4be58b","type":"api-current-state","z":"2ecd9a04.eea826","name":"Pia ligada?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.tyeb54d3c19f6efdd8b7c3ap","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":330,"y":120,"wires":[[],["5e7ac49e4ab09ed5"]]},{"id":"cc285abcbc24841b","type":"api-current-state","z":"2ecd9a04.eea826","name":"Porta desligada?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.tyeb5cad1028bfa98e4dw3xz","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":200,"wires":[[],["f73ab9f39c93618b"]]},{"id":"814fd14a0b01081c","type":"api-current-state","z":"2ecd9a04.eea826","name":"Pia desligada?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.tyeb54d3c19f6efdd8b7c3ap","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":340,"y":280,"wires":[[],["61d20f783c12cce4"]]},{"id":"cb1ea96be6d0a762","type":"server-state-changed","z":"2ecd9a04.eea826","name":"Luz Porta","server":"ca5bb1b0.694ae","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.tyeb5cad1028bfa98e4dw3xz","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,"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":80,"y":500,"wires":[["757fd2fad6367a16","eeb2dd0a0f73d8e4","92f7bed4c0731d66","a65c1c6db12c1b5d"],["61419a0492d96824","de08a31d3a3642c0","92f7bed4c0731d66","a65c1c6db12c1b5d"]]},{"id":"757fd2fad6367a16","type":"api-current-state","z":"2ecd9a04.eea826","name":"Freezer ligada?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.eb55cb933b1be31e27vkkh","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":340,"y":380,"wires":[[],["7252c8f246de2fd4"]]},{"id":"eeb2dd0a0f73d8e4","type":"api-current-state","z":"2ecd9a04.eea826","name":"Pia ligada?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.tyeb54d3c19f6efdd8b7c3ap","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":330,"y":460,"wires":[[],["ad4e45c1e5e99a3a"]]},{"id":"61419a0492d96824","type":"api-current-state","z":"2ecd9a04.eea826","name":"Freezer desligada?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.eb55cb933b1be31e27vkkh","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":540,"wires":[[],["40ea0abe6de98a1e"]]},{"id":"de08a31d3a3642c0","type":"api-current-state","z":"2ecd9a04.eea826","name":"Pia desligada?","server":"ca5bb1b0.694ae","version":2,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"switch.tyeb54d3c19f6efdd8b7c3ap","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":340,"y":620,"wires":[[],["c4358c7faec16954"]]},{"id":"7252c8f246de2fd4","type":"api-call-service","z":"2ecd9a04.eea826","name":"Liga freezer","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.eb55cb933b1be31e27vkkh","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":590,"y":380,"wires":[[]]},{"id":"40ea0abe6de98a1e","type":"api-call-service","z":"2ecd9a04.eea826","name":"Desliga freezer","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.eb55cb933b1be31e27vkkh","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":600,"y":540,"wires":[[]]},{"id":"ad4e45c1e5e99a3a","type":"api-call-service","z":"2ecd9a04.eea826","name":"Liga pia","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.tyeb54d3c19f6efdd8b7c3ap","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":580,"y":460,"wires":[[]]},{"id":"c4358c7faec16954","type":"api-call-service","z":"2ecd9a04.eea826","name":"Desliga pia","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.tyeb54d3c19f6efdd8b7c3ap","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":590,"y":620,"wires":[[]]},{"id":"043a6e911833afd6","type":"change","z":"2ecd9a04.eea826","name":"Reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"foo","tot":"str"},{"t":"delete","p":"payload","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":490,"y":860,"wires":[["92f7bed4c0731d66"]]},{"id":"92f7bed4c0731d66","type":"counter","z":"2ecd9a04.eea826","name":"","init":"0","step":"1","lower":null,"upper":null,"mode":"increment","outputs":"1","x":320,"y":800,"wires":[["2a950b5ce5c73017"]]},{"id":"febaa3263ee0b163","type":"switch","z":"2ecd9a04.eea826","name":"count presses","property":"count","propertyType":"flow","rules":[{"t":"eq","v":"1","vt":"num"},{"t":"eq","v":"2","vt":"num"},{"t":"eq","v":"3","vt":"num"}],"checkall":"true","repair":false,"outputs":3,"x":520,"y":940,"wires":[["24f85299efa3612f"],["3b9680020acc6615"],["acedc95e76a4f873"]],"info":"Just expand the flow.count to how ever many\npresses you want/need."},{"id":"a65c1c6db12c1b5d","type":"trigger","z":"2ecd9a04.eea826","name":"","op1":"","op2":"0","op1type":"nul","op2type":"str","duration":"3","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":320,"y":940,"wires":[["2dc6205068913d3b","febaa3263ee0b163"]]},{"id":"2a950b5ce5c73017","type":"change","z":"2ecd9a04.eea826","name":"Flow set","rules":[{"t":"set","p":"count","pt":"flow","to":"count","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":500,"y":800,"wires":[[]]},{"id":"24f85299efa3612f","type":"change","z":"2ecd9a04.eea826","name":"Single Press","rules":[{"t":"set","p":"payload","pt":"msg","to":"Single Press","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":860,"wires":[[]]},{"id":"3b9680020acc6615","type":"change","z":"2ecd9a04.eea826","name":"Double Press","rules":[{"t":"set","p":"payload","pt":"msg","to":"Double Press","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":760,"y":940,"wires":[["30815a00231ed36e","1a41e1ab3bbb4540","524ddf700947c1d5","f8a90fbb4c4eb2df","fcab64c5e4aa60ce","ed4ff83d2e25a470","d449959f2f7b4cce"]]},{"id":"2dc6205068913d3b","type":"delay","z":"2ecd9a04.eea826","name":"Delay","pauseType":"delay","timeout":"3","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"x":310,"y":860,"wires":[["043a6e911833afd6"]]},{"id":"acedc95e76a4f873","type":"change","z":"2ecd9a04.eea826","name":"Tripple Press","rules":[{"t":"set","p":"payload","pt":"msg","to":"Tripple Press","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":1020,"wires":[["1a41e1ab3bbb4540","f8a90fbb4c4eb2df","30815a00231ed36e","524ddf700947c1d5","fcab64c5e4aa60ce","48b669af31e9168f","ed4ff83d2e25a470","d449959f2f7b4cce"]]},{"id":"7af95895029af7b5","type":"comment","z":"2ecd9a04.eea826","name":"DELAY","info":"Pressionando 2x o botão em menos de 3s de cada pressionada ele vai desligar tudo.\nPressionando 3x ele fará o mesmo, e ligará a rua.","x":310,"y":720,"wires":[]},{"id":"30815a00231ed36e","type":"api-call-service","z":"2ecd9a04.eea826","name":"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":980,"y":980,"wires":[[]]},{"id":"1a41e1ab3bbb4540","type":"api-call-service","z":"2ecd9a04.eea826","name":"Desliga freezer","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.eb55cb933b1be31e27vkkh","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":860,"wires":[[]]},{"id":"f8a90fbb4c4eb2df","type":"api-call-service","z":"2ecd9a04.eea826","name":"Desliga pia","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.tyeb54d3c19f6efdd8b7c3ap","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":990,"y":920,"wires":[[]]},{"id":"524ddf700947c1d5","type":"api-call-service","z":"2ecd9a04.eea826","name":"Desliga porta","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.tyeb5cad1028bfa98e4dw3xz","data":"","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":990,"y":1040,"wires":[[]]},{"id":"fcab64c5e4aa60ce","type":"harmonyws-command","z":"2ecd9a04.eea826","name":"TV cozinha","server":"c3c57ba7.0c3758","activity":"67112703","command":"67112703:PowerToggle","hold":"1","repeat":"1","delay":"3","x":990,"y":740,"wires":[[]]},{"id":"48b669af31e9168f","type":"api-call-service","z":"2ecd9a04.eea826","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":990,"y":1100,"wires":[[]]},{"id":"ed4ff83d2e25a470","type":"api-call-service","z":"2ecd9a04.eea826","name":"Desliga luz sala","server":"ca5bb1b0.694ae","version":3,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.ebcc79b5c4532db927kut3","data":"{\"brightness\":\"255\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1000,"y":800,"wires":[[]]},{"id":"d449959f2f7b4cce","type":"harmonyws-activity","z":"2ecd9a04.eea826","name":"Desliga Maestro","server":"c3c57ba7.0c3758","activity":"-1","x":1000,"y":680,"wires":[[]]},{"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