Writing Location Attribute

Hey @Rich,

i have problems to publish to the Location Attribute via mqtt.

Got a hint?
Path, format etc.

How about this:

    "coordinates": [4.585222000000789, 51.91327390361854]
1 Like

Thanks @Don, it worked:

Just in case, someone is trying to publish the coordinates from an ESP:

>     char mqtt_payload[100] = "";
>     snprintf (mqtt_payload, 100, "{ \"type\":\"Point\", \"coordinates\":[ %lf, %lf\n]}", longitude, latitude);

This is how it should look.

1 Like