oh ok I will try that!
Now give 27.1°C, should be converted to C, so I changed it to:
temp = tostring(FtoC(data.lastData.temp1f) or FtoC(data.lastData.tempf) or 0) ā May include sensor number it seems.
but give me that now: -2.6111111111111°C
So i change it to:
temp = tostring(math.round(FtoC(data.lastData.temp1f), 0.1) or math.round(FtoC(data.lastData.tempf), 0.1) or 0) ā May include sensor number it seems.
Now it show -2.4 in the VOTS, but display -2.5 on my thermostats (And 27.6F give -2.44444C)
It should display -2.4 on the thermostats as well?
Ok, I reload the LUAP engine, now VOTS is -2.2, the conversion is good. But my thermostat still show -2.5!!!
This is what it send to it:
luup_log:0: VOTS::SetZWaveThermostatOutdoorTemperature> Sending data 0x31 0x05 0x01 0x22 0xFF 0xE9 to device 9, node 4 <0x76d4a520>
Is that good?
Hi Joel,
Yes it is sending -2.2 but it seems the thermostat displays with 0.5 degrees resolution only. The documentation does say that for the room temp, so seems to apply to the outdoor temp as well.
Cheers Rene
That will make senses! So Iāll monitor it when the temp will go -2.0 or a bit lower, I should then see -2.0 on the thermostat! ![]()
ok it went to -1.7 (switching it to TempSource 2 to test), and it display on thermostat -2.0.
Switch back to TempSource 3, it show VOTS -1.9 and it still display on thermostat has -2.0.
Anyhow, I think we cannot change that, itās hardware related I guess but I consider -1.6 and -1.7 closer to -1.5 then -2.0, so to me anything from -1.3 to -1.7 should display -1.5, and from -1.8 to -2.2 should display -2.0.
Iāll test something, I should round to 0.5 instead of 0.1!
Finally this is it, I round to 0.5 and -1.6 or -1.4 is showing has -1.5 on the thermostat! That is perfect!
Here is the final piece of code! revision 19
Should you review it for final approval ![]()
L_VirtualOutdoorTemperature.zip (4.1 KB)
Questions, this work ok for me with Zwave thermostats setup in Celsius, but with all the changes will it still work flawlessly if setup in Farhenheit?
Also will still work with Zigbee thermostats?
Just double checking ![]()
That was a fun challenge, and without you it wonāt be the success it is now! So I thanks you very much for all your help! Happy new years!
Joel
Yes it should work even a bit better with all the fixes for zwave. I did not change anything for the Zigbee ones so that should work as well as it did.
Indeed a fun one to try. Thanks for all your testing. Happy 2020.
Cheers Rene
Hi @reneboer any chance you could add more options for the āDisplay Lineā selections? personally Iād really like to show Min & Max forecasted temps for the day.
In my use case I dont need the current conditions (eg Temp or Humidity) as I have my own weather station for live data (I live in bit of a micro-climate so live data from DS etc is usually incorrect, but overall forecast is fairly accurate).
Thank you, much appreciated.
Hi @reneboer Iāve been looking through the provided weather data and it isnāt clear to me which fields are which - DarkSkyās API doco doesnāt seem to make this clear either (maybe Iām just dense?).
I was wanting to use the Forecasted Max and Min Temps in some of my logic but found the following fields:
TodayHighTemp
TodayMaxTemp
which one of these is the forecast and which one is the actual recorded high temp?
If you can please point me to some doco describing all the fields and what data they hold it would be appreciated.
Cheers Derek
^^^
I donāt know if Iād relay on DS for this, the Indicated Temps have been around 10C lower recently than those experienced.
It makes me wonder where they are getting there data from?
Im only after the forecasted Min/max temps - I have a Netatmo for live data but the API doesnt provide access to the Netatmo forecasts.
Hi @dJOS,
All variables are listed in the wiki on github Home Ā· reneboer/DarkSkyWeather Wiki Ā· GitHub. That also gives a link to the DarkSky documentation. Where they get their values for you location might be on their site. This plugin is just the messenger.
Cheers Rene
Thanks Rene, That is the issue right now is that the dark sky weather isnāt really matching up like the old wunderground app was. I am looking into trying to access whatever gives the little weather icon in the top right corner of the vera web UI. That seems to be pretty accurate and shows snow when dark sky just says āPartly cloudyā
If you do access that weather icon in the upper right corner, please share. I have been using DarkSky since WU stopped their API, but if I can get data from the Vera itself, I would prefer that.
Thereās a plugin for that. Itās mios weather or similar.
There is a plugin called Virtual Outdoor Temperature Sensor (VOTS), but that only pulls the out door temp, no icons. Not sure what Vera uses as source.
Cheers Rene
AFAIK itās based on yahoo weather.