I am having a question about rest/restcommand.
I do have an iPhone which sends lat/lon information.
That lat/lon information I want to use for getting the address where the iPhone is, using https://nominatim.openstreetmap.org/reverse?lat=XX&lon=YY&format=json&zoom=18&addressdetails=1"
(I know the string what comes is > 255, but with value_template that is to handle)
Therefor I see two option:
- make a rest-sensor, but that needs the resource to accept templates to get the correct XX and YY
- make a rest command, but then I need to catch the outcome of the command in one or else way.
As far as I can find none seems to work: no template in the resource info for the sensor nor catching the answer from the command.
Did I search not good enough, or am I really kind of stuck?