Page 28 of 123

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

Posted: Tuesday 24 January 2017 22:44
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;
}

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

Posted: Tuesday 24 January 2017 23:38
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.

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

Posted: Tuesday 24 January 2017 23:51
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

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

Posted: Wednesday 25 January 2017 6:19
by levynger
@corbin, new patch #9 was added to your github.
added "Long Press Release" state to the small wireless switch.

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

Posted: Wednesday 25 January 2017 6:22
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?

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

Posted: Wednesday 25 January 2017 8:18
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.

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

Posted: Wednesday 25 January 2017 9:31
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...

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

Posted: Wednesday 25 January 2017 10:55
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

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

Posted: Wednesday 25 January 2017 12:34
by pavelbor
corbin wrote:Logging is turned back on...
Yes, agree - until stable release, lets log it .

But what about problem with ZigBee sockets?

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

Posted: Wednesday 25 January 2017 12:41
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.

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

Posted: Wednesday 25 January 2017 12:46
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.

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

Posted: Wednesday 25 January 2017 12:53
by corbin
pavelbor wrote: Password did not changed.
Thanks, I've identified the problem here too, will have a fix tomorrow

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

Posted: Wednesday 25 January 2017 13:13
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)

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

Posted: Wednesday 25 January 2017 13:24
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

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

Posted: Wednesday 25 January 2017 17:06
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?

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

Posted: Wednesday 25 January 2017 20:58
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!

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

Posted: Wednesday 25 January 2017 22:15
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.

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

Posted: Wednesday 25 January 2017 22:22
by pikapt
will do! I'll be back :)

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

Posted: Wednesday 25 January 2017 22:25
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.

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

Posted: Thursday 26 January 2017 0:46
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