[{"id":"9365827d.42fe7","type":"tab","label":"Node-Red e Home Assistant - \"Alexa, posso dormire tranquillo?\"","disabled":false,"info":"Vi ricordo il Corso Node-Red in italiano, ecco il link al MODULO per richiederlo\nhttps://forms.gle/ZttA4HdoeKFNwqy39\n\nPer qualsiasi domanda, corsi Node-Red riservati e progetti, non esitate a contattarmi:\nSono Manuel del Gada e mi trovi sul Gruppo Facebook “NodeRED Italia” al link:\nhttps://www.facebook.com/groups/517859938754220"},{"id":"2cc6f602.044bba","type":"api-current-state","z":"9365827d.42fe7","name":"luce salotto","server":"afc9cf7e.282a4","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.luce_salotto","state_type":"str","state_location":"","override_payload":"none","entity_location":"","override_data":"none","blockInputOverrides":false,"x":310,"y":40,"wires":[["1a902ac0.39cf65","bd38992d.2f3368"],[]]},{"id":"b6c72413.115838","type":"inject","z":"9365827d.42fe7","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":40,"wires":[["2cc6f602.044bba","e1fd72f8.17de2","e800217e.8cb85","e7edf1dc.395f3","54cb4779.b50158","cbf8fc44.4ab4f"]]},{"id":"e1fd72f8.17de2","type":"api-current-state","z":"9365827d.42fe7","name":"luce corridoio","server":"afc9cf7e.282a4","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.luce_corridoio","state_type":"str","state_location":"","override_payload":"none","entity_location":"","override_data":"none","blockInputOverrides":false,"x":320,"y":100,"wires":[["2c381a51.460336","bd38992d.2f3368"],[]]},{"id":"e800217e.8cb85","type":"api-current-state","z":"9365827d.42fe7","name":"luce cameretta","server":"afc9cf7e.282a4","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.luce_cameretta","state_type":"str","state_location":"","override_payload":"none","entity_location":"","override_data":"none","blockInputOverrides":false,"x":320,"y":160,"wires":[["7e39f691.a58048","bd38992d.2f3368"],[]]},{"id":"e7edf1dc.395f3","type":"api-current-state","z":"9365827d.42fe7","name":"tapp salotto","server":"afc9cf7e.282a4","version":1,"outputs":2,"halt_if":"open","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"cover.tapparella_salotto","state_type":"str","state_location":"","override_payload":"none","entity_location":"","override_data":"none","blockInputOverrides":false,"x":310,"y":320,"wires":[["845cfe37.59b84","856127c1.b5b1a8"],[]]},{"id":"1e912f46.907ed1","type":"template","z":"9365827d.42fe7","name":"luci accese","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"le luci accese sono","output":"str","x":670,"y":220,"wires":[["55774c0f.979c54"]]},{"id":"1a902ac0.39cf65","type":"template","z":"9365827d.42fe7","name":"nome","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"salotto","output":"str","x":510,"y":40,"wires":[["2a618ec2.f93772"]]},{"id":"2c381a51.460336","type":"template","z":"9365827d.42fe7","name":"nome","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"corridoio","output":"str","x":510,"y":100,"wires":[["2a618ec2.f93772"]]},{"id":"7e39f691.a58048","type":"template","z":"9365827d.42fe7","name":"nome","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"cameretta","output":"str","x":510,"y":160,"wires":[["2a618ec2.f93772"]]},{"id":"55774c0f.979c54","type":"join","z":"9365827d.42fe7","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":", ","joinerType":"str","accumulate":false,"timeout":"2","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":830,"y":100,"wires":[["65e91403.0867fc","94e3c920.a188f8"]]},{"id":"bd38992d.2f3368","type":"trigger","z":"9365827d.42fe7","op1":"","op2":"","op1type":"pay","op2type":"nul","duration":"500","extend":false,"units":"ms","reset":"","bytopic":"all","name":"Passa 1","x":520,"y":220,"wires":[["1e912f46.907ed1"]]},{"id":"54cb4779.b50158","type":"api-current-state","z":"9365827d.42fe7","name":"tapp cameretta","server":"afc9cf7e.282a4","version":1,"outputs":2,"halt_if":"open","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"cover.tapparella_cameretta","state_type":"str","state_location":"","override_payload":"none","entity_location":"","override_data":"none","blockInputOverrides":false,"x":320,"y":380,"wires":[["7b6f466a.1b5888","856127c1.b5b1a8"],[]]},{"id":"cbf8fc44.4ab4f","type":"api-current-state","z":"9365827d.42fe7","name":"tapp bagno","server":"afc9cf7e.282a4","version":1,"outputs":2,"halt_if":"open","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"cover.tapparella_bagno","state_type":"str","state_location":"","override_payload":"none","entity_location":"","override_data":"none","blockInputOverrides":false,"x":310,"y":440,"wires":[["dfc07042.07aec","856127c1.b5b1a8"],[]]},{"id":"845cfe37.59b84","type":"template","z":"9365827d.42fe7","name":"nome","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"salotto","output":"str","x":510,"y":320,"wires":[["2e9973f7.be1dec"]]},{"id":"7b6f466a.1b5888","type":"template","z":"9365827d.42fe7","name":"nome","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"cameretta","output":"str","x":510,"y":380,"wires":[["2e9973f7.be1dec"]]},{"id":"dfc07042.07aec","type":"template","z":"9365827d.42fe7","name":"nome","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"bagno","output":"str","x":510,"y":440,"wires":[["2e9973f7.be1dec"]]},{"id":"ba3cec3d.6cd3f","type":"template","z":"9365827d.42fe7","name":"tapp aperte","field":"payload","fieldType":"msg","format":"handlebars","syntax":"mustache","template":"le tapparelle aperte sono","output":"str","x":670,"y":500,"wires":[["b00656af.7afc48"]]},{"id":"856127c1.b5b1a8","type":"trigger","z":"9365827d.42fe7","op1":"","op2":"","op1type":"pay","op2type":"nul","duration":"500","extend":false,"units":"ms","reset":"","bytopic":"all","name":"Passa 1","x":520,"y":500,"wires":[["ba3cec3d.6cd3f"]]},{"id":"b00656af.7afc48","type":"join","z":"9365827d.42fe7","name":"","mode":"custom","build":"string","property":"payload","propertyType":"msg","key":"topic","joiner":", ","joinerType":"str","accumulate":false,"timeout":"2","count":"","reduceRight":false,"reduceExp":"","reduceInit":"","reduceInitType":"","reduceFixup":"","x":830,"y":380,"wires":[["65e91403.0867fc","94e3c920.a188f8"]]},{"id":"65e91403.0867fc","type":"debug","z":"9365827d.42fe7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":1010,"y":220,"wires":[]},{"id":"2e9973f7.be1dec","type":"delay","z":"9365827d.42fe7","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":660,"y":380,"wires":[["b00656af.7afc48"]]},{"id":"2a618ec2.f93772","type":"delay","z":"9365827d.42fe7","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":660,"y":100,"wires":[["55774c0f.979c54"]]},{"id":"94e3c920.a188f8","type":"api-call-service","z":"9365827d.42fe7","name":"notifica alexa","server":"afc9cf7e.282a4","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_echo_dot_di_mr","entityId":"","data":"{\"data\":{\"method\":\"speak\",\"type\":\"announce\"},\"message\":\"{{payload}}\",\"target\":[\"media_player.alexa_media_alexa_salone\"],\"title\":\"Titolo\"}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1030,"y":260,"wires":[[]],"info":"Su data aprite il file json e configuratelo.\nEcco il file esempio:\n\n{\n \"data\": {\n \"method\": \"speak\",\n \"type\": \"announce\"\n },\n \"message\": \"{{payload}}\",\n \"target\": [\n \"media_player.alexa_media_alexa_salone\"\n ],\n \"title\": \"Titolo\"\n}\n\nLasciate tutto invariato.\n{{payload}} é il messaggio dinamico che gli arriva in ingresso. Se volete eliminarte la dinamicità, potete sostituirlo con una frase a piacere."},{"id":"afc9cf7e.282a4","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]