Dwie sprawy -Geolokalizacja

Najprościej jak się da

image

[{"id":"e35876ade10639e1","type":"api-call-service","z":"c576bc81.0ba12","name":"Telefon Andrzeja","server":"e623594f.2c1a08","version":5,"debugenabled":false,"domain":"notify","service":"mobile_app_gm1913","areaId":[],"deviceId":[],"entityId":[],"data":"","dataType":"json","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":780,"y":4060,"wires":[[]]},{"id":"6c3d01d6eaa3b218","type":"function","z":"c576bc81.0ba12","name":"Witaj w domu","func":"var czas = new Date();\nvar czas_formatowany = czas.getHours() + \":\" + czas.getMinutes() + \":\" + czas.getSeconds() +\" - \"\nmsg.payload =\n{\n    \"data\":\n    {\n        \"title\": \"Lokalizacja\",\n        \"message\": czas_formatowany+\"Witaj w domu.\",\n        \"data\": \n        {\n        \"ttl\": 0,\n        \"priority\": \"high\",\n        \"icon_url\": \"/local/icon/witajwdomu.png\",\n        \"color\": \"green\",\n        }\n    }\n}\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":580,"y":4060,"wires":[["e35876ade10639e1"]]},{"id":"c7486081ad2fea8c","type":"ha-zone","z":"c576bc81.0ba12","name":"Strefa dom","server":"e623594f.2c1a08","version":0,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entities":["person.andrzej"],"event":"enter","zones":["zone.home"],"x":400,"y":4060,"wires":[["6c3d01d6eaa3b218"]]},{"id":"e623594f.2c1a08","type":"server","name":"HA","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false,"heartbeat":false,"heartbeatInterval":"30"}]

Lub poprawione z tematu