Convert Coordinates from Datacake to Device Tracker in Home Assistant (NodeRed)

I get the data via Datacake over MQTT in NodeRed in the following format {"type":"nodered/entity","server_id":"f6acf75c.eea248","node_id":"1ad16d8717f20d77","state":"(48.102704,11.412253)","attributes":{},"id":25}

Via the NodeRed component I want to include this in HomeAssitant. However, I only get the longitude and latitude as a string (48.102704,11.412253) and don’t know how to convert that to device tracker.

Here is Topic from the NodeRed forum where we discussed this. Maybe it can help: Split a string of a Location Payload from Datacake and pass it to Home Assistant as coordinates - #2 by Steve-Mcl - General - Node-RED Forum

1 Like