Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

Coldman
Posts: 61
Joined: Saturday 17 December 2016 11:51
Target OS: Linux
Domoticz version: Beta
Location: Moscow, Russia
Contact:

Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by Coldman »

deennoo wrote: Press for long clik at 18:13:55
Release long click at 18:13:58

Domoticz beta 3.6478

As i got a script who run when selector : long click he run twice
I think code should be changed here: XiaomiGateway.cpp
because when switch pressed is receiving status "on" and when switch is released is receiving status "on" again.

Code: Select all

else if ([b](status == "long_click_press") || (status == "long_click_release")[/b] || (status == "flip180") || (aqara_wireless2 == "click") || (aqara_wired1 == "off")) {
level = 20;
on = true;
}
pavelbor
Posts: 35
Joined: Sunday 18 December 2016 12:18
Target OS: Raspberry Pi / ODroid
Domoticz version: LastBeta
Location: Tallinn / Estonia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by pavelbor »

Hello,

in last beta 3.6478 i have several problems:
- log does not show messages from Xiaomi sensors, just Temperature or Humidity "nodeid: xxxxxxxxxx" messages.
- can not switch on/off ZigBee socket. In log i see "User: Admin initiated a switch command..... On"
- in Log there are no status messages, but in Web interface status of motion sensors and sockets are correct

Restart of Domoticz did not helped.
Coldman
Posts: 61
Joined: Saturday 17 December 2016 11:51
Target OS: Linux
Domoticz version: Beta
Location: Moscow, Russia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by Coldman »

pavelbor wrote:Hello,

in last beta 3.6478 i have several problems:
- log does not show messages from Xiaomi sensors, just Temperature or Humidity "nodeid: xxxxxxxxxx" messages.
- can not switch on/off ZigBee socket. In log i see "User: Admin initiated a switch command..... On"
- in Log there are no status messages, but in Web interface status of motion sensors and sockets are correct

Restart of Domoticz did not helped.
Hi,

same problem with smart plug

for first question in XiaomiGateway.cpp look for showmessage=false change to true
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by levynger »

@corbin, new patch #9 was added to your github.
added "Long Press Release" state to the small wireless switch.
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

Thanks, will update with your adjustment.

Also is there anyone that doesn't want to see the raw messages from the gateway in the log?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
deennoo
Posts: 784
Joined: Wednesday 10 December 2014 13:06
Target OS: Linux
Domoticz version: beta
Location: Bordeaux France
Contact:

Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by deennoo »

corbin wrote:Thanks, will update with your adjustment.

Also is there anyone that doesn't want to see the raw messages from the gateway in the log?
On my opinion, once a stable isn't announced, you can let debug info for xiaomi this help to see what is send and what is recieved.
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by levynger »

corbin wrote:Thanks, will update with your adjustment.

Also is there anyone that doesn't want to see the raw messages from the gateway in the log?
These message are quite useful IMHO...
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

Logging is turned back on, but I don't want it to be in the stable release - which we are pretty close to I think
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
pavelbor
Posts: 35
Joined: Sunday 18 December 2016 12:18
Target OS: Raspberry Pi / ODroid
Domoticz version: LastBeta
Location: Tallinn / Estonia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by pavelbor »

corbin wrote:Logging is turned back on...
Yes, agree - until stable release, lets log it .

But what about problem with ZigBee sockets?
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

pavelbor wrote: But what about problem with ZigBee sockets?
I'm checking now, can you check your database has the correct password? - I'm asking because I've seen my password reset a couple of times.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
pavelbor
Posts: 35
Joined: Sunday 18 December 2016 12:18
Target OS: Raspberry Pi / ODroid
Domoticz version: LastBeta
Location: Tallinn / Estonia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by pavelbor »

corbin wrote:
pavelbor wrote: But what about problem with ZigBee sockets?
I'm checking now, can you check your database has the correct password? - I'm asking because I've seen my password reset a couple of times.
Password did not changed.
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

pavelbor wrote: Password did not changed.
Thanks, I've identified the problem here too, will have a fix tomorrow
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
sebg
Posts: 1
Joined: Wednesday 25 January 2017 11:43
Target OS: Linux
Domoticz version:
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by sebg »

woody4165 wrote:Now, with latest beta 3.6454, I don't see anymore the previous error.
I can see the HW page, but still no other fields in the Xiaomi Gtw.
As also nogo said, the beta prior 3.6441 was working fine, at least at me.
it works for me with another browser (Google Chrome -> Midori)
Coldman
Posts: 61
Joined: Saturday 17 December 2016 11:51
Target OS: Linux
Domoticz version: Beta
Location: Moscow, Russia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by Coldman »

corbin wrote:
pavelbor wrote: Password did not changed.
Thanks, I've identified the problem here too, will have a fix tomorrow
Hi, there is additional information for you, may be it help
https://youtu.be/tiXk8DmWJFQ
seems domoticz does not send any command to gateway for turn on/off smart plug
levynger
Posts: 87
Joined: Wednesday 21 December 2016 19:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Israel
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by levynger »

@corbin, @deennoo found a problem for the ctrl_neutral1 - it wont be triggered as the message is hardcoded for ctrl_neural2 only..

im tryng to resolve that, however i cant figure out if there is a way, to store the "ctrl_neutral2" or "ctrl_neutral1" on the InsertUpdateSwitch function to the DB.
and get them either as query from DB or any other method when "WriteToHardware" is triggered.
Seems that when WriteToHardware is triggered from the UI, there is no correlating message from the gateway that i can parse and understand if its the single or Dual device..
the info i found there is mainly the ID, using it i can query DB i assume and get the stored info if ctrl1 or ctrl2 etc..
or there is a simpler way i haven't figure inside the WriteToHardware to correlate to the correct ctrl# device?
Attachments
DB.PNG
DB.PNG (177.78 KiB) Viewed 2042 times
pikapt
Posts: 37
Joined: Wednesday 25 January 2017 20:54
Target OS: Linux
Domoticz version:
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by pikapt »

Hi guys,
I'm new to Domoticz, just finished compiling latest dev on rpi3. Got zwave and xiaomi hub working, zwave devices are working as expected. Xiaomi devices were automatically detected and I can see the correct statuts. For eg: if I press the switch, open the door or move right next to the motion detector, everything looks to work just fine.

The current problem that I have are: I'm not able to switch on/off and the color of the hub (but if I turn in on manually, domoticz will update the on/off state). Same happens with zigbee switch: state looks good but I'm not able to turn on/off from domoticz webpage. Any clue?

Thanks a lot!
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

pikapt wrote: The current problem that I have are: I'm not able to switch on/off and the color of the hub (but if I turn in on manually, domoticz will update the on/off state). Same happens with zigbee switch: state looks good but I'm not able to turn on/off from domoticz webpage. Any clue?
try compiling from https://github.com/corbinmunce/domoticz

I made a mistake with the the power plug command which is now fixed, but the gateway light was still working for me - so there could be something else wrong still.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
pikapt
Posts: 37
Joined: Wednesday 25 January 2017 20:54
Target OS: Linux
Domoticz version:
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by pikapt »

will do! I'll be back :)
User avatar
corbin
Posts: 463
Joined: Saturday 20 August 2016 22:57
Target OS: Windows
Domoticz version: Beta
Location: Brisbane, Australia
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by corbin »

levynger wrote:@corbin, @deennoo found a problem for the ctrl_neutral1 - it wont be triggered as the message is hardcoded for ctrl_neural2 only..
Can you check my latest github update hasn't broken the new switch commands you added?

I'm not sure how best to solve the ctrl_neutral/1ctrl_neutral2 problem. I faced something similar with the gateway colour and brightness, where I didn't want to query the database each time for the values needed - ended up using local variables. This approach for the switches would need to store the switch type/name for each switch, and would need an array or similar.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
pikapt
Posts: 37
Joined: Wednesday 25 January 2017 20:54
Target OS: Linux
Domoticz version:
Contact:

Re: Xiaomi Smart Home Suite (very cheap) compatibilty?

Post by pikapt »

Hi corbin,

So I'm back with good and bad news. Good news is that zigbee switch is working, bad news is that gateway switch still doesn't.
Any idea on how to make some debug over it? Is it working for everyone else?

Cheers
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest