PJCzx / homebridge-thermostat

Supports thermostat devices on HomeBridge Platform
Apache License 2.0
34 stars 71 forks source link

homebridge doesnt get the data #28

Closed lettoka closed 6 years ago

lettoka commented 6 years ago

Hi, thank u for uploading. I have a nodejs server running on raspberry pi and i want the homekit to send targetTemperature request and get the data from it.I have added app.get route('/status'... ,but homebridge says it doesnt get any data. I have copied the JSON body what i should return on /status from your readme ,but it shows this error. Any idea what im doing wrong?

Thanks, Levi

PJCzx commented 6 years ago

Is the route fully explicit ? (Including http(s)://... ?)

Le 24 janv. 2018 à 23:43, lettoka notifications@github.com a écrit :

Hi, thank u for uploading. I have a nodejs server running on raspberry pi and i want the homekit to send targetTemperature request and get the data from it.I have added app.get route('/status'... ,but homebridge says it doesnt get any data. I have copied the JSON body what i should return on /status from your readme ,but it shows this error. Any idea what im doing wrong?

Thanks, Levi

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

lettoka commented 6 years ago

I found the problem. My API was sending 201 in response for getting status but I found an if condition in index.js that needs status code 200, so i changed it, and it works. Is there any chance to display Floats in IOS home app or it can only show ints? I changed MinStep to 0.1 in your index.js but nothing have changed in home app, it only shows integer.

PJCzx commented 6 years ago

Ok,

Maybe you should look at Characteristics (update) but maybe it’s overkill and not worth it.

If you find something, don’t hesitate to make a PullRequest.

In the meantime, can you please close the issue ?

Thx

Le 25 janv. 2018 à 11:57, lettoka notifications@github.com a écrit :

I found the problem. My API was sending 201 in response for getting status but I found an if condition in index.js that needs status code 200, so i changed it, and it works. Is there any chance to display Floats in IOS home app or it can only show ints? I changed MinStep to 0.1 in your index.js but nothing have changed in home app, it only shows integer.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.