Alexa actionable notifications Node red flows. When at set time range and how long something is on for

Tags: #<Tag:0x00007f73b9648a28> #<Tag:0x00007f73b9648960> #<Tag:0x00007f73b9648820> #<Tag:0x00007f73b9648708>

I am learning and wanted to share for others my alexa actionable notification flows to ask if I want to turn off lights at set time range and after they are on for a time range.

Bonus at bottom.
Node red flow that we can tell Alexa to “turn on Dinner time” input boolean.
Dining room light will turn on and our cooling system shuts off so it don’t blow on us at table. then reset after a hour.
And Alexa will announce on media player “its dinner time come and get it”

A flow that turns off overhead lights and turns on bed LED light when Ruku TV is played at night.

alexa actionable notification node red flow

[{"id":"5f4f9583.ff63ac","type":"tab","label":"alexa actions","disabled":false,"info":""},{"id":"88be0386.88a5","type":"api-call-service","z":"5f4f9583.ff63ac","name":"Alexa Act Notify do you want kitchen off","server":"c70028c6.b5cd08","version":1,"debugenabled":true,"service_domain":"script","service":"activate_alexa_actionable_notification","entityId":"","data":"{\"text\":\"Its almost bedtime and kitchen lights are on. Would you like me to shut it off?\",\"event_id\":\"actionable_notification_kitchen_light\",\"alexa_device\":\"media_player.rod_s_echo_dot\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":634,"y":203,"wires":[[]]},{"id":"ead440ed.3b4a2","type":"api-current-state","z":"5f4f9583.ff63ac","name":"kitchen light on after 9","server":"c70028c6.b5cd08","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.kitchen_light","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":280,"y":140,"wires":[["88be0386.88a5"],[]]},{"id":"91459de6.ce996","type":"inject","z":"5f4f9583.ff63ac","name":"after 9","props":[{"p":"payload"}],"repeat":"","crontab":"*/15 21-23 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":148,"y":80,"wires":[["69e06e80.fb699"]]},{"id":"75a04a1c.edb5a4","type":"api-call-service","z":"5f4f9583.ff63ac","name":"shut off ALL kitchen lights","server":"c70028c6.b5cd08","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.kitchen_light, switch.sink","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":965,"y":498,"wires":[[]]},{"id":"83854ccf.3e4d6","type":"switch","z":"5f4f9583.ff63ac","name":"kitchen Response","property":"payload.event.event_response","propertyType":"msg","rules":[{"t":"eq","v":"ResponseYes","vt":"str"},{"t":"eq","v":"ResponseNo","vt":"str"},{"t":"eq","v":"ResponseNone","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":645,"y":518,"wires":[["75a04a1c.edb5a4"],[],["75a04a1c.edb5a4"]]},{"id":"56d6fe7.8ab69","type":"switch","z":"5f4f9583.ff63ac","name":"Event ID LIST","property":"payload.event.event_id","propertyType":"msg","rules":[{"t":"eq","v":"actionable_notification_kitchen_light","vt":"str"},{"t":"eq","v":"mybedroomlight","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":385,"y":528,"wires":[["83854ccf.3e4d6"],["8d92c6ae.fe4398"]]},{"id":"5fd921b3.02aab","type":"server-events","z":"5f4f9583.ff63ac","name":"Alexa Notification Response","server":"c70028c6.b5cd08","event_type":"alexa_actionable_notification","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":140,"y":520,"wires":[["56d6fe7.8ab69"]]},{"id":"69e06e80.fb699","type":"api-current-state","z":"5f4f9583.ff63ac","name":"anyone home?","server":"c70028c6.b5cd08","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.occupied","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":308,"y":80,"wires":[["4dcc9ec1.815ef"],[]]},{"id":"4dcc9ec1.815ef","type":"link out","z":"5f4f9583.ff63ac","name":"9pm to midnight in","links":["39c25713.564a98","98ece32a.dab78"],"x":448,"y":74,"wires":[]},{"id":"39c25713.564a98","type":"link in","z":"5f4f9583.ff63ac","name":"9pm to midnight out","links":["4dcc9ec1.815ef"],"x":69,"y":180,"wires":[["ead440ed.3b4a2","c5c588e8.772ca8"]]},{"id":"c5c588e8.772ca8","type":"api-current-state","z":"5f4f9583.ff63ac","name":"lSnk light on after 9","server":"c70028c6.b5cd08","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.sink","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":264,"y":200,"wires":[["88be0386.88a5"],[]]},{"id":"8d92c6ae.fe4398","type":"switch","z":"5f4f9583.ff63ac","name":"bedroom Response","property":"payload.event.event_response","propertyType":"msg","rules":[{"t":"eq","v":"ResponseYes","vt":"str"},{"t":"eq","v":"ResponseNo","vt":"str"},{"t":"eq","v":"ResponseNone","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":645,"y":578,"wires":[["795b6ab8.790cc4"],[],["795b6ab8.790cc4"]]},{"id":"795b6ab8.790cc4","type":"api-call-service","z":"5f4f9583.ff63ac","name":"shut off bedroom lights","server":"c70028c6.b5cd08","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.my_bedroom_light","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":955,"y":578,"wires":[[]]},{"id":"19734bd9.d6a314","type":"comment","z":"5f4f9583.ff63ac","name":"Alexa actionable notifications ","info":"","x":140,"y":40,"wires":[]},{"id":"afe7854e.8d4fe8","type":"api-call-service","z":"5f4f9583.ff63ac","name":"Alexa is bedroom on do you want off","server":"c70028c6.b5cd08","version":1,"debugenabled":false,"service_domain":"script","service":"activate_alexa_actionable_notification","entityId":"","data":"{\"text\":\"bed room light is on, do you want off?\",\"event_id\":\"mybedroomlight\",\"alexa_device\":\"media_player.rod_s_echo_dot\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":810,"y":300,"wires":[[]]},{"id":"5f22d9f.0d6d128","type":"server-state-changed","z":"5f4f9583.ff63ac","name":"bedroom on","server":"c70028c6.b5cd08","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.my_bedroom_light","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":110,"y":360,"wires":[["e48a7a9d.5a8408"],[]]},{"id":"e48a7a9d.5a8408","type":"trigger","z":"5f4f9583.ff63ac","name":"on for  20 minutes","op1":"","op2":"","op1type":"nul","op2type":"date","duration":"20","extend":true,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":310,"y":354,"wires":[["387ee1b2.d50d7e"]]},{"id":"387ee1b2.d50d7e","type":"time-range-switch","z":"5f4f9583.ff63ac","name":"daytime","lat":"37.314417","lon":"-119.658383","startTime":"goldenHourEnd","endTime":"goldenHour","startOffset":0,"endOffset":0,"x":500,"y":340,"wires":[["afe7854e.8d4fe8"],[]]},{"id":"b9ccfeca.b64a2","type":"comment","z":"5f4f9583.ff63ac","name":"another way to trigger at a time of day and for how long on. ","info":"","x":270,"y":280,"wires":[]},{"id":"9c322e3b.64b13","type":"comment","z":"5f4f9583.ff63ac","name":"trigger node. if light is turned off and back on again the delay will reset","info":"","x":430,"y":420,"wires":[]},{"id":"7f15a335.f31f8c","type":"comment","z":"5f4f9583.ff63ac","name":"Alexa takes action below ","info":"","x":200,"y":480,"wires":[]},{"id":"64e439ab.d494c8","type":"comment","z":"5f4f9583.ff63ac","name":"list of Events Id to flow to entities ","info":"","x":370,"y":580,"wires":[]},{"id":"5bd305.39b6dcfc","type":"comment","z":"5f4f9583.ff63ac","name":"what to do with YES, NO and no Response ","info":"","x":660,"y":640,"wires":[]},{"id":"882d818b.381df","type":"comment","z":"5f4f9583.ff63ac","name":"Can list several Switch entities separated by comma","info":"","x":890,"y":460,"wires":[]},{"id":"c70028c6.b5cd08","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

alexa actionable notification node red flow

[{"id":"8c753717.876d78","type":"tab","label":"alexa","disabled":false,"info":""},{"id":"1c10a9bb.3ee386","type":"api-call-service","z":"8c753717.876d78","d":true,"name":"Alexa Act Notify ","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"script","service":"activate_alexa_actionable_notification","entityId":"","data":"{\"text\":\" kitchen lights are on for 30 minutes. Would you like me to shut it off?\",\"event_id\":\"kitchen\",\"alexa_device\":\"media_player.kitchen_echo_dot\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":460,"y":20,"wires":[[]]},{"id":"cf96933d.cd959","type":"api-current-state","z":"8c753717.876d78","d":true,"name":"kitchen daytime","server":"ceea5ac5.1b1658","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"switch.kitchen_light","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":180,"y":80,"wires":[["93c49824.3b9cb8"],[]]},{"id":"bcbb70de.bd8be","type":"inject","z":"8c753717.876d78","d":true,"name":"daytime","props":[{"p":"payload"}],"repeat":"","crontab":"*/30 8-16 * * *","once":false,"onceDelay":0.1,"topic":"","payload":"true","payloadType":"bool","x":100,"y":20,"wires":[["cf96933d.cd959"]]},{"id":"c9cb5776.034ef8","type":"api-call-service","z":"8c753717.876d78","name":"kitchen off","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.kitchen_light","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":840,"y":602,"wires":[[]]},{"id":"e8e6513b.43b1e","type":"switch","z":"8c753717.876d78","name":"Notification Response","property":"payload.event.event_response","propertyType":"msg","rules":[{"t":"eq","v":"ResponseYes","vt":"str"},{"t":"eq","v":"ResponseNo","vt":"str"},{"t":"eq","v":"ResponseNone","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":640,"y":602,"wires":[["c9cb5776.034ef8"],[],["c9cb5776.034ef8"]]},{"id":"935da565.4e0958","type":"switch","z":"8c753717.876d78","name":"Event ID LIST","property":"payload.event.event_id","propertyType":"msg","rules":[{"t":"eq","v":"kitchen","vt":"str"},{"t":"eq","v":"barbbed","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":379,"y":602,"wires":[["e8e6513b.43b1e"],["bc2dec9.243d31"]]},{"id":"ef68ab29.b75c68","type":"server-events","z":"8c753717.876d78","name":"Alexa Notification Response","server":"ceea5ac5.1b1658","event_type":"alexa_actionable_notification","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"waitForRunning":true,"x":140,"y":602,"wires":[["935da565.4e0958"]]},{"id":"93c49824.3b9cb8","type":"api-call-service","z":"8c753717.876d78","d":true,"name":"kitchen moms room","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"script","service":"activate_alexa_actionable_notification","entityId":"","data":"{\"text\":\" kitchen lights are on for 30 minutes. Would you like me to shut it off?\",\"event_id\":\"kitchen\",\"alexa_device\":\"media_player.moms_room_dot\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":390,"y":80,"wires":[["1c10a9bb.3ee386"]]},{"id":"f6a6d641.f595d8","type":"api-call-service","z":"8c753717.876d78","name":"barbs light off","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.our_bedroom_light","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":840,"y":682,"wires":[[]]},{"id":"808dfef1.62413","type":"server-state-changed","z":"8c753717.876d78","name":"kitchen on","server":"ceea5ac5.1b1658","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.kitchen_light","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":100,"y":220,"wires":[["9796b695.b6ee88"],[]]},{"id":"9796b695.b6ee88","type":"trigger","z":"8c753717.876d78","name":"on for  30 minutes","op1":"","op2":"","op1type":"nul","op2type":"date","duration":"30","extend":true,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":150,"y":280,"wires":[["bb42c358.f7be6"]]},{"id":"bb42c358.f7be6","type":"time-range-switch","z":"8c753717.876d78","name":"daytime","lat":"37.212537","lon":"-119.681740","startTime":"goldenHourEnd","endTime":"goldenHour","startOffset":0,"endOffset":0,"x":300,"y":200,"wires":[["4358ad32.8a99e4"],[]]},{"id":"e4ea9b90.990598","type":"comment","z":"8c753717.876d78","name":"another way to trigger at a time of day and for how long on. ","info":"","x":250,"y":160,"wires":[]},{"id":"8badd5a8.7f9738","type":"comment","z":"8c753717.876d78","name":"trigger node. if light is turned off and back on again the delay will reset","info":"","x":270,"y":320,"wires":[]},{"id":"4358ad32.8a99e4","type":"api-call-service","z":"8c753717.876d78","name":"Alexa kitchen notification","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"script","service":"activate_alexa_actionable_notification","entityId":"","data":"{\"text\":\" kitchen lights are on for 30 minutes. Would you like me to shut it off?\",\"event_id\":\"kitchen\",\"alexa_device\":\"media_player.kitchen_echo_dot\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":510,"y":200,"wires":[["336541eb.220cfe"]]},{"id":"336541eb.220cfe","type":"api-call-service","z":"8c753717.876d78","name":"alexa in moms room","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"script","service":"activate_alexa_actionable_notification","entityId":"","data":"{\"text\":\" kitchen lights are on for 30 minutes. Would you like me to shut it off?\",\"event_id\":\"kitchen\",\"alexa_device\":\"media_player.moms_room_dot\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":520,"y":260,"wires":[[]]},{"id":"bc2dec9.243d31","type":"switch","z":"8c753717.876d78","name":"Notification Response","property":"payload.event.event_response","propertyType":"msg","rules":[{"t":"eq","v":"ResponseYes","vt":"str"},{"t":"eq","v":"ResponseNo","vt":"str"},{"t":"eq","v":"ResponseNone","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":620,"y":682,"wires":[["f6a6d641.f595d8"],[],["f6a6d641.f595d8"]]},{"id":"b2cbbcf7.22636","type":"server-state-changed","z":"8c753717.876d78","name":"bedroom on","server":"ceea5ac5.1b1658","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"switch.our_bedroom_light","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":110,"y":400,"wires":[["14354da7.712c12"],[]]},{"id":"14354da7.712c12","type":"trigger","z":"8c753717.876d78","name":"on for  30 minutes","op1":"","op2":"","op1type":"nul","op2type":"date","duration":"30","extend":true,"units":"min","reset":"off","bytopic":"all","topic":"topic","outputs":1,"x":150,"y":460,"wires":[["b997663f.19f0b8"]]},{"id":"b997663f.19f0b8","type":"time-range-switch","z":"8c753717.876d78","name":"daytime","lat":"37.212537","lon":"-119.681740","startTime":"goldenHourEnd","endTime":"goldenHour","startOffset":0,"endOffset":0,"x":300,"y":380,"wires":[["cfca7cc5.0038c"],[]]},{"id":"cfca7cc5.0038c","type":"api-call-service","z":"8c753717.876d78","name":"Alexa Act Notify barbs bed","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"script","service":"activate_alexa_actionable_notification","entityId":"","data":"{\"text\":\" barbs bedroom lights are on for 30 minutes. Would you like me to shut it off?\",\"event_id\":\"barbbed\",\"alexa_device\":\"media_player.kitchen_echo_dot\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":520,"y":380,"wires":[["7e1d1211.024acc"]]},{"id":"7e1d1211.024acc","type":"api-call-service","z":"8c753717.876d78","name":"kitchen moms room","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"script","service":"activate_alexa_actionable_notification","entityId":"","data":"{\"text\":\" kitchen lights are on for 30 minutes. Would you like me to shut it off?\",\"event_id\":\"kitchen\",\"alexa_device\":\"media_player.moms_room_dot\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":490,"y":440,"wires":[[]]},{"id":"6f2c2fc4.bf712","type":"comment","z":"8c753717.876d78","name":"below is action that alexa takes ","info":"","x":470,"y":540,"wires":[]},{"id":"bd4cb245.94fc3","type":"comment","z":"8c753717.876d78","name":"list of events IDs to flow to devices","info":"","x":340,"y":660,"wires":[]},{"id":"ceea5ac5.1b1658","type":"server","z":"","name":"Home Assistant","addon":true}]

Dinner time and TV time flows to turn on Input Booleans

Node red FLOW

[{"id":"415d010c.3c78","type":"tab","label":"TV time and ALL living rooms off. ","disabled":false,"info":""},{"id":"4b30316f.41b7e","type":"server-state-changed","z":"415d010c.3c78","name":"all lights","server":"ceea5ac5.1b1658","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.all_living_room_lights","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":110,"y":111,"wires":[["b299a24d.563b","a0c2ff4.e5527"],["7160f453.1ad40c","f9798b6a.92f718"]]},{"id":"b299a24d.563b","type":"api-call-service","z":"415d010c.3c78","name":"turn on all lights","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"group.living_room_lights","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":340,"y":71,"wires":[[]]},{"id":"7160f453.1ad40c","type":"api-call-service","z":"415d010c.3c78","name":"turn off all lights","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"group.living_room_lights","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":340,"y":111,"wires":[[]]},{"id":"7e78902a.1c1f","type":"server-state-changed","z":"415d010c.3c78","name":"tv time","server":"ceea5ac5.1b1658","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.tv_time","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":65,"y":492,"wires":[["dbc86ca5.4f79c","eea4de26.d5704","623795af.8c0dac"],[]]},{"id":"dbc86ca5.4f79c","type":"api-call-service","z":"415d010c.3c78","name":"light","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"switch","service":"turn_off","entityId":"switch.our_bedroom_light","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":495,"y":475,"wires":[[]]},{"id":"eea4de26.d5704","type":"api-call-service","z":"415d010c.3c78","name":"bed light","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.bed_light","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":585,"y":535,"wires":[[]]},{"id":"b49b7720.a25a78","type":"debug","z":"415d010c.3c78","name":"","active":true,"tosidebar":true,"console":true,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":215,"y":735,"wires":[]},{"id":"b3edc21d.5ed23","type":"api-call-service","z":"415d010c.3c78","name":"turn off input","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.tv_time","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":275,"y":555,"wires":[[]]},{"id":"623795af.8c0dac","type":"delay","z":"415d010c.3c78","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":105,"y":575,"wires":[["b3edc21d.5ed23"]]},{"id":"3b44028e.3f09ee","type":"comment","z":"415d010c.3c78","name":"input_boolean.tv_time click on for notes","info":"input_boolean.tv_time so we can tell alexa to turn on tv time","x":160,"y":453,"wires":[]},{"id":"ec4d286e.79e768","type":"comment","z":"415d010c.3c78","name":"Reset boolean.tv_time back to off","info":"pause then reset boolean back to off ","x":155,"y":615,"wires":[]},{"id":"29e5c506.e5db6a","type":"comment","z":"415d010c.3c78","name":"turn off over head light turn off LED","info":"turn on Over head light and turn off BED LED","x":665,"y":595,"wires":[]},{"id":"80fcfe28.e0dc9","type":"comment","z":"415d010c.3c78","name":"debug to extract Data from Roku","info":"msg : Object\nobject\n_msgid: \"2c3583eb.54c18c\"\n **payload: \"playing\"**","x":410,"y":760,"wires":[]},{"id":"845efa3f.3f42d8","type":"comment","z":"415d010c.3c78","name":"tell alexa turn off living room lights","info":"","x":160,"y":31,"wires":[]},{"id":"a0c2ff4.e5527","type":"api-call-service","z":"415d010c.3c78","name":"turn on all fans","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.dining_room_switch_dining_room_fan, switch.livingroom1_living_room_fan","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":400,"y":20,"wires":[[]]},{"id":"f9798b6a.92f718","type":"api-call-service","z":"415d010c.3c78","name":"turn off all fans","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.dining_room_switch_dining_room_fan, switch.livingroom1_living_room_fan","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":340,"y":151,"wires":[[]]},{"id":"9c6779fa.fea118","type":"server-state-changed","z":"415d010c.3c78","name":"dinner time","server":"ceea5ac5.1b1658","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.dinner_time","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":85,"y":275,"wires":[["f31fdf11.9dea5","90eab813.695798","79fb9ff7.4ea78"],[]]},{"id":"f31fdf11.9dea5","type":"api-call-service","z":"415d010c.3c78","name":"dinning light","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_on","entityId":"switch.dining_room_switch_dining_room_light","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":355,"y":335,"wires":[[]]},{"id":"6a2e24d5.a5e6fc","type":"comment","z":"415d010c.3c78","name":"tell alexa turn off living room lights","info":"","x":135,"y":235,"wires":[]},{"id":"90eab813.695798","type":"api-call-service","z":"415d010c.3c78","name":"turn off cooler","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"climate","service":"turn_off","entityId":"climate.cooler","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":345,"y":275,"wires":[["b1434a5e.c172d8"]]},{"id":"13c51fe2.4584d","type":"api-call-service","z":"415d010c.3c78","name":"turn off input","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.dinner_time","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":495,"y":375,"wires":[[]]},{"id":"79fb9ff7.4ea78","type":"delay","z":"415d010c.3c78","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":125,"y":355,"wires":[["13c51fe2.4584d","be657535.727708"]]},{"id":"50dc12e8.445a3c","type":"api-call-service","z":"415d010c.3c78","name":"turn off input","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"switch.cooler_relay","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":675,"y":315,"wires":[[]]},{"id":"b1434a5e.c172d8","type":"delay","z":"415d010c.3c78","name":"","pauseType":"delay","timeout":"1","timeoutUnits":"hours","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":525,"y":315,"wires":[["50dc12e8.445a3c"]]},{"id":"7334fd77.cd7ae4","type":"api-call-service","z":"415d010c.3c78","name":"alexa say ","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"notify","service":"alexa_media_kitchen","entityId":"","data":"{\"message\":\"Dinner is ready, come and get it, Dinner time\",\"data\":{\"type\":\"tts\"}}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":285,"y":395,"wires":[[]]},{"id":"be657535.727708","type":"api-call-service","z":"415d010c.3c78","name":"alexa say ","server":"ceea5ac5.1b1658","version":1,"debugenabled":true,"service_domain":"notify","service":"alexa_media_mom_s_room","entityId":"","data":"{\"message\":\"Dinner is ready, come and get it, Dinner time\",\"data\":{\"type\":\"tts\"}}","dataType":"json","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":125,"y":395,"wires":[["7334fd77.cd7ae4"]]},{"id":"94e160d6.01277","type":"server-state-changed","z":"415d010c.3c78","name":"roku playing ","server":"ceea5ac5.1b1658","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"media_player.roku_6325ad123378","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"playing ","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":75,"y":675,"wires":[["b49b7720.a25a78","a1de465a.75fcc8"],[]]},{"id":"fb803608.e2fc18","type":"api-call-service","z":"415d010c.3c78","name":"turn on tv time","server":"ceea5ac5.1b1658","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.tv_time","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":525,"y":675,"wires":[[]]},{"id":"a1de465a.75fcc8","type":"time-range-switch","z":"415d010c.3c78","name":"","lat":"","lon":"","startTime":"21:30","endTime":"00:00","startOffset":0,"endOffset":0,"x":275,"y":675,"wires":[["fb803608.e2fc18"],[]]},{"id":"ceea5ac5.1b1658","type":"server","z":"","name":"Home Assistant","addon":true}]