homebridge-http-webhooks icon indicating copy to clipboard operation
homebridge-http-webhooks copied to clipboard

Can not retrieve Thermostat values

Open TeslaOwnerTips opened this issue 2 years ago • 3 comments

In the example below I first retrieve the state of a switch (Garageleft).

However when doing the same for a thermostat (wake_heat) no state values are returned.

How do I get the targeted temperature from a thermostat using a url request?

$ id=Garageleft
$ curl "http://localhost:51828/?accessoryId=$id"
{"success":true,"state":false}

$ id=wake_heat
$ curl "http://localhost:51828/?accessoryId=$id"
{"success":true}

TeslaOwnerTips avatar Feb 21 '23 01:02 TeslaOwnerTips

This isnt supported for all accessories yet. Feel free to contribute.

benzman81 avatar Feb 21 '23 21:02 benzman81

Could you point me to an implementation as a starting point? An accessor's code where it is implemented.

TeslaOwnerTips avatar Feb 23 '23 02:02 TeslaOwnerTips

Should be here: https://github.com/benzman81/homebridge-http-webhooks/blob/9d90b25174e016111fa563abce3aa7263f6dee6a/src/homekit/accessories/HttpWebHookThermostatAccessory.js#L95

benzman81 avatar Feb 23 '23 06:02 benzman81