Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Meural Canvas flow
[{"id":"3d652577.d3551a","type":"bigtimer","z":"705d71ec.1ed62","outtopic":"","outpayload1":"","outpayload2":"","name":"Big Timer","comment":"","starttime":"480","endtime":"0","starttime2":0,"endtime2":0,"startoff":0,"endoff":0,"startoff2":0,"endoff2":0,"offs":0,"outtext1":"on","outtext2":"off","timeout":1440,"sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":"","month7":"","day8":"","month8":"","day9":"","month9":"","day10":"","month10":"","day11":"","month11":"","day12":"","month12":"","d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"repeat":true,"atstart":true,"odd":false,"even":false,"x":140,"y":280,"wires":[[],[],["1f13e5ed.0eb8fa"]]},{"id":"1f13e5ed.0eb8fa","type":"switch","z":"705d71ec.1ed62","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"on","vt":"str"},{"t":"eq","v":"off","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":270,"y":280,"wires":[["663e4a3e.243654"],["8d1e7911.aa2358"]]},{"id":"663e4a3e.243654","type":"api-current-state","z":"705d71ec.1ed62","name":"Is Guy home?","version":1,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"person.guy","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":480,"y":200,"wires":[["c7dc84bd.e670a8"],["179c8348.50a85d"]]},{"id":"179c8348.50a85d","type":"api-current-state","z":"705d71ec.1ed62","name":"Is Marrit home?","version":1,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"person.marrit","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":480,"y":260,"wires":[["c7dc84bd.e670a8"],["8d1e7911.aa2358"]]},{"id":"da48b098.1f904","type":"api-call-service","z":"705d71ec.1ed62","name":"Turn on Meural Canvas","version":1,"debugenabled":false,"service_domain":"media_player","service":"turn_on","entityId":"media_player.mirror","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1230,"y":220,"wires":[[]]},{"id":"27863543.c6435a","type":"api-call-service","z":"705d71ec.1ed62","name":"Turn off Meural Canvas","version":1,"debugenabled":false,"service_domain":"media_player","service":"turn_off","entityId":"media_player.mirror","data":"{}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1230,"y":320,"wires":[[]]},{"id":"f8836f1f.0018a","type":"server-state-changed","z":"705d71ec.1ed62","name":"If Guy leaves home","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.guy","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":170,"y":380,"wires":[["864c1479.e3bd28"],[]]},{"id":"864c1479.e3bd28","type":"api-current-state","z":"705d71ec.1ed62","name":"and Marrit is not home","version":1,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"person.marrit","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":460,"y":380,"wires":[["8d1e7911.aa2358"],[]]},{"id":"937d1310.f2c74","type":"server-state-changed","z":"705d71ec.1ed62","name":"If Marrit leaves home","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.marrit","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is_not","outputs":2,"output_only_on_state_change":true,"x":180,"y":440,"wires":[["354472f1.4f79ae"],[]]},{"id":"354472f1.4f79ae","type":"api-current-state","z":"705d71ec.1ed62","name":"and Guy is not home","version":1,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"person.guy","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":460,"y":440,"wires":[["8d1e7911.aa2358"],[]]},{"id":"c58e5e47.1db2c","type":"server-state-changed","z":"705d71ec.1ed62","name":"If Guy comes home","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.guy","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":170,"y":100,"wires":[["f756a0f.ffa1d6"],[]]},{"id":"3968b4c9.84d13c","type":"server-state-changed","z":"705d71ec.1ed62","name":"If Marrit comes home","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"person.marrit","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":180,"y":160,"wires":[["f756a0f.ffa1d6"],[]]},{"id":"f756a0f.ffa1d6","type":"time-range-switch","z":"705d71ec.1ed62","name":"Between 08:00 and 00:00","startTime":"08:00","endTime":"00:00","startOffset":0,"endOffset":0,"x":450,"y":100,"wires":[["c7dc84bd.e670a8"],[]]},{"id":"8d1e7911.aa2358","type":"api-current-state","z":"705d71ec.1ed62","name":"Is Meural Canvas on?","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is_not","override_topic":false,"entity_id":"media_player.mirror","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":740,"y":320,"wires":[["27863543.c6435a"],[]]},{"id":"c7dc84bd.e670a8","type":"api-current-state","z":"705d71ec.1ed62","name":"Is Meural Canvas off?","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"media_player.mirror","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":740,"y":220,"wires":[["b38a07c7.73db58"],[]]},{"id":"b38a07c7.73db58","type":"api-current-state","z":"705d71ec.1ed62","name":"Is Vacation mode on?","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.vacation_mode","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":980,"y":220,"wires":[[],["da48b098.1f904"]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment