ebaauw / homebridge-ws

Homebridege plugin for virtual weather station
Apache License 2.0
107 stars 4 forks source link

Temperature always 0,0 #1

Closed Krocko closed 6 years ago

Krocko commented 6 years ago

Hello Erik. Thank you, for the great plugin. For me the temperature always shows 0,0*C, but the history is correct. Is this a bug, or I am doing something wrong? ae22a61d-0e41-4d0a-822a-e7f884477c11 33d49f3d-2273-492e-bc9a-4235ee0ed00d 022d676b-8402-4a6e-87c3-7ced8d8a8b62

ebaauw commented 6 years ago

Did you try and refresh the screen in Eve (drag down and release)? Did you try and restart Eve? Sometimes Eve just loses the connection to homebridge and no longer receives updates.

What temperature does Apple's Home app show?

Krocko commented 6 years ago

Yes of course. Apples Home App shows 0*C also.

ec659c84-7986-4c0e-a52d-03f45080705b

Krocko commented 6 years ago

I think it is my location. If i set the location to Netherlands/Amsterdam it is working.

Can you try an set your location to Germany/Erfurt?

ebaauw commented 6 years ago

Can you try an set your location to Germany/Erfurt?

I wasn't planning on moving house...

EDIT Sorry, I couldn't resist.

On topic: I think I forgot to change the minValue property of the Current Temperature characteristic for this plugin, so it doesn't display negative temperatures. See https://github.com/ebaauw/homebridge-hue/issues/30. Note that they changed HAP-NodeJS since, to force the value into the minValue .. maxValue range, so there's no more error.

Krocko commented 6 years ago

I wasn't planning on moving house...

😜👍🏻

Ok, have changed the values in lib/WSAccessory.js and it is working.

ebaauw commented 6 years ago

Solved in v0.0.4 (actually through homebridge-hue-utils@0.4.1).