XiaomiGateway: unable to write command - Invalid key Topic is solved

Xiaomi, Ikea TRÅDFRI, Philips Hue and more.

Moderator: leecollings

Post Reply
konix
Posts: 5
Joined: Wednesday 24 September 2014 8:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

XiaomiGateway: unable to write command - Invalid key

Post by konix »

Hi all,

I use an Xiaomi Gateway since 2 years now it's the V2 version without Homekit.
This summer I have rebuild my domoticz installation with the last Stable version of domoticz :
Version: 2020.2
Build Hash: b63341bc0
Compile Date: 2020-04-26 13:47:55
dzVents Version: 3.0.2
Python Version: 3.7.3 (default, Jul 25 2020, 13:03:44) [GCC 8.3.0].

I have never issue before this rebulding but now I have some time issues in the log like :

XiaomiGateway: unable to write command - Invalid key.

The Gateway and the Devices works but it's not stable .....
The switch works after two or three clik or double click or long clik ....
The motion detector work sometime, same for the motion detector and the doors switch .....

I have double check my password in my Xiaomi application and I have also try to change this password without succes
I have delete my xiaomi Gateway in Domoticz and add again without succes
I have delete the gateway in my xiaome application on the phone and add again without succes

If I deactivate and reactivate the gateway, it's okay for the moment, the errors come back later

To summarize it works when he wants :D
No issue when I check directly in the Xiaomi application in my phone.

If you knowsomething about that I take it !!

In the last version of Domoticz we have ID and Password when you add the Gateway but in my last version there was just Password, what is the ID, maybe it's the token of the Gateway ?

Have a good day.
Attachments
Snap5.jpg
Snap5.jpg (335.72 KiB) Viewed 926 times
Snap4.jpg
Snap4.jpg (41.29 KiB) Viewed 926 times
Snap3.jpg
Snap3.jpg (312.67 KiB) Viewed 926 times
Raspberry PI 2 whith Domoticz (Master)
Raspberry PI B+ whith Domoticz (Slave)
Raspberry PI B+ whith OSMC
RFLINK - ZWAVE - TELEINFO - 1 WIRE
konix
Posts: 5
Joined: Wednesday 24 September 2014 8:40
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: France
Contact:

Re: XiaomiGateway: unable to write command - Invalid key

Post by konix »

Hi,

Nobody have an idea for that :roll:
Raspberry PI 2 whith Domoticz (Master)
Raspberry PI B+ whith Domoticz (Slave)
Raspberry PI B+ whith OSMC
RFLINK - ZWAVE - TELEINFO - 1 WIRE
AntoonvdOetelaar
Posts: 15
Joined: Thursday 24 August 2017 14:15
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Holland
Contact:

Re: XiaomiGateway: unable to write command - Invalid key

Post by AntoonvdOetelaar »

2020-11-26 00:10:15.731 Error: XiaomiGateway: unable to write command - Invalid key
2020-11-26 03:54:20.513 Error: XiaomiGateway: unable to write command - Invalid key
2020-11-26 03:54:20.764 Error: XiaomiGateway: unable to write command - Invalid key

So, I do see it also, but the xiaomi gateway does function at least in between, so I think this error code is more about a different error, maybe because of lost connection?
RPI3B, Z-WAVE AEOTEC GEN5, Zigbee2Mqtt, Xiaomi gateway, GPIO, I2C, 1-wire, DS18B20, P1 meter, Growatt, Buienradar, Harmony hub, Domoticz 2020.2
User avatar
waltervl
Posts: 5149
Joined: Monday 28 January 2019 18:48
Target OS: Linux
Domoticz version: 2024.7
Location: NL
Contact:

Re: XiaomiGateway: unable to write command - Invalid key

Post by waltervl »

Possibly related to this? viewtopic.php?f=68&t=34673
Domoticz running on Udoo X86 (on Ubuntu)
Devices/plugins: ZigbeeforDomoticz (with Xiaomi, Ikea, Tuya devices), Nefit Easy, Midea Airco, Omnik Solar, Goodwe Solar
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest