Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save basroovers/edf069d2dd449670942bd1c83dc7867f to your computer and use it in GitHub Desktop.
Save basroovers/edf069d2dd449670942bd1c83dc7867f to your computer and use it in GitHub Desktop.
[
{
"id": "3195e36b.99fe1c",
"type": "tab",
"label": "Example",
"disabled": false,
"info": ""
},
{
"id": "e898cdb8.33c14",
"type": "function",
"z": "3195e36b.99fe1c",
"name": "pass location to mobile_device_presence",
"func": "msg.payload = \n{\n \"data\": {\n \"dev_id\": \"mobile_device_presence\",\n \"location_name\": msg.payload\n }\n}\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 640,
"y": 320,
"wires": [
[
"1ad64d10.ef06e3"
]
]
},
{
"id": "7a4a2747.148028",
"type": "trigger-state",
"z": "3195e36b.99fe1c",
"name": "",
"server": "3c638a35.32d696",
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityid": "sensor.mobile_device_room_presence",
"entityidfiltertype": "exact",
"debugenabled": false,
"constraints": [],
"constraintsmustmatch": "all",
"outputs": 2,
"customoutputs": [],
"outputinitially": false,
"state_type": "str",
"x": 210,
"y": 360,
"wires": [
[
"e898cdb8.33c14"
],
[]
]
},
{
"id": "1ad64d10.ef06e3",
"type": "api-call-service",
"z": "3195e36b.99fe1c",
"name": "",
"server": "3c638a35.32d696",
"version": 1,
"debugenabled": false,
"service_domain": "device_tracker",
"service": "see",
"entityId": "",
"data": "{}",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 990,
"y": 280,
"wires": [
[]
]
},
{
"id": "3c638a35.32d696",
"type": "server",
"z": "",
"name": "Home Assistant",
"addon": true
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment