Thank you for your help,
I tried, unfortunately without success.
I use my example code to ping a device, which works reliably and quickly.
Is there a way to create an entity that can be used as a tracking device?
Output:
Galaxy-XCover-4.fritz.box : msg : Object
object
payload: "home"
topic: "Galaxy-XCover-4.fritz.box"
_msgid: "f8dd5bd081e09929"
11.12.2022, 15:56:14tracker.seesent data : msg :
object
domain: "device_tracker"
service: "see"
data: object
mac: "DEVICE-MAC-ADDRESS"
Code:
[{"id":"ba5031d2daad6ad4","type":"tab","label":"Flow 1","disabled":false,"info":"","env":[]},{"id":"6e7286b25b1aa667","type":"ping","z":"ba5031d2daad6ad4","protocol":"Automatic","mode":"timed","name":"","host":"Galaxy-XCover-4.fritz.box","timer":"10","inputs":0,"x":130,"y":160,"wires":[["7e65e5c9b477b6d3"]]},{"id":"37e4d49039002c19","type":"debug","z":"ba5031d2daad6ad4","name":"debug","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":950,"y":160,"wires":[]},{"id":"26d507d6f669eb6f","type":"api-call-service","z":"ba5031d2daad6ad4","name":"tracker.see","server":"da8200ca.e9886","version":5,"debugenabled":true,"domain":"device_tracker","service":"see","areaId":[],"deviceId":[],"entityId":[],"data":"{\"mac\":\"DEVICE-MAC-ADDRESS\"}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":770,"y":160,"wires":[["37e4d49039002c19"]]},{"id":"ba4bec15c649372e","type":"change","z":"ba5031d2daad6ad4","name":"home","rules":[{"t":"set","p":"payload","pt":"msg","to":"home","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":530,"y":140,"wires":[["26d507d6f669eb6f"]]},{"id":"7e65e5c9b477b6d3","type":"switch","z":"ba5031d2daad6ad4","name":"","property":"payload","propertyType":"msg","rules":[{"t":"istype","v":"number","vt":"number"},{"t":"regex","v":"^false(.*)$","vt":"str","case":false}],"checkall":"true","repair":false,"outputs":2,"x":350,"y":160,"wires":[["ba4bec15c649372e"],["4740afea3128be18"]]},{"id":"4740afea3128be18","type":"change","z":"ba5031d2daad6ad4","name":"not_home","rules":[{"t":"set","p":"payload","pt":"msg","to":"not_home","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":540,"y":180,"wires":[["26d507d6f669eb6f"]]},{"id":"368eaf4c56d0d4fa","type":"comment","z":"ba5031d2daad6ad4","name":"change MAC Address!","info":"","x":760,"y":120,"wires":[]},{"id":"8f4fa535b5752a71","type":"comment","z":"ba5031d2daad6ad4","name":"change Target IP/Hostname","info":"","x":140,"y":120,"wires":[]},{"id":"da8200ca.e9886","type":"server","name":"http://192.168.100.32:8123","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30","areaSelector":"id","deviceSelector":"id","entitySelector":"id","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true}]