Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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?
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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.
Attachments
plugin.py.gz
(1.07 KiB) Downloaded 81 times
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by mcmikev »

What a shame. I thought that i was giving the wrong values but it just cannot be done this way
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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.
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by pipiche »

I'll see if I can do something at the plugin level to compensate it.
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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"
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by pipiche »

Did you check that you have Domoticz Beta > 4.10335 ?
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by mcmikev »

i run v4.10419 so that is fine (build from source)
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by mcmikev »

domoticz framework change???
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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 ;-)
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by pipiche »

In any case, let me know the results
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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.

Image
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by mcmikev »

I adjusted -0.3 and -0.5
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by pipiche »

So indeed , now I'm rounding the result of the adjustement
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by mcmikev »

Looks good so far. Thx
pipiche
Posts: 2015
Joined: Monday 02 April 2018 20:33
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: France
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post by pipiche »

BTW, I have also enable adjustement on Baro
Zigbee for Domoticz plugin / RPI3B+ / Electrolama ZZH-P / 45 devices

If the plugin provides you value, you can support me with a donation Paypal.

Wiki is available here.

Zigbee for Domoticz FAQ
mcmikev
Posts: 146
Joined: Tuesday 26 May 2015 8:11
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: right here
Contact:

Re: Zigate and Xiaomi temp/hum/baro sensors adjustment of temp

Post 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???
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest