Verificar Janelas Abertas se começar a chover

Compartilhando minha automação:
Utilizei um sensor de agua (imersão), coloquei esse dispositivo em um local estratégico (calha do telhado) e assim que ele detecta agua, a rotina criada verifica se as janelas da casa estão abertas, envia mensagem para o celular e Assistente Google:

[{“id”:“00a3f62f9017c735”,“type”:“tab”,“label”:“CHV”,“disabled”:false,“info”:""},{“id”:“e26b3f8cb6287dc2”,“type”:“server-state-changed”,“z”:“00a3f62f9017c735”,“name”:“sensor chv”,“server”:“1cce4bcb.b9cac4”,“version”:3,“exposeToHomeAssistant”:false,“haConfig”:[{“property”:“name”,“value”:""},{“property”:“icon”,“value”:""}],“entityidfilter”:“binary_sensor.tyebd12b558d9a8c8f8ftz4t”,“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”:"",“forType”:“num”,“forUnits”:“seconds”,“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”:120,“y”:80,“wires”:[[“9fcd0a8a9904a67d”],[]]},{“id”:“0badcf85ab2eceb4”,“type”:“api-current-state”,“z”:“00a3f62f9017c735”,“name”:“JNL SJ”,“server”:“1cce4bcb.b9cac4”,“version”:2,“outputs”:2,“halt_if”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“entity_id”:“binary_sensor.ty068214528cce4ef0c5f4”,“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”:520,“y”:320,“wires”:[[“43f75fc6d74f2637”,“234273c3fd806288”],[“61904b2d1c0ecb45”]]},{“id”:“2238d4174fbdbdb5”,“type”:“api-current-state”,“z”:“00a3f62f9017c735”,“name”:“JNL S”,“server”:“1cce4bcb.b9cac4”,“version”:2,“outputs”:2,“halt_if”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“entity_id”:“binary_sensor.ty068214528cce4ef095aa”,“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”:230,“y”:260,“wires”:[[“b1d6f3ace37736bd”,“5cbb266729d46ddd”,“8d3fcd0e83174c11”],[“0badcf85ab2eceb4”]]},{“id”:“43f75fc6d74f2637”,“type”:“api-call-service”,“z”:“00a3f62f9017c735”,“name”:“MSG SJ”,“server”:“1cce4bcb.b9cac4”,“version”:3,“debugenabled”:false,“service_domain”:“tts”,“service”:“google_translate_say”,“entityId”:“media_player.google_home_mini_edu”,“data”:"{“message”:“JANELA SALA DE JANTAR ABERTA”}",“dataType”:“json”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:740,“y”:340,“wires”:[[]]},{“id”:“b1d6f3ace37736bd”,“type”:“api-call-service”,“z”:“00a3f62f9017c735”,“name”:“MSG JS”,“server”:“1cce4bcb.b9cac4”,“version”:3,“debugenabled”:false,“service_domain”:“tts”,“service”:“google_translate_say”,“entityId”:“media_player.google_home_mini_edu”,“data”:"{“message”:“JANELA SALA ABERTA”}",“dataType”:“json”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:520,“y”:120,“wires”:[[]]},{“id”:“5cbb266729d46ddd”,“type”:“delay”,“z”:“00a3f62f9017c735”,“name”:"",“pauseType”:“delay”,“timeout”:“3”,“timeoutUnits”:“seconds”,“rate”:“1”,“nbRateUnits”:“1”,“rateUnits”:“second”,“randomFirst”:“1”,“randomLast”:“5”,“randomUnits”:“seconds”,“drop”:false,“allowrate”:false,“x”:520,“y”:240,“wires”:[[“0badcf85ab2eceb4”]]},{“id”:“9fcd0a8a9904a67d”,“type”:“api-call-service”,“z”:“00a3f62f9017c735”,“name”:“MSG CHV”,“server”:“1cce4bcb.b9cac4”,“version”:3,“debugenabled”:false,“service_domain”:“tts”,“service”:“google_translate_say”,“entityId”:“media_player.google_home_mini_edu”,“data”:"{“message”:“Está chovendo”}",“dataType”:“json”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:310,“y”:80,“wires”:[[“c5f58b11cc9fba02”]]},{“id”:“c5f58b11cc9fba02”,“type”:“delay”,“z”:“00a3f62f9017c735”,“name”:"",“pauseType”:“delay”,“timeout”:“3”,“timeoutUnits”:“seconds”,“rate”:“1”,“nbRateUnits”:“1”,“rateUnits”:“second”,“randomFirst”:“1”,“randomLast”:“5”,“randomUnits”:“seconds”,“drop”:false,“allowrate”:false,“x”:240,“y”:160,“wires”:[[“2238d4174fbdbdb5”]]},{“id”:“f2d29196c6d20564”,“type”:“api-call-service”,“z”:“00a3f62f9017c735”,“name”:“MSG WIN OFF”,“server”:“1cce4bcb.b9cac4”,“version”:3,“debugenabled”:false,“service_domain”:“tts”,“service”:“google_translate_say”,“entityId”:“media_player.google_home_mini_edu”,“data”:"{“message”:“Todas as janelas estão fechadas”}",“dataType”:“json”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:760,“y”:460,“wires”:[[]]},{“id”:“61904b2d1c0ecb45”,“type”:“api-current-state”,“z”:“00a3f62f9017c735”,“name”:“JNL S”,“server”:“1cce4bcb.b9cac4”,“version”:2,“outputs”:2,“halt_if”:“on”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“entity_id”:“binary_sensor.ty068214528cce4ef095aa”,“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”:530,“y”:420,“wires”:[[],[“f2d29196c6d20564”,“947ad9fa781ded98”]]},{“id”:“8d3fcd0e83174c11”,“type”:“api-call-service”,“z”:“00a3f62f9017c735”,“name”:“Notificacao Celular”,“server”:“1cce4bcb.b9cac4”,“version”:3,“debugenabled”:false,“service_domain”:“notify”,“service”:“mobile_app_redmi_note_6_pro”,“entityId”:"",“data”:"{“message”:“Janela Sala Aberta”,“title”:“ESTÁ CHOVENDO”,“data”:{“duration”:30,“fontsize”:“large”,“position”:“center”,“color”:“red”,“file”:{“path”:"/config/www/imgs/cameras/camera.png"}}}",“dataType”:“json”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:550,“y”:180,“wires”:[[]]},{“id”:“234273c3fd806288”,“type”:“api-call-service”,“z”:“00a3f62f9017c735”,“name”:“Notificacao Celular”,“server”:“1cce4bcb.b9cac4”,“version”:3,“debugenabled”:false,“service_domain”:“notify”,“service”:“mobile_app_redmi_note_6_pro”,“entityId”:"",“data”:"{“message”:“Janela Sala Jantar Aberta”,“title”:“ESTÁ CHOVENDO”,“data”:{“duration”:30,“fontsize”:“large”,“position”:“center”,“color”:“red”,“file”:{“path”:"/config/www/imgs/cameras/camera.png"}}}",“dataType”:“json”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:770,“y”:280,“wires”:[[]]},{“id”:“947ad9fa781ded98”,“type”:“api-call-service”,“z”:“00a3f62f9017c735”,“name”:“Notificacao Celular”,“server”:“1cce4bcb.b9cac4”,“version”:3,“debugenabled”:false,“service_domain”:“notify”,“service”:“mobile_app_redmi_note_6_pro”,“entityId”:"",“data”:"{“message”:“Todas Janelas Fechadas”,“title”:“ESTÁ CHOVENDO”,“data”:{“duration”:30,“fontsize”:“large”,“position”:“center”,“color”:“red”,“file”:{“path”:"/config/www/imgs/cameras/camera.png"}}}",“dataType”:“json”,“mergecontext”:"",“mustacheAltTags”:false,“outputProperties”:[],“queue”:“none”,“x”:770,“y”:400,“wires”:[[]]},{“id”:“1cce4bcb.b9cac4”,“type”:“server”,“name”:“Home Assistant”,“version”:1,“addon”:true,“rejectUnauthorizedCerts”:true,“ha_boolean”:“y|yes|true|on|home|open”,“connectionDelay”:true,“cacheJson”:true}]

2 curtidas

Muito interessante, e, sobretudo, útil. Valeu !!!

1 curtida

boa, eu fiz igual aqui, mas usei OpenWeatherMap para identificar quando está chovendo, ele é um serviço de weather bem aproximado do real, recomendo.

1 curtida

OpenWeatherMap parece ser bem legal e útil, porém tentei instalar e não deu certo…vou tentar novamente.