How to set "forecastString" ?
Posted: Wednesday 31 August 2022 14:12
Hi,
I am trying to set the "forecastString" value of a virtual TempHumBaro sensor as I have a script that compares 3 outdoor sensors (1 Zwave, 1 Zigbee and 1 RFX) and decides which one is still updating/can be trusted and writes the values from that sensor to a virtual sensor.
I am able to set temperature, humidity, status(a string, "humidityStatus" for example "Comfortable"), pressure but not forecast.
I can aquire "forecastString" from my actual sensor with ".forecastString" , for example 'Some Clouds' however I seem unable to write this value (or any other string) to my virtual sensor, indeed the "update" command is for "forecast" which is a numerical value (5) in my case.
From the wiki:
Temperature, Humidity, Barometer sensor
barometer: Number
dewPoint: Number
forecast: Number.
forecastString: String.
humidity: Number
humidityStatus: String
humidityStatusValue: Number. Value matches with domoticz.HUM_NORMAL, -HUM_DRY, HUM_COMFORTABLE, -HUM_WET.
temperature: Number
updateTempHumBaro(temperature, humidity, status, pressure, forecast): Function. forecast can be domoticz.BARO_NOINFO, BARO_SUNNY, BARO_PARTLY_CLOUDY, BARO_CLOUDY, BARO_RAIN. status can be domoticz.HUM_NORMAL, HUM_COMFORTABLE, HUM_DRY, HUM_WET, HUM_COMPUTE (let dzVents do the math)
If I write "5" as the forecast value I get "Prediction: Unknown" in my dashboard, whereas the original sensor displays "Some Clouds"
Wondering if anyone else had come across this ?
I am trying to set the "forecastString" value of a virtual TempHumBaro sensor as I have a script that compares 3 outdoor sensors (1 Zwave, 1 Zigbee and 1 RFX) and decides which one is still updating/can be trusted and writes the values from that sensor to a virtual sensor.
I am able to set temperature, humidity, status(a string, "humidityStatus" for example "Comfortable"), pressure but not forecast.
I can aquire "forecastString" from my actual sensor with ".forecastString" , for example 'Some Clouds' however I seem unable to write this value (or any other string) to my virtual sensor, indeed the "update" command is for "forecast" which is a numerical value (5) in my case.
From the wiki:
Temperature, Humidity, Barometer sensor
barometer: Number
dewPoint: Number
forecast: Number.
forecastString: String.
humidity: Number
humidityStatus: String
humidityStatusValue: Number. Value matches with domoticz.HUM_NORMAL, -HUM_DRY, HUM_COMFORTABLE, -HUM_WET.
temperature: Number
updateTempHumBaro(temperature, humidity, status, pressure, forecast): Function. forecast can be domoticz.BARO_NOINFO, BARO_SUNNY, BARO_PARTLY_CLOUDY, BARO_CLOUDY, BARO_RAIN. status can be domoticz.HUM_NORMAL, HUM_COMFORTABLE, HUM_DRY, HUM_WET, HUM_COMPUTE (let dzVents do the math)
If I write "5" as the forecast value I get "Prediction: Unknown" in my dashboard, whereas the original sensor displays "Some Clouds"
Wondering if anyone else had come across this ?