DeviceType using HTTP GET

Can anyone recommend some existing code to peek at that fetches (say) JSON from a web endpoint on the LAN and uses it to post temperature or power data to ST?

Try this:

1 Like

Also the Honeywell total comfort driver.

Absolutely perfect :smiley: thanks! Exactly what I was looking for.

1 Like

Followup question:

having finally twigged the DNI magic to get parse() to actually be called :smiley: is there a way I can set up multiple devices to read from different paths on the same host/port using HubAction + parse() without them getting each other’s data/falling over each other?

No, not at the device level. To accomplish this, you need a “service manager” smart app that communicates with your web service and routs responses to appropriate child devices.

1 Like