hakong
hakong
> Try a reconfiguration through the UI. (I don't think it re-initializes all attributes yet though) > > So you'll likely have to remove the device from ZHA and then...
This: https://github.com/zigpy/zha-device-handlers/blob/8149efdd61f29303fac4720eae48e23de0058d62/zhaquirks/xiaomi/__init__.py#L583 is the issue. It was introduced in commit: https://github.com/zigpy/zha-device-handlers/pull/1656/commits/f092b60f03a5d3cd018daa6dee85979d6ee4db40
I removed and re-paired the relay probably 10 times yesterday while trying ~10 versions of the HA container (from 2021.x to 2023.x). Also did multiple reconfigurations after re-pairing it. It...
That's quite strange and not really something you'd expect users to know and/or do.
>Do you still have the pairing logs of this? (With debug logs turned on) No, but I could re-pair it with debugging enabled later tonight. Would that help? Could that...
I can reliably reproduce this now. After removing it and re-pairing, it shows the wrong measurements again. Before reading ac_power_divisor: [zha-1c10045c168600d68aed3ae03a0fb35d-LUMI lumi.relay.c2acn01-b7e48317db753b03476ed0d15dac4100.json (2).txt](https://github.com/home-assistant/core/files/10669641/zha-1c10045c168600d68aed3ae03a0fb35d-LUMI.lumi.relay.c2acn01-b7e48317db753b03476ed0d15dac4100.json.2.txt) After reading ac_power_divisor: [zha-1c10045c168600d68aed3ae03a0fb35d-LUMI lumi.relay.c2acn01-b7e48317db753b03476ed0d15dac4100.json (3).txt](https://github.com/home-assistant/core/files/10669643/zha-1c10045c168600d68aed3ae03a0fb35d-LUMI.lumi.relay.c2acn01-b7e48317db753b03476ed0d15dac4100.json.3.txt) Steps...
@TheJulianJES Are the provided logs enough?
@panfantastic If you want to quick-and-dirty this as an interim solution, rather than messing with selinux you can just use something like this. It's what I used and it worked...
Ok, thanks. I turned on debug logging in HA but it doesn't print enough info to show what's going on. Teslamate is showing the correct number of phases: 
Did you consider using `validate:`? https://docs.ansible.com/ansible/latest/collections/ansible/builtin/template_module.html#parameter-validate >The validation command to run before copying the updated file into the final destination. A temporary file path is used to validate, passed in...