fairecasoimeme / Zlinky_TIC

Téléinformation Linky autoalimenté ZigBee 3.0
310 stars 21 forks source link

Need to power off/on LiXee_TIC to reset ADPS value after a consumption spike #34

Closed AdrienBigot closed 2 years ago

AdrienBigot commented 2 years ago

Hi,

By default ADPS (id 0x0005 in cluster 0xFF66) is set to 0 if we don't exceed the contrat limit value. If we exceed the limit and then return to a normal situation, the ADPS value remains blocked at the last value above the limit.

Step to reproduce the problem :

  1. I turn on many devices and ADPS value increase to 38A.
  2. I turn off one device, the value change to 34A in a few seconds.
  3. I turn off another device, the value change to 31A.
  4. I turn off all unecessary devices, the value is stucked to the last 31A.
  5. Unpluged and plug my Zlinky, my ADPS value is back to 0

It seems the zlinky_tic store this value in memory and never reset it when we return to a normal situation.

Adrien

fairecasoimeme commented 2 years ago

sorry for delay. ZLinky_TIC don't store any values. I think this is the linky which keep the last value. So, I'll ask Enedis

fairecasoimeme commented 2 years ago

Ok, I understand. Indeed, ADPS is a command which appear only when there is an exceed value. In this case, the value is collected. But when the power value is ok, ADPS doesn't exist anymore and the module don't update the value. I'll see how to change this.

fairecasoimeme commented 2 years ago

fixed with v4