I own some aqara wall switches “zero line” (with neutral). They work really good but they do not report the power consumption in HA as opposed to the mi home app. Is there any possible solution?
Restart Home Assistant and check your homeassistant.log. You can see the traffic (messages) between Home Assistant and your Xiaomi Gateway now. It looks like this:
2017-08-05 10:21:33 DEBUG (Thread-12) [homeassistant.components.xiaomi] PUSH >> <Entity Motion Sensor_158d000113e31f: off>: {'status': 'motion'}
2017-08-05 10:21:58 DEBUG (Thread-3) [homeassistant.components.binary_sensor.xiaomi] Updating xiaomi sensor 158d000113e31f by polling. Current state is "on".
2017-08-05 10:21:58 DEBUG (Thread-3) [homeassistant.components.xiaomi] PUSH >> <Entity Motion Sensor_158d000113e31f: on>: {'status': 'motion', 'voltage': 3075}
2017-08-05 10:22:29 DEBUG (Thread-6) [homeassistant.components.binary_sensor.xiaomi] Updating xiaomi sensor 158d000113e31f by polling. Current state is "on".
2017-08-05 10:22:29 DEBUG (Thread-6) [homeassistant.components.xiaomi] PUSH >> <Entity Motion Sensor_158d000113e31f: on>: {'status': 'motion', 'voltage': 3075}
2017-08-05 10:23:00 DEBUG (Thread-12) [homeassistant.components.binary_sensor.xiaomi] Updating xiaomi sensor 158d000113e31f by polling. Current state is "on".
2017-08-05 10:23:00 DEBUG (Thread-12) [homeassistant.components.xiaomi] PUSH >> <Entity Motion Sensor_158d000113e31f: on>: {'status': 'no_motion', 'voltage': 3075}
Try to identify your the SID (sub device id = 158d000113e31f, example above) of your wall switch and provide some messages of this SID here. In the best case these messages contain some new fields (power_load f.e.) which can be evalutated and integrated into the Home Assistant component later on.
It looks like the heartbeat (= periodical (5min) published state of the device) doesn’t contain the state unfortunately. If you control the device the new state is published once. In case of an HA restart this doesn’t help. We need an improved gateway firmware here.