Notificar Porta Aberta

Estou a iniciar-me em Node-Red e criei um flow para o estado do portão da garagem, para tal tenho um sensor no portão que me está a notificar (para já no Google Home mini) de quando abre e fecha, indicando uma mensagem diferente conforme abre ou fecha, contudo queria que ele me avisa-se de 10 em 10 minutos se o portão ficar aberto.

Podes usar um wait until node.

1 Curtiu

Éra mesmo isso, já implementei :slight_smile:

[{"id":"6c1d4169.603db","type":"server-state-changed","z":"311e7059.fab7d","name":"Sensor Portão Garagem","server":"41c88f58.f0d1e","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.door_window_sensor_158d0001fa8d69","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":150,"y":240,"wires":[["b21dc788.c72d98"],["7837751.fd7c98c"]]},{"id":"b21dc788.c72d98","type":"api-call-service","z":"311e7059.fab7d","name":"","server":"41c88f58.f0d1e","version":1,"debugenabled":false,"service_domain":"tts","service":"google_translate_say","entityId":"media_player.cozinha","data":"{\"message\":\"O Portão da garagem está a abrir.\",\"language\":\"pt\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":460,"y":200,"wires":[["be92cf27.c7adb"]]},{"id":"7837751.fd7c98c","type":"api-call-service","z":"311e7059.fab7d","name":"","server":"41c88f58.f0d1e","version":1,"debugenabled":false,"service_domain":"tts","service":"google_translate_say","entityId":"media_player.cozinha","data":"{\"message\":\"O Portão da garagem está a fechar.\",\"language\":\"pt\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":460,"y":280,"wires":[[]]},{"id":"be92cf27.c7adb","type":"ha-wait-until","z":"311e7059.fab7d","name":"","server":"41c88f58.f0d1e","outputs":2,"entityId":"binary_sensor.door_window_sensor_158d0001fa8d69","property":"state","comparator":"is","value":"off","valueType":"str","timeout":"10","timeoutUnits":"minutes","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":720,"y":200,"wires":[[],["4eb8812a.d4d74"]]},{"id":"4eb8812a.d4d74","type":"api-call-service","z":"311e7059.fab7d","name":"","server":"41c88f58.f0d1e","version":1,"debugenabled":false,"service_domain":"tts","service":"google_translate_say","entityId":"media_player.cozinha","data":"{\"message\":\"O Portão da garagem está aberto.\",\"language\":\"pt\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":780,"y":120,"wires":[["be92cf27.c7adb"]]},{"id":"41c88f58.f0d1e","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

Copyright © 2017-2021. Todos os direitos reservados
CPHA.pt - info@cpha.pt


FAQ | Termos de Serviço/Regras | Política de Privacidade