benzman81 / homebridge-http-webhooks

A http plugin with support of webhooks for Homebridge: https://github.com/nfarina/homebridge
GNU General Public License v3.0
179 stars 56 forks source link

Can not retrieve Thermostat values #175

Open TeslaOwnerTips opened 1 year ago

TeslaOwnerTips commented 1 year ago

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}
benzman81 commented 1 year ago

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

TeslaOwnerTips commented 1 year ago

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

benzman81 commented 1 year ago

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