Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save derekakessler/0610e65a2576dc8767c31431e7b699d9 to your computer and use it in GitHub Desktop.
Save derekakessler/0610e65a2576dc8767c31431e7b699d9 to your computer and use it in GitHub Desktop.
Calendar locations > car charge state
[{"id":"81f17c4fbac60c02","type":"group","z":"ebf09e0b63c47a99","name":"Check calendars for events with locations, find distance, compare to car charge","style":{"label":true},"nodes":["cad50f09c1aca87e","dfd20678d7343e3a","78ad5f7e5488cd2d","c869272cd7a2c5a8","508bbe70126f5b6d","50fb8b3feab06a81","472e0e3ae10f5171","34b166c26e8e03eb","0edeaa291eda4f2d","cad02ec262322161","11c60e0c66c1095f","7b385d37ca86aa67","6b42b3a547cafbb9","4906722330103623","17f577c56dc7750a","dc7916e7c142886e","3b7367f447d11f1e","f5c787e570a575be","ffdb66625df06b63","773dd4eca3fd9814","01d743a59e2972d2","fcbb8e35bf35e0a3","7258391a341b1ca7","fd5b99a2bdde4c16","80d7cdc8a45fbe2a","7a3a745961810c68","a7fffd488394bde7","8a79c3a82360a166","3cc1629da0a064b7","b2b0f0b6150cfc09","d76aa65e8b45dbfd","18286888d3a3b80b","4ff23f712764aee7","de5a7221a6a0a9be","422380cb73933f8e","7292b74c0a1ef4d7","6faa041cc505810b","733cffb0076d031c","baa7f427f6cb745c","67cc9a16319e592f","f146136e52ea58ac","9578564f0ffa0108","f164969464ba920e"],"x":14,"y":499,"w":1492,"h":762},{"id":"cad50f09c1aca87e","type":"ha-api","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Get Events","server":"4f6bb28d.5ec92c","version":1,"debugenabled":false,"protocol":"websocket","method":"get","path":"","data":"{\t \"type\": \"execute_script\",\t \"sequence\": [\t {\t \"service\": \"calendar.list_events\",\t \"data\": {\t \"start_date_time\": msg.date & \" \" & msg.start_time,\t \"end_date_time\": msg.date & \" \" & msg.end_time\t },\t \"target\": {\t \"entity_id\": [\t msg.payload.entity_id\t ] \t },\t \"response_variable\": \"service_result\"\t },\t {\t \"stop\": \"done\",\t \"response_variable\": \"service_result\"\t } \t ] \t}","dataType":"jsonata","responseType":"json","outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"results"}],"x":1110,"y":580,"wires":[["78ad5f7e5488cd2d"]]},{"id":"dfd20678d7343e3a","type":"ha-get-entities","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Calendars","server":"4f6bb28d.5ec92c","version":0,"rules":[{"property":"entity_id","logic":"starts_with","value":"calendar","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":950,"y":580,"wires":[["cad50f09c1aca87e"]]},{"id":"78ad5f7e5488cd2d","type":"change","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Format Events","rules":[{"t":"set","p":"payload","pt":"msg","to":"payload.response.events","tot":"msg"},{"t":"delete","p":"timestamp","pt":"msg"},{"t":"delete","p":"date","pt":"msg"},{"t":"delete","p":"settings","pt":"msg"},{"t":"delete","p":"parts","pt":"msg"},{"t":"set","p":"tag","pt":"msg","to":"car-needs-charged","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":1280,"y":580,"wires":[["472e0e3ae10f5171"]]},{"id":"c869272cd7a2c5a8","type":"inject","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"2000","props":[{"p":"timestamp","v":"","vt":"date"}],"repeat":"","crontab":"00 20 * * *","once":false,"onceDelay":0.1,"topic":"","x":110,"y":660,"wires":[["18286888d3a3b80b"]]},{"id":"508bbe70126f5b6d","type":"server-state-changed","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Home","server":"4f6bb28d.5ec92c","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.ella_location_tracker","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,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"timestamp","propertyType":"msg","value":"","valueType":"date"}],"x":90,"y":700,"wires":[["50fb8b3feab06a81"],[]],"icon":"font-awesome/fa-sign-out"},{"id":"50fb8b3feab06a81","type":"time-range-switch","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"20-05","lat":"","lon":"","startTime":"20:00","endTime":"05:00","startOffset":0,"endOffset":0,"x":210,"y":700,"wires":[["18286888d3a3b80b"],[]]},{"id":"472e0e3ae10f5171","type":"split","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"","splt":"\\n","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":1430,"y":580,"wires":[["34b166c26e8e03eb"]]},{"id":"34b166c26e8e03eb","type":"switch","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Has Locations","property":"payload.location","propertyType":"msg","rules":[{"t":"nnull"}],"checkall":"true","repair":false,"outputs":1,"x":120,"y":840,"wires":[["0edeaa291eda4f2d"]]},{"id":"0edeaa291eda4f2d","type":"change","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Set Destination","rules":[{"t":"set","p":"destination","pt":"msg","to":"payload.location","tot":"msg"},{"t":"set","p":"event","pt":"msg","to":"payload","tot":"msg"},{"t":"set","p":"topic","pt":"msg","to":"events","tot":"str"},{"t":"delete","p":"payload","pt":"msg"},{"t":"delete","p":"parts","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":840,"wires":[["cad02ec262322161"]]},{"id":"cad02ec262322161","type":"google directions","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"","googleAPI":"","origin":"3980 Ledgwood Dr, 45229","destination":"","mode":"driving","waypoints":"","alternatives":"","avoid":"","language":"","units":"metric","region":"","departure_time":"","arrival_time":"","transit_mode":"","transit_routing_preferences":"","x":490,"y":840,"wires":[["11c60e0c66c1095f","dc7916e7c142886e","3b7367f447d11f1e"]]},{"id":"11c60e0c66c1095f","type":"smooth","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Max","property":"distance","action":"max","count":"20","round":"","mult":"single","reduce":false,"x":670,"y":780,"wires":[["7b385d37ca86aa67"]]},{"id":"7b385d37ca86aa67","type":"change","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Set Global Max Distance","rules":[{"t":"set","p":"tomorrow_max_distance","pt":"global","to":"distance","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":850,"y":780,"wires":[[]]},{"id":"6b42b3a547cafbb9","type":"switch","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Matches Max Distance","property":"distance","propertyType":"msg","rules":[{"t":"eq","v":"tomorrow_max_distance","vt":"global"}],"checkall":"true","repair":false,"outputs":1,"x":860,"y":840,"wires":[["f164969464ba920e"]]},{"id":"4906722330103623","type":"change","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Reset","rules":[{"t":"set","p":"reset","pt":"msg","to":"true","tot":"bool"},{"t":"delete","p":"distance","pt":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":780,"wires":[["11c60e0c66c1095f"]]},{"id":"17f577c56dc7750a","type":"trigger","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"5s","op1":"","op2":"","op1type":"nul","op2type":"payl","duration":"5","extend":true,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":410,"y":780,"wires":[["4906722330103623"]]},{"id":"dc7916e7c142886e","type":"delay","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"5s","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":670,"y":840,"wires":[["6b42b3a547cafbb9","17f577c56dc7750a"]]},{"id":"3b7367f447d11f1e","type":"debug","z":"ebf09e0b63c47a99","d":true,"g":"81f17c4fbac60c02","name":"Raw Directions","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":480,"y":880,"wires":[]},{"id":"f5c787e570a575be","type":"api-current-state","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Car Range","server":"4f6bb28d.5ec92c","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.ella_range","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"range","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":110,"y":980,"wires":[["fcbb8e35bf35e0a3"]]},{"id":"ffdb66625df06b63","type":"api-current-state","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Charger","server":"4f6bb28d.5ec92c","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"binary_sensor.ella_charger","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"plugged","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":340,"y":1080,"wires":[["fd5b99a2bdde4c16"],["7a3a745961810c68"]]},{"id":"773dd4eca3fd9814","type":"api-call-service","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Notify","server":"4f6bb28d.5ec92c","version":5,"debugenabled":false,"domain":"notify","service":"derek","areaId":[],"deviceId":[],"entityId":[],"data":"{\t \"title\": \"Calendar Range Check\",\t \"message\": msg.event.summary & \" at \" & msg.event.start & \" is \" & msg.distance & \" miles away. Car range is \" & $round(msg.range) & \" miles (\" & msg.limit/msg.charge*100 & \"% of \" & msg.max_range_current & \"-mile charge limit). Increase charge limit to 100% (\" & msg.max_range_100 & \" miles)?\",\t \"data\": {\t \"url\": \"/lovelace/model-s\",\t \"actions\": [\t {\t \"action\": \"TESLA1000\",\t \"title\": \"Charge to 100%\",\t \"icon\": \"sfsymbols:bolt.car.fill\"\t }\t ],\t \"tag\": msg.tag\t }\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1030,"y":1060,"wires":[[]],"icon":"font-awesome/fa-comment"},{"id":"01d743a59e2972d2","type":"switch","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Range < Round Trip","property":"range","propertyType":"msg","rules":[{"t":"lt","v":"round_trip_distance","vt":"jsonata"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":160,"y":1080,"wires":[["ffdb66625df06b63"],[]]},{"id":"fcbb8e35bf35e0a3","type":"api-current-state","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Charge Limit","server":"4f6bb28d.5ec92c","version":3,"outputs":2,"halt_if":"100","halt_if_type":"num","halt_if_compare":"lt","entity_id":"number.ella_charge_limit","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"limit","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":270,"y":980,"wires":[["7258391a341b1ca7"],[]]},{"id":"7258391a341b1ca7","type":"api-current-state","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Battery %","server":"4f6bb28d.5ec92c","version":3,"outputs":2,"halt_if":"100","halt_if_type":"num","halt_if_compare":"lt","entity_id":"sensor.ella_battery","state_type":"num","blockInputOverrides":false,"outputProperties":[{"property":"charge","propertyType":"msg","value":"","valueType":"entityState"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":420,"y":980,"wires":[["f146136e52ea58ac"],[]]},{"id":"fd5b99a2bdde4c16","type":"switch","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Max Range < Round Trip","property":"max_range_current","propertyType":"msg","rules":[{"t":"lt","v":"round_trip_distance","vt":"msg"}],"checkall":"true","repair":false,"outputs":1,"x":850,"y":1060,"wires":[["773dd4eca3fd9814"]]},{"id":"80d7cdc8a45fbe2a","type":"ha-wait-until","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Wait Until Charging","server":"4f6bb28d.5ec92c","version":2,"outputs":1,"entityId":"binary_sensor.ella_charging","entityIdFilterType":"exact","property":"state","comparator":"is","value":"on","valueType":"str","timeout":"0","timeoutType":"num","timeoutUnits":"seconds","checkCurrentState":true,"blockInputOverrides":true,"outputProperties":[],"entityLocation":"data","entityLocationType":"none","x":630,"y":1100,"wires":[["fd5b99a2bdde4c16"]]},{"id":"7a3a745961810c68","type":"api-call-service","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Notify","server":"4f6bb28d.5ec92c","version":5,"debugenabled":false,"domain":"notify","service":"derek","areaId":[],"deviceId":[],"entityId":[],"data":"{\t \"title\": \"Calendar Range Check\",\t \"message\": msg.event.summary & \" at \" & msg.event.start & \" is \" & msg.distance & \" miles away. Car range is \" & $round(msg.range) & \" miles (\" & msg.limit/msg.charge*100 & \"% of \" & msg.max_range_current & \"-mile charge limit). Do not forget to plug in.\",\t \"data\": {\t \"url\": \"/lovelace/model-s\",\t \"tag\": msg.tag\t }\t}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":470,"y":1100,"wires":[["80d7cdc8a45fbe2a"]],"icon":"font-awesome/fa-comment"},{"id":"a7fffd488394bde7","type":"server-state-changed","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Charge Limit = 100%","server":"4f6bb28d.5ec92c","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"number.ella_charge_limit","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"100","halt_if_type":"num","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"tag","propertyType":"msg","value":"car-needs-charged","valueType":"str"}],"x":160,"y":1220,"wires":[["8a79c3a82360a166"],[]]},{"id":"8a79c3a82360a166","type":"link out","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Clear Notification","mode":"link","links":["622edf62d0502f46"],"x":295,"y":1220,"wires":[]},{"id":"3cc1629da0a064b7","type":"api-call-service","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Set Charge Limit = 100%","server":"4f6bb28d.5ec92c","version":5,"debugenabled":false,"domain":"number","service":"set_value","areaId":[],"deviceId":[],"entityId":["number.ella_charge_limit"],"data":"{\"value\": 100}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":610,"y":1160,"wires":[[]]},{"id":"b2b0f0b6150cfc09","type":"switch","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"100% charge limit received","property":"payload.event.action","propertyType":"msg","rules":[{"t":"eq","v":"TESLA100","vt":"str"}],"checkall":"true","repair":false,"outputs":1,"x":360,"y":1160,"wires":[["3cc1629da0a064b7"]]},{"id":"d76aa65e8b45dbfd","type":"link in","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Notication Action","links":["26529f6081d584d7"],"x":140,"y":1160,"wires":[["b2b0f0b6150cfc09"]],"l":true},{"id":"18286888d3a3b80b","type":"change","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"00-15","rules":[{"t":"set","p":"start_time","pt":"msg","to":"00:00:00","tot":"str"},{"t":"set","p":"end_time","pt":"msg","to":"15:00:00","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":620,"wires":[["67cc9a16319e592f"]]},{"id":"4ff23f712764aee7","type":"change","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"13-00","rules":[{"t":"set","p":"start_time","pt":"msg","to":"13:00:00","tot":"str"},{"t":"set","p":"end_time","pt":"msg","to":"23:59:59","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":580,"wires":[["733cffb0076d031c"]]},{"id":"de5a7221a6a0a9be","type":"link in","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Night","links":["535a66417ea1e204"],"x":90,"y":620,"wires":[["18286888d3a3b80b"]],"l":true},{"id":"422380cb73933f8e","type":"api-current-state","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Car Home","server":"4f6bb28d.5ec92c","version":3,"outputs":2,"halt_if":"home","halt_if_type":"str","halt_if_compare":"is","entity_id":"device_tracker.ella_location_tracker","state_type":"str","blockInputOverrides":false,"outputProperties":[],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":650,"y":580,"wires":[["9578564f0ffa0108"],[]]},{"id":"7292b74c0a1ef4d7","type":"link in","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Day","links":["318017b4b91b8602"],"x":90,"y":540,"wires":[["baa7f427f6cb745c"]],"l":true},{"id":"6faa041cc505810b","type":"inject","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"1300","props":[{"p":"timestamp","v":"","vt":"date"}],"repeat":"","crontab":"00 13 * * *","once":false,"onceDelay":0.1,"topic":"","x":110,"y":580,"wires":[["4ff23f712764aee7"]]},{"id":"733cffb0076d031c","type":"moment","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Today","topic":"","input":"date","inputType":"msg","inTz":"America/New_York","adjAmount":"0","adjType":"days","adjDir":"add","format":"YYYY-MM-DD","locale":"C","output":"date","outputType":"msg","outTz":"America/New_York","x":490,"y":540,"wires":[["422380cb73933f8e"]]},{"id":"baa7f427f6cb745c","type":"change","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"03-18","rules":[{"t":"set","p":"start_time","pt":"msg","to":"03:00:00","tot":"str"},{"t":"set","p":"end_time","pt":"msg","to":"18:00:00","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":330,"y":540,"wires":[["733cffb0076d031c"]]},{"id":"67cc9a16319e592f","type":"moment","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Tomorrow","topic":"","input":"date","inputType":"msg","inTz":"America/New_York","adjAmount":"1","adjType":"days","adjDir":"add","format":"YYYY-MM-DD","locale":"C","output":"date","outputType":"msg","outTz":"America/New_York","x":480,"y":620,"wires":[["422380cb73933f8e"]]},{"id":"f146136e52ea58ac","type":"change","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Format Distance","rules":[{"t":"set","p":"distance","pt":"msg","to":"msg.distance * 0.000621371","tot":"jsonata"},{"t":"delete","p":"payload","pt":"msg"},{"t":"delete","p":"topic","pt":"msg"},{"t":"delete","p":"status","pt":"msg"},{"t":"delete","p":"title","pt":"msg"},{"t":"delete","p":"description","pt":"msg"},{"t":"delete","p":"duration","pt":"msg"},{"t":"delete","p":"location","pt":"msg"},{"t":"set","p":"event.start","pt":"msg","to":"$substring(event.start, 11, 5)","tot":"jsonata"},{"t":"set","p":"max_range_current","pt":"msg","to":"$round(msg.limit/msg.charge*msg.range)","tot":"jsonata"},{"t":"set","p":"max_range_100","pt":"msg","to":"$round(msg.max_range_current/msg.limit*100)","tot":"jsonata"},{"t":"set","p":"round_trip_distance","pt":"msg","to":"$round(msg.distance * 2.2)","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":580,"y":980,"wires":[["01d743a59e2972d2"]]},{"id":"9578564f0ffa0108","type":"api-current-state","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Presence","server":"4f6bb28d.5ec92c","version":3,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.presence","state_type":"str","blockInputOverrides":false,"outputProperties":[],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":800,"y":580,"wires":[["dfd20678d7343e3a"],[]]},{"id":"f164969464ba920e","type":"trigger","z":"ebf09e0b63c47a99","g":"81f17c4fbac60c02","name":"Only 1st","op1":"","op2":"","op1type":"pay","op2type":"nul","duration":"5","extend":false,"overrideDelay":false,"units":"s","reset":"","bytopic":"all","topic":"topic","outputs":1,"x":1040,"y":840,"wires":[["f5c787e570a575be"]]},{"id":"4f6bb28d.5ec92c","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment