hassio-zigbee2mqtt icon indicating copy to clipboard operation
hassio-zigbee2mqtt copied to clipboard

Moes AM43-0.45/40-ES-EB: Add Battery Entity

Open nicknol opened this issue 2 months ago • 10 comments

Description of the issue

The Roller blind/shades drive motor Moes AM43-0.45/40-ES-EB shows battery information in Zigbee2MQTT. But there is no battery entity in Home Assistant.

Addon version

v2.6.2-1

Platform

Home Assistant OS Core 2025.10.4 Supervisor 2025.10.0 Operating System 16.2 Frontend 20251001.4

Logs of the issue (if applicable)

No response

nicknol avatar Nov 02 '25 17:11 nicknol

I don't see it exposing battery.

The Roller blind/shades drive motor Moes AM43-0.45/40-ES-EB shows battery information in Zigbee2MQTT.

can you provide a screenshot of this?

Koenkk avatar Nov 03 '25 20:11 Koenkk

Image

nicknol avatar Nov 03 '25 21:11 nicknol

Could you try to re-configure the device and provide the debug log of that, afterwards restart z2m.

See this on how to enable debug logging.

Koenkk avatar Nov 04 '25 19:11 Koenkk

Please find the lines from the debug log, the device in question is "Rollo (1Z)":

7.11.2025, 11:21:52] z2m: Device 'Rollo (1Z)' left the network
[7.11.2025, 11:21:53] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Rollo (1Z)","ieee_address":"0x0ceff6fffecb202a"},"type":"device_leave"}'
[7.11.2025, 11:21:53] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (15Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":255,"energy":1558,"indicator_mode":"off/on","linkquality":144,"power":58,"power_outage_memory":"restore","state":"ON","update":{"installed_version":1946234881,"latest_version":1946234881,"state":"idle"},"voltage":234}'
[7.11.2025, 11:21:53] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bewegung (2Z)', payload '{"battery":100,"fading_time":30,"humidity":null,"humidity_calibration":null,"illuminance":2865,"illuminance_interval":1,"indicator":"OFF","linkquality":216,"motion_detection_sensitivity":14,"presence":false,"temperature":null,"temperature_calibration":null,"temperature_unit":"celsius"}'
[7.11.2025, 11:21:55] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (28Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":12.71,"indicator_mode":"off/on","linkquality":144,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"voltage":228}'
[7.11.2025, 11:21:55] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (15Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":255,"energy":1558,"indicator_mode":"off/on","linkquality":144,"power":57,"power_outage_memory":"restore","state":"ON","update":{"installed_version":1946234881,"latest_version":1946234881,"state":"idle"},"voltage":234}'
[7.11.2025, 11:21:56] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bewegung (7Z)', payload '{"brightness":216,"color":{"x":0.466,"y":0.378},"color_mode":"xy","effect":null,"illuminance":56,"level_config":{"on_level":"previous"},"linkquality":156,"occupancy":false,"power_on_behavior":"previous","state":"ON","update":{"installed_version":86,"latest_version":86,"state":"idle"}}'
[7.11.2025, 11:21:57] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (18Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":82.77,"indicator_mode":"off/on","linkquality":255,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"voltage":229}'
[7.11.2025, 11:21:57] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (25Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":74.97,"indicator_mode":"off/on","linkquality":255,"power":0,"power_outage_memory":"on","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"voltage":229}'
[7.11.2025, 11:21:57] zh:controller: Interview for '0x0ceff6fffecb202a' started
[7.11.2025, 11:21:57] z2m: Device 'Rollo (1Z)' joined
[7.11.2025, 11:21:59] z2m: Starting interview of 'Rollo (1Z)'
[7.11.2025, 11:21:59] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Rollo (1Z)","ieee_address":"0x0ceff6fffecb202a"},"type":"device_joined"}'
[7.11.2025, 11:21:59] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Rollo (1Z)","ieee_address":"0x0ceff6fffecb202a","status":"started"},"type":"device_interview"}'
[7.11.2025, 11:21:59] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"friendly_name":"Rollo (1Z)","ieee_address":"0x0ceff6fffecb202a"},"type":"device_announce"}'
[7.11.2025, 11:21:59] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Bewegung (9Z)', payload '{"brightness":216,"color":{"x":0.466,"y":0.378},"color_mode":"xy","effect":null,"illuminance":32,"linkquality":255,"occupancy":false,"power_on_behavior":"previous","state":"OFF","update":{"installed_version":86,"latest_version":86,"state":"idle"}}'
[7.11.2025, 11:21:59] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (11Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":11.43,"indicator_mode":"off/on","linkquality":144,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"voltage":229}'
[7.11.2025, 11:21:59] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Repeater (1Z)', payload '{"linkquality":144}'
[7.11.2025, 11:22:00] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (11Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":11.43,"indicator_mode":"off/on","linkquality":144,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":192,"latest_version":192,"state":"idle"},"voltage":229}'
[7.11.2025, 11:22:01] zh:controller: Succesfully interviewed '0x0ceff6fffecb202a'
[7.11.2025, 11:22:01] z2m: Successfully interviewed 'Rollo (1Z)', device has successfully been paired
[7.11.2025, 11:22:01] z2m: Device 'Rollo (1Z)' is supported, identified as: Moes Roller blind/shades drive motor (AM43-0.45/40-ES-EB)
[7.11.2025, 11:22:01] z2m: Configuring 'Rollo (1Z)'
[7.11.2025, 11:22:01] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/bridge/event', payload '{"data":{"definition":{"description":"Roller blind/shades drive motor","exposes":[{"features":[{"access":3,"label":"State","name":"state","property":"state","type":"enum","values":["OPEN","CLOSE","STOP"]},{"access":3,"description":"Position of this cover","label":"Position","name":"position","property":"position","type":"numeric","unit":"%","value_max":100,"value_min":0}],"type":"cover"},{"access":3,"description":"Set the motor direction","label":"Motor direction","name":"motor_direction","property":"motor_direction","type":"enum","values":["normal","reversed"]},{"access":3,"description":"Motor speed","label":"Motor speed","name":"motor_speed","property":"motor_speed","type":"numeric","unit":"rpm","value_max":255,"value_min":0},{"access":3,"description":"Opening mode","label":"Opening mode","name":"opening_mode","property":"opening_mode","type":"enum","values":["tilt","lift"]},{"access":2,"description":"Set the upper limit, to reset limits use factory_reset","label":"Set upper limit","name":"set_upper_limit","property":"set_upper_limit","type":"enum","values":["SET"]},{"access":2,"description":"Set the bottom limit, to reset limits use factory_reset","label":"Set bottom limit","name":"set_bottom_limit","property":"set_bottom_limit","type":"enum","values":["SET"]},{"access":2,"description":"Factory reset the device","label":"Factory reset","name":"factory_reset","property":"factory_reset","type":"binary","value_off":false,"value_on":true},{"access":1,"category":"diagnostic","description":"Link quality (signal strength)","label":"Linkquality","name":"linkquality","property":"linkquality","type":"numeric","unit":"lqi","value_max":255,"value_min":0}],"model":"AM43-0.45/40-ES-EB","options":[],"source":"native","supports_ota":false,"vendor":"Moes"},"friendly_name":"Rollo (1Z)","ieee_address":"0x0ceff6fffecb202a","status":"successful","supported":true},"type":"device_interview"}'
[7.11.2025, 11:22:01] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (31Z)', payload '{"ac_frequency":50,"current":0,"energy":4.32,"linkquality":255,"power":0.2,"power_factor":0.04,"power_on_behavior":"previous","state":"ON","update":{"installed_version":268513378,"latest_version":268513378,"state":"idle"},"voltage":231.5}'
[7.11.2025, 11:22:01] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (15Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":255,"energy":1558,"indicator_mode":"off/on","linkquality":144,"power":58,"power_outage_memory":"restore","state":"ON","update":{"installed_version":1946234881,"latest_version":1946234881,"state":"idle"},"voltage":234}'
[7.11.2025, 11:22:01] z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Steckdose (15Z)', payload '{"child_lock":"UNLOCK","countdown":0,"current":251,"energy":1558,"indicator_mode":"off/on","linkquality":144,"power":58,"power_outage_memory":"restore","state":"ON","update":{"installed_version":1946234881,"latest_version":1946234881,"state":"idle"},"voltage":234}'
[7.11.2025, 11:22:02] z2m: Successfully configured 'Rollo (1Z)'

nicknol avatar Nov 07 '25 10:11 nicknol

  • Could you now provide the data/database.db entry of this device?
  • Does this device have a battery?

Koenkk avatar Nov 07 '25 20:11 Koenkk

Please find the database entry:

{"id":200,"type":"EndDevice","ieeeAddr":"0x0ceff6fffecb202a","nwkAddr":34297,"manufId":4098,"manufName":"_TZE200_icka1clh","powerSource":"Battery","modelId":"TS0601","epList":[1],"endpoints":{"1":{"profId":260,"epId":1,"devId":81,"inClusterList":[0,4,5,61184],"outClusterList":[25,10],"clusters":{"genBasic":{"attributes":{"65503":"ђ�0fђ�0\u0012Ғ�0\u0012","65506":31,"65508":0,"65534":0,"modelId":"TS0601","manufacturerName":"_TZE200_icka1clh","stackVersion":0,"dateCode":"","zclVersion":3,"appVersion":65,"powerSource":3}}},"binds":[],"configuredReportings":[],"meta":{}}},"appVersion":65,"stackVersion":0,"hwVersion":1,"dateCode":"","zclVersion":3,"interviewCompleted":true,"interviewState":"SUCCESSFUL","meta":{"configured":332242049},"lastSeen":1762553984796}

and yes, the device has a battery. it could charged via Solar panel (part of the delivery) or via a charger (as well part of the delivery)

nicknol avatar Nov 07 '25 22:11 nicknol

Currently we don't have the datapoint for the battery, we might be able to reverse engineer it by observing the debug logs for 24 hours and see if we get a Datapoint XX not defined for '_TZE200_icka1clh, can you checkt this?

See this on how to enable debug logging.

Koenkk avatar Nov 09 '25 20:11 Koenkk

I ran Z2M for 24+h in debug mode and created a log file of about 1GB. Unfortunately the string we were looking for is not contained:

Image

nicknol avatar Nov 12 '25 06:11 nicknol

In that case we need to figure out the datapoints using the Tuya bridge: guide

Koenkk avatar Nov 12 '25 19:11 Koenkk

I looked at the guide, and I have to admit that I have neither a tuya bridge nor a tuya account. the latter could be sorted, but the former is difficult.

nicknol avatar Nov 13 '25 15:11 nicknol

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days

github-actions[bot] avatar Dec 14 '25 01:12 github-actions[bot]