I already have a Tuya Smart breaker with an energy meter connected, and it shows sensor information correctly.
Have you tried bringing it closer to the device so it can properly interview it? I’ve had this problem, albeit mostly on Z-Wave but on some Zigbee too, and getting it very close for the interview has cleared up any issues.
If you’re using ZHA you may need a custom quirk:
I haven’t created a custom quirk before, and it’s not clear to me.
Some manufacturers (Tuya is an example) don’t follow the zigbee specification precisely. In ZHA a “quirk” is a patch to compensate for this. For a lot of common devices they’re built in to the integration and listed in the device information panel. This is a Philips Hue dimmer switch:
For newer or less common devices the developers create “custom quirks” for users to download.
Create a new folder inside your config folder (mine’s called custom_zha_quirks) and add a line in your configuration.yaml pointing to it.
zha:
custom_quirks_path: /config/custom_zha_quirks/
Then download the appropriate quirk and copy it to that folder. After a restart the missing sensors should appear. I’m afraid there seems to have been quite a lot of discussion about your particular device, but it was a year ago so it may have been sorted out by now.
I created a new folder “/config/custom_zha_quirks” and added the code. However, before I restart Home Assistant, I encountered the following error. What is the issue?
Configuration invalid!
Invalid config for [zha]: not a directory for dictionary value @ data[‘zha’][‘custom_quirks_path’]. Got ‘/config/custom_zha_quirks/’. (See /config/configuration.yaml, line 26).
Can anyone help me with the message below?
Configuration invalid!
Invalid config for [zha]: not a directory for dictionary value @ data[‘zha’][‘custom_quirks_path’]. Got ‘/config/custom_zha_quirks/’. (See /config/configuration.yaml, line 26)
/config is where your configuration.yaml is, so you create a directory custom_zha_quirks in that directory.
Finally, I set the custom_quirks_path, restarted Home Assistant, and removed and re-added the device. However, this did not resolve the issue. What can I do next?
Just installed one.
I succeeded but I don’t know exactly how. I describe my steps.
After putting the custom quirk in the custom_zha_quirks directory, I restarted Home Assistant but to no avail.
Then I selected “Reconfigure” (the link in the bottom of the leftest column in your screenshot).
I followed the instruction to reconfigure and in the table you can see that the new values are read.
But still not shown in the Entities of the device.
I restarted Home Assistant again, and hoooray! Current and power were there!
To use as an energy meter, you need to calculate energy from power.
To do that, you can use a “Riemann sum” helper, using the left sum algorithm, chosing k as prefix and hour as period, to obtain kWh measurement.
HTH!
Lorenzo
hi guys, can i have a quirks code for this device please? have you change some inside this code?
can you help me ?
I followed this guide
and downloaded this custom quirk:
https://github.com/zigpy/zha-device-handlers/files/11401270/ts0601_din_power.zip
I made no changes.
After installation I checked the Watt reading with the official meter by E-Distribuzione and saw that it had a 2% error in excess, I think that’s not bad for a so cheap device.
Let us know if you succeed installing this device.
EDIT: I am sorry, I realized only after a few months that mine has a different manufacturer ID.
I installed another quirks file called (ts0601_powermeter). The result only shows the kWh summation. Can you help me?
Are you following this thread on github?
This is your exact make and model.
Does anyone had an issue when after adding quirk, the power meter couldn’t be added to zha?
So useful post. nevertheless I still have the same problems as others, the quirk does not get applied
'manufacturer: _TZE204_cjbofhxw'
'model: TS0601'
'name: _TZE204_cjbofhxw TS0601'
'quirk_applied: false,'
'quirk_class: zigpy.device.Device'