Created
July 20, 2020 21:30
-
-
Save Snipercaine/e8d20feced1841b6f5fa7e42eab1f64b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"id":"64e44a9e.afc6a4","type":"subflow","name":"TTS Button","info":"","category":"","in":[{"x":120,"y":120,"wires":[{"id":"6039cb4c.6a1364"},{"id":"a138c58a.af06c8"}]}],"out":[{"x":460,"y":160,"wires":[{"id":"a138c58a.af06c8","port":0}]}],"env":[{"name":"message","type":"str","value":"example message"}],"color":"#DDAA99"},{"id":"a138c58a.af06c8","type":"change","z":"64e44a9e.afc6a4","name":"Sign Off Message","rules":[{"t":"set","p":"payload","pt":"msg","to":"message","tot":"env"}],"action":"","property":"","from":"","to":"","reg":false,"x":290,"y":160,"wires":[[]]},{"id":"6039cb4c.6a1364","type":"delay","z":"64e44a9e.afc6a4","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":260,"y":100,"wires":[["14d77c71.3dae44"]]},{"id":"14d77c71.3dae44","type":"api-call-service","z":"64e44a9e.afc6a4","name":"input off","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"{{data.entity_id}}","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":440,"y":80,"wires":[[]]},{"id":"44f670f7.b6c","type":"tab","label":"Office","disabled":false,"info":""},{"id":"cf6e9615.bbde78","type":"server-state-changed","z":"44f670f7.b6c","name":"Sign Off","server":"93e2a4eb.23bc48","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.sign_off","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":90,"y":60,"wires":[["78b553fd.65284c"],[]]},{"id":"99a407ed.409178","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_echo_show","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":40,"wires":[[]]},{"id":"777e642e.0eadfc","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_jackson_s_echo_dot","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":100,"wires":[[]]},{"id":"6a04c40e.21a39c","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_mom_and_dads_room","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":160,"wires":[[]]},{"id":"ca0b61ae.7f636","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_zoe_s_echo_dot","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":220,"wires":[[]]},{"id":"b2ac85aa.06e948","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_justin_s_echo_plus","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":280,"wires":[[]]},{"id":"9cd5956e.f1dc18","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_theater","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":340,"wires":[[]]},{"id":"de438c8d.851d2","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_toy_room","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":400,"wires":[[]]},{"id":"f196700b.e74b2","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_zen_room","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":460,"wires":[[]]},{"id":"39394733.fc9b88","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_garage","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":520,"wires":[[]]},{"id":"ca2c6641.36da78","type":"api-call-service","z":"44f670f7.b6c","name":"Alexa Announce","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"notify","service":"alexa_media_justin_s_echo_flex","entityId":"","data":"{\"message\":\"{{payload}}\",\"data\":{\"type\":\"announce\"}}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1060,"y":580,"wires":[[]]},{"id":"f24a5964.da5068","type":"link in","z":"44f670f7.b6c","name":"Whole House Announce","links":["4a88a005.64f22","8e743e2c.13933","ed185dc2.5bd0a","ee62e92e.6dd9b8"],"x":555,"y":280,"wires":[["c1defe6.50c1a"]]},{"id":"8e743e2c.13933","type":"link out","z":"44f670f7.b6c","name":"","links":["f24a5964.da5068"],"x":455,"y":100,"wires":[]},{"id":"699b20c1.d7c52","type":"delay","z":"44f670f7.b6c","name":"","pauseType":"delay","timeout":"10","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":240,"y":420,"wires":[["c1e12236.a5e72"]]},{"id":"c1e12236.a5e72","type":"api-call-service","z":"44f670f7.b6c","name":"input off","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.bedtime","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":400,"y":460,"wires":[[]]},{"id":"b8a15821.fd7c58","type":"server-state-changed","z":"44f670f7.b6c","name":"Bedtime","server":"93e2a4eb.23bc48","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.bedtime","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":70,"y":460,"wires":[["f07e6112.8bd0b","699b20c1.d7c52"],[]]},{"id":"f07e6112.8bd0b","type":"change","z":"44f670f7.b6c","name":"Bedtime Message","rules":[{"t":"set","p":"payload","pt":"msg","to":"Scriptures and Prayer, Pajamas, and Teeth. Scriptures and Prayer, Pajamas, and Teeth. Scriptures and Prayer, Pajamas, and Teeth. ","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":250,"y":520,"wires":[["4a88a005.64f22"]]},{"id":"4a88a005.64f22","type":"link out","z":"44f670f7.b6c","name":"","links":["f24a5964.da5068"],"x":455,"y":540,"wires":[]},{"id":"65f82d59.c5d944","type":"server-events","z":"44f670f7.b6c","name":"Deconz","server":"93e2a4eb.23bc48","event_type":"deconz_event","exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"x":70,"y":700,"wires":[["b2e43c49.13332"]]},{"id":"8245ba1a.e86c68","type":"debug","z":"44f670f7.b6c","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":310,"y":720,"wires":[]},{"id":"b2e43c49.13332","type":"switch","z":"44f670f7.b6c","name":"Magic Cube","property":"payload.event.id","propertyType":"msg","rules":[{"t":"eq","v":"switch_14","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":170,"y":780,"wires":[["e3c64ddd.2f885"]]},{"id":"e3c64ddd.2f885","type":"switch","z":"44f670f7.b6c","name":"Cube Toss","property":"payload.event.event","propertyType":"msg","rules":[{"t":"eq","v":"7008","vt":"num"}],"checkall":"true","repair":false,"outputs":1,"x":330,"y":840,"wires":[["d52d8587.f10798"]]},{"id":"d52d8587.f10798","type":"link out","z":"44f670f7.b6c","name":"Cube toss","links":["9120532c.b9f1c","ad0122a2.f63a6"],"x":460,"y":820,"wires":[]},{"id":"9120532c.b9f1c","type":"link in","z":"44f670f7.b6c","name":"","links":["d52d8587.f10798"],"x":95,"y":180,"wires":[["78b553fd.65284c"]]},{"id":"544e3715.f9a798","type":"server-state-changed","z":"44f670f7.b6c","name":"Closet Door","server":"93e2a4eb.23bc48","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"binary_sensor.office_closet","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":110,"y":960,"wires":[["ab4d91c1.62341"],["a0c09106.35b2a"]]},{"id":"ab4d91c1.62341","type":"api-call-service","z":"44f670f7.b6c","name":"Turn on Bulb","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"light","service":"turn_on","entityId":"light.office_west","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":310,"y":940,"wires":[[]]},{"id":"a0c09106.35b2a","type":"api-call-service","z":"44f670f7.b6c","name":"Turn off Bulb","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"light.office_west","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":310,"y":1020,"wires":[[]]},{"id":"78b553fd.65284c","type":"subflow:64e44a9e.afc6a4","z":"44f670f7.b6c","name":"Sign off","env":[{"name":"message","value":" It's time for sign off. It's time for sign off. It's time for sign off. ","type":"str"}],"x":300,"y":120,"wires":[["8e743e2c.13933"]]},{"id":"11489cb6.51af43","type":"server-state-changed","z":"44f670f7.b6c","name":"Dinner Time","server":"93e2a4eb.23bc48","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":90,"y":240,"wires":[["88144390.92256"],[]]},{"id":"ed185dc2.5bd0a","type":"link out","z":"44f670f7.b6c","name":"","links":["f24a5964.da5068"],"x":455,"y":260,"wires":[]},{"id":"88144390.92256","type":"subflow:64e44a9e.afc6a4","z":"44f670f7.b6c","name":"Dinner time","env":[{"name":"message","value":"Its time for dinner. Its time for dinner. Its time for dinner.","type":"str"}],"x":290,"y":280,"wires":[["ed185dc2.5bd0a"]]},{"id":"cdc18ccb.d1796","type":"api-call-service","z":"44f670f7.b6c","name":"Google TTS","server":"93e2a4eb.23bc48","version":1,"debugenabled":false,"service_domain":"tts","service":"google_translate_say","entityId":"media_player.googlehome9873","data":"{\"message\":\"{{payload}}\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1050,"y":640,"wires":[[]]},{"id":"c1defe6.50c1a","type":"time-range-switch","z":"44f670f7.b6c","name":"too late for announcements","lat":"","lon":"","startTime":"07:00","endTime":"22:30","startOffset":0,"endOffset":0,"x":740,"y":280,"wires":[["de438c8d.851d2","99a407ed.409178","777e642e.0eadfc","6a04c40e.21a39c","ca0b61ae.7f636","b2ac85aa.06e948","9cd5956e.f1dc18","f196700b.e74b2","39394733.fc9b88","ca2c6641.36da78","cdc18ccb.d1796"],[]]},{"id":"93e2a4eb.23bc48","type":"server","z":"","name":"Home Assistant Zzs","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment