Page 1 of 2
Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Tuesday 05 February 2019 18:06
by mcmikev
Hi
I am trying to adjust the values of my sensors in domoticz with -0.2 C on the TH sensors but that does not work.
Is this all related to this?
https://github.com/domoticz/domoticz/is ... -441357383
Or had this a different reason perhaps?
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Tuesday 05 February 2019 18:10
by pipiche
This is a problem related to Domoticz and the Python Plugin Framework. Indeed same problem as
https://github.com/domoticz/domoticz/is ... -441357383 and unfortunately the Domoticz owner has closed the issue !
Attached is a short plugin to duplicate the problem.
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Tuesday 05 February 2019 18:42
by mcmikev
What a shame. I thought that i was giving the wrong values but it just cannot be done this way

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Tuesday 05 February 2019 18:53
by pipiche
@mcmikev I fully share your view. I'm very sad. I'm not expert enought in CC+ to fix that problem in Domoticz and it looks like nobody wanted to make it.
Here is the work I started , but was not success to finish:
https://github.com/domoticz/domoticz/pull/2899
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 17:59
by mcmikev
Damn. Really miss this option

Xiaomi sensors are a bit “high” on temp Reading so adjusting with -0.5 or -1.0C would be great.
I turn off/on my heating with these readings.
Now it feels a bit cold because of the 1 degree difference.
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 19:18
by pipiche
I'll see if I can do something at the plugin level to compensate it.
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 22:08
by pipiche
If you switch to pre-4.1 branche . The adjustement of Temperature Sensor works. You need to have a beta version of Domoticz > 4.10355
In case you are on stable branche, please read with attention the file 00-UPGRADE-FROM-STABLE-4.0
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 22:53
by mcmikev
Great news !! Thank you.
Just did a git pull on the pre-4.1 branche and updated the xiaomi sensors (hum/temp/baro) with -0.3 and -0.5 degrees.
Hope to see the next update that the temp is "down"
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 23:00
by pipiche
Did you check that you have Domoticz Beta > 4.10335 ?
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 23:03
by mcmikev
i run v4.10419 so that is fine (build from source)
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 23:04
by mcmikev
domoticz framework change???
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 23:22
by pipiche
Yes, and no. I make a workaround in the plugin, but I needed to get access to new parameter now available via the Framework

So it should work

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Thursday 14 February 2019 23:28
by pipiche
In any case, let me know the results
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Saturday 16 February 2019 20:17
by mcmikev
Hi
It seems to work however there is a new strange thing now.
All of a sudden the temp reading goes haywire and is very long.
Not constant the same sensor it comes and goes.
Did a new pull just half an hour ago.

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Saturday 16 February 2019 20:28
by pipiche
Just fixed it. So better that you redo the git pull, restart.
Could you let me know what was your adjustement value ? I beleive -/+ xx.yy
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Saturday 16 February 2019 20:29
by mcmikev
I adjusted -0.3 and -0.5
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Saturday 16 February 2019 20:36
by pipiche
So indeed , now I'm rounding the result of the adjustement
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Saturday 16 February 2019 21:48
by mcmikev
Looks good so far. Thx

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Saturday 16 February 2019 21:55
by pipiche
BTW, I have also enable adjustement on Baro
Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp
Posted: Monday 04 March 2019 16:45
by mcmikev
I have tried the temp adjustment on the THB devices that are created and updated the most due to barometric changes, but the THB devices are not using the offset.
The TH devices are, but the THB not. Temp, Humi,Baro can this be applied as well please???