XiaomiGateway3
XiaomiGateway3 copied to clipboard
zigbee NAS-WR01B (TS011F) by Neo - Power entity not updating
In 2.0.3 power entity is updating but in 2.0.4 it’s not. See flatline. Included a screenshot of my TV switch

What is firmware version of the socket?
Firmware: 68
You need to update plug firmware https://github.com/AlexxIT/XiaomiGateway3/wiki/Advanced-commands-to-Gateway
Tried it with your example. Result is still same firmware. Tried also rebooting GW. Get the following:

You need to collect debug logs
Sometimes the firmware version is displayed incorrectly. You can run the config option from the gateway drop-down menu. The firmware version will be updated.
There you can also perform a socket firmware update operation. If something goes wrong, you need the log this moment.
Took a brand new plug and Zigbee GW3 and then I did the Debug logging as mentioned above.
Was Trying this command:
service: xiaomi_gateway3.send_command
data:
host: 10.10.0.7
command: miio
data: >-
{"method":"miIO.subdev_ota","params":{"did":"lumi.0xa4c1380972f3e013","subdev_url":"https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Telink/nas_wr01b_plug_OTA_1.0.10.bin"}}
Went to the Interface and used the dropdowns:
Zigbee Config - selected the plug 0xa4c1380972f3e013 Answer: Paired
Zigbee OTA - selected the plug 0xa4c1380972f3e013 Answer: No Firmware
No idea
You shouldn't use 0x in did. Use lumi.a4c1380972f3e013
Tried it now with a few different ones but all give Error Unknown and similar debug as above.
You need to show the error from the Hass log. And I still haven't received the debugging log from you.
2022-04-15 16:13:32 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 0}
2022-04-15 16:13:36 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 1}
2022-04-15 16:13:37 DEBUG base 10.10.0.7 [LUMI] 0x00158d0006f45bc8 (0xad4a) recv {'battery_voltage': 2995, 'battery': 59, 'battery_original': 65, 'new_resets': 0, 'resets': 80, 'temperature': 12.34, 'humidity': 65.68, 'pressure': 1028.38, 'parent': '-', 'fw_ver': 0}
2022-04-15 16:13:41 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 2}
2022-04-15 16:13:47 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 3}
2022-04-15 16:13:54 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 4}
2022-04-15 16:14:00 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 5}
2022-04-15 16:14:04 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 6}
2022-04-15 16:14:08 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 7}
2022-04-15 16:14:14 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 8}
2022-04-15 16:14:23 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 9}
2022-04-15 16:14:27 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 10}
2022-04-15 16:14:32 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 11}
2022-04-15 16:14:36 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 12}
2022-04-15 16:14:41 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 13}
2022-04-15 16:14:45 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 14}
2022-04-15 16:14:49 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 15}
2022-04-15 16:14:55 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 16}
2022-04-15 16:15:00 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 17}
2022-04-15 16:15:04 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 18}
2022-04-15 16:15:10 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 19}
2022-04-15 16:15:15 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 20}
2022-04-15 16:15:19 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 21}
2022-04-15 16:15:23 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 22}
2022-04-15 16:15:28 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 23}
2022-04-15 16:15:34 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 24}
2022-04-15 16:15:38 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 25}
2022-04-15 16:15:43 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 26}
2022-04-15 16:15:47 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 27}
2022-04-15 16:15:53 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 28}
2022-04-15 16:16:00 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 29}
2022-04-15 16:16:04 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 30}
2022-04-15 16:16:08 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 31}
2022-04-15 16:16:15 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 32}
2022-04-15 16:16:22 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 33}
2022-04-15 16:16:26 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 34}
2022-04-15 16:16:31 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 35}
2022-04-15 16:16:36 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 36}
2022-04-15 16:16:41 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 37}
2022-04-15 16:16:49 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 38}
2022-04-15 16:16:54 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 39}
2022-04-15 16:16:58 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 40}
2022-04-15 16:17:02 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 41}
2022-04-15 16:17:07 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 42}
2022-04-15 16:17:11 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 43}
2022-04-15 16:17:16 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 44}
2022-04-15 16:17:21 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 45}
2022-04-15 16:17:25 DEBUG base 10.10.0.7 [BASE] 0xa4c138812b2e2ac7 (0x1459) set device offline
2022-04-15 16:17:31 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 46}
2022-04-15 16:17:41 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 47}
2022-04-15 16:17:48 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 48}
2022-04-15 16:17:54 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 49}
2022-04-15 16:17:56 DEBUG base 10.10.0.7 [BASE] 0xa4c1383bc2a273ea (0xeff1) poll state plug
2022-04-15 16:17:56 DEBUG base 10.10.0.7 [BASE] 0xa4c138812b2e2ac7 (0x1459) poll state plug
2022-04-15 16:17:56 DEBUG base 10.10.0.7 [SLBS] 0xa4c1383bc2a273ea (0xeff1) read {'commands': [{'commandcli': 'zcl global read 6 0'}, {'commandcli': 'send 0xeff1 1 1'}]}
2022-04-15 16:17:56 DEBUG base 10.10.0.7 [SLBS] 0xa4c138812b2e2ac7 (0x1459) read {'commands': [{'commandcli': 'zcl global read 6 0'}, {'commandcli': 'send 0x1459 1 1'}]}
2022-04-15 16:17:59 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 50}
2022-04-15 16:18:07 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 51}
2022-04-15 16:18:08 DEBUG base 10.10.0.7 [BASE] Gateway time offset: -0.8592746257781982
2022-04-15 16:18:13 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 52}
2022-04-15 16:18:17 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 53}
2022-04-15 16:18:22 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 54}
2022-04-15 16:18:27 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 55}
2022-04-15 16:18:34 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 56}
2022-04-15 16:18:42 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 57}
2022-04-15 16:18:48 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 58}
2022-04-15 16:18:53 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 59}
2022-04-15 16:19:03 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 60}
2022-04-15 16:19:07 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 61}
2022-04-15 16:19:13 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 62}
2022-04-15 16:19:19 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 63}
2022-04-15 16:19:24 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 64}
2022-04-15 16:19:32 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 65}
2022-04-15 16:19:36 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 66}
2022-04-15 16:19:47 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 67}
2022-04-15 16:19:54 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 68}
2022-04-15 16:19:58 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 69}
2022-04-15 16:20:10 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 70}
2022-04-15 16:20:14 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 71}
2022-04-15 16:20:22 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 72}
2022-04-15 16:20:30 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 73}
2022-04-15 16:20:39 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 74}
2022-04-15 16:20:43 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 75}
2022-04-15 16:20:48 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 76}
2022-04-15 16:20:54 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 77}
2022-04-15 16:20:59 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 78}
2022-04-15 16:21:03 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 79}
2022-04-15 16:21:07 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 80}
2022-04-15 16:21:16 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 81}
2022-04-15 16:21:21 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 82}
2022-04-15 16:21:27 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 83}
2022-04-15 16:21:31 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 84}
2022-04-15 16:21:38 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 85}
2022-04-15 16:21:42 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 86}
2022-04-15 16:21:49 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 87}
2022-04-15 16:21:53 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 88}
2022-04-15 16:21:57 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 89}
2022-04-15 16:22:02 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 90}
2022-04-15 16:22:06 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 91}
2022-04-15 16:22:11 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 92}
2022-04-15 16:22:15 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 93}
2022-04-15 16:22:22 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 94}
2022-04-15 16:22:30 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 95}
2022-04-15 16:22:34 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 96}
2022-04-15 16:22:41 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 97}
2022-04-15 16:22:45 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 98}
2022-04-15 16:22:52 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 99}
2022-04-15 16:22:56 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'ota_progress': 100}
2022-04-15 16:22:56 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv
2022-04-15 16:22:56 DEBUG base 10.10.0.7 [LUMI] 0xa4c13858f03e499d (0x8aa6) recv {'fw_ver': 74}
2022-04-15 16:23:08 DEBUG base 10.10.0.7 [BASE] Gateway time offset: -0.8592069149017334
service: xiaomi_gateway3.send_command
data:
host: 10.10.0.7
command: miio
data: >-
{"method":"miIO.subdev_ota","params":{"did":"lumi.a4c13858f03e499d","subdev_url":"https://raw.githubusercontent.com/Koenkk/zigbee-OTA/master/images/Telink/nas_wr01b_plug_OTA_1.0.10.bin"}}
@AlexxIT i included above The Debug logfile and Command used in HA. I am using the latest version of HA and your software. I now tried this with 5 Plugs same result.
Telnet command used:
{"method":"set_ip_info","params":{"ssid":"\"\"","pswd":"123123 ; passwd -d admin ; echo enable > /sys/class/tty/tty/enable; telnetd"}}
Result is that the plug still gives firmware version 68.



I am now also getting on this device since I tried the firmware update that nearly all entities are unavailable except energy.
I think your plug successfully updated from 68 to 74. Try to reboot gateway and Hass.
@AlexxIT Done a reboot of both resulted in same result.

I have in the end bought a Tuya Hub and updated the Neo Plug fw this way.
It now runs 1.0.0.13 which is the latest. This is FW 78.
However problem is still there.
Today I paired neo plug with gateway3.
I can switch it on/of but power and current is not updateing. Stil shows zero values.
Voltage is still on the same level too. I know from ZHA integration that it is changing during the day.

Ihad firmware 68 and I could not to upgrade it via gateway3 integration. I had to connect it to tuya gateway to upgrade to firmware 74. But it still not showing power, current and voltage is not refreshing.
Never worked in this integration.
Also it does not work in the Tuya integration.
It only works if you switch to ZHA or Z2M mode.
Ok. Thank you.
I planned to move this plug from ZHA to Gateway3 integration but if You say it never worked with gateway3 I have to get back to ZHA. In the AlexIT description there is below information. I thought it will work.

You can use the integration but than need to switch it in ZHA/Z2M mode or Alex need to make the code for it
It use to work in the 2.0.3 version but not in the later versions.
I have one other unit that still works with this version and the latest Xiaomi GW3 version.
I had to downgrade my firmware to 1.5.0_0102 in order for it to work
This plug model have a lot of manufacturers and firmwares. Looks like I have added support for only my example
Please reopen the issue if it is still relevant