Page 73 of 123

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

Posted: Saturday 27 May 2017 10:08
by Mooseknuckle
Hi,

Has anybody succesfully added the following wireless switch to the gateway?
http://www.gearbest.com/access-control/pp_626695.html
I tried to add it as a round wireless switch but It doesn't work. Maybe I just have to wait for a gateway update but I was curious if others did succeed in adding the switch.

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

Posted: Sunday 28 May 2017 16:52
by levynger
Mooseknuckle wrote:Hi,

Has anybody succesfully added the following wireless switch to the gateway?
http://www.gearbest.com/access-control/pp_626695.html
I tried to add it as a round wireless switch but It doesn't work. Maybe I just have to wait for a gateway update but I was curious if others did succeed in adding the switch.
xiaomi released a new wireless switch ?

if this is the case, it may use a different ID.
can you paste logs after clicking it, it should show "unknown device" with the ID..

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

Posted: Sunday 28 May 2017 19:04
by quack3d
I think he actually means he's unable to add it to the gateway through the app. I wonder why they made this revision of buttons and temperature sensors. As a light switch I think I prefer the old switch style as you can hit the entire switch, not just the middle.

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

Posted: Monday 29 May 2017 8:47
by Mooseknuckle
Hi,

It is what quack3d said, adding it to the gateway does not work. The strange thing is that when I add it, the mihome app counts it as a device but I cannot see it under the devices. Also in Domoticz I see the new switch but nothing changes when I press the button. I can add other devices to the gateway so I think I have to wait for a firmware update from Xiaomi.

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

Posted: Monday 29 May 2017 9:06
by levynger
Mooseknuckle wrote:Hi,

It is what quack3d said, adding it to the gateway does not work. The strange thing is that when I add it, the mihome app counts it as a device but I cannot see it under the devices. Also in Domoticz I see the new switch but nothing changes when I press the button. I can add other devices to the gateway so I think I have to wait for a firmware update from Xiaomi.
So you are able to add it to mi home apl?
In this case, you won't see it in domoticz devices if it uses new ID.

After paring it in mi home app, click on it, and in domoticz logs you should see the unknown line with the new device id.
Paste it here, and corbin would be able to do his magics.. :)

Sent from my SM-N920G using Tapatalk

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

Posted: Monday 29 May 2017 10:07
by Mooseknuckle
levynger wrote:
Mooseknuckle wrote:Hi,

It is what quack3d said, adding it to the gateway does not work. The strange thing is that when I add it, the mihome app counts it as a device but I cannot see it under the devices. Also in Domoticz I see the new switch but nothing changes when I press the button. I can add other devices to the gateway so I think I have to wait for a firmware update from Xiaomi.
So you are able to add it to mi home apl?
In this case, you won't see it in domoticz devices if it uses new ID.

After paring it in mi home app, click on it, and in domoticz logs you should see the unknown line with the new device id.
Paste it here, and corbin would be able to do his magics.. :)

Sent from my SM-N920G using Tapatalk
Hi,

That does not work. As I said, after adding it with the mihome app the switch is not visible in the app, while it does count as a device. I see the switch in Domoticz but it doesn't change and nothing appears in the log when I push the switch. The last update time remains on the time I added the switch.
The problem starts with adding it to the gateway, this has to work before making it work in Domoticz. But anywayz, I was just wondering if ppl with this switch have similar problems or that maybe my switch is broken. All other switches work perfectly.

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

Posted: Monday 29 May 2017 14:56
by quack3d
Anyone tested the new temperature monitor version? The one shaped like a square.

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

Posted: Tuesday 30 May 2017 20:25
by Coldman
corbin wrote:Was the error when smoke was detected?

You can enable the raw gateway messages to appear in the Domoticz log by creating a user variable 'XiaomiMessage' of type Integer and value 1. (Setup -> More Options -> User Variables). Then restart the Gateway hardware in Domoticz. from http://www.domoticz.com/wiki/Xiaomi_Gat ... leshooting
Hello Corbin,
Thanks alot for your great job!
Could you please add Gas Sensor to Domoticz, logs:

Code: Select all

XiaomiGateway: unhandled model: natgas
{"cmd":"report","model":"natgas","sid":"158d0001112b11","short_id":14003,"data":"{\"alarm\":\"0\"}"}
{"cmd":"report","model":"natgas","sid":"158d0001112b11","short_id":14003,"data":"{\"density\":\"0\"}"}
XiaomiGateway: unhandled model: natgas
{"cmd":"heartbeat","model":"natgas","sid":"158d0001112b11","short_id":14003,"data":"{\"voltage\":3600}"}

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

Posted: Wednesday 31 May 2017 6:30
by StefanoA
PROBLEM OF COMMUNICATION AFTER REBOOT

I don't know if this is normal/happening to everyone, but for me it's a problem
After restart/reboot of Raspberry Pi3 & domoticz, if I look at LOG I always find communication problems like below

Image

I figured out that if I go to HARDWARE page, select xiaomi gateway line and just push UPDATE button, the communication thread is restarted and communication is fixed and everything's working properly like shown below

Image

so again, is this normal/happening to everyone else ?
is there any way to prevent this problem automatically in case of reboot/power loss ?

thanks :roll:

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

Posted: Wednesday 31 May 2017 10:07
by lamouette
Same "problem" on my side since ... the beginning :)

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

Posted: Wednesday 31 May 2017 17:50
by chatainsim
Maybe Domoticz start to quickly after startup of the Pi?

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

Posted: Thursday 01 June 2017 13:36
by Swifty
StefanoA wrote:PROBLEM OF COMMUNICATION AFTER REBOOT

I don't know if this is normal/happening to everyone, but for me it's a problem
After restart/reboot of Raspberry Pi3 & domoticz, if I look at LOG I always find communication problems like below

Image

I figured out that if I go to HARDWARE page, select xiaomi gateway line and just push UPDATE button, the communication thread is restarted and communication is fixed and everything's working properly like shown below

Image

so again, is this normal/happening to everyone else ?
is there any way to prevent this problem automatically in case of reboot/power loss ?

thanks :roll:
Not sure if it helps, as I don't seem to have this problem, but if you run 'raspiconfig' I think there is an option in there to 'Wait for network on boot' (or something along those lines).
Maybe try to turn that on so that the network stack is fully up and address allocated etc. before Domoticz starts?

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

Posted: Thursday 01 June 2017 21:20
by Mat2Vence
is there anyway to know easily in Domoticz which voltage device correspond to which sensor?
I saw reference of the hex code in another post, but there is nothing matching on my device list... anything I am doind wrong?

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

Posted: Thursday 01 June 2017 21:55
by corbin
Coldman wrote: Could you please add Gas Sensor to Domoticz, logs:
Thanks, have added to https://github.com/corbinmunce/domoticz

Setting it as a smoke detector, type same as the actual smoke detector. Anyone know if there is a more suitable device type for Gas?

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

Posted: Thursday 01 June 2017 21:58
by Coldman
corbin wrote:
Coldman wrote: Could you please add Gas Sensor to Domoticz, logs:
Thanks, have added to https://github.com/corbinmunce/domoticz

Setting it as a smoke detector, type same as the actual smoke detector. Anyone know if there is a more suitable device type for Gas?
Thanks a lot!

UPD: additional information, what's inside:

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

Posted: Thursday 01 June 2017 22:00
by corbin
Mat2Vence wrote:is there anyway to know easily in Domoticz which voltage device correspond to which sensor?
I saw reference of the hex code in another post, but there is nothing matching on my device list... anything I am doind wrong?
If you don't have many devices, try matching them by battery level on the devices page

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

Posted: Thursday 01 June 2017 22:03
by corbin
Swifty wrote:
Not sure if it helps, as I don't seem to have this problem, but if you run 'raspiconfig' I think there is an option in there to 'Wait for network on boot' (or something along those lines).
Maybe try to turn that on so that the network stack is fully up and address allocated etc. before Domoticz starts?
I've added a 5 second delay at startup, hope that helps.

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

Posted: Thursday 01 June 2017 22:04
by Mat2Vence
corbin wrote:If you don't have many devices, try matching them by battery level on the devices page
I have 11 of them... not that easy... anyway I can identify at least some of them.

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

Posted: Friday 02 June 2017 0:14
by Mat2Vence
One more question... is there any easyway to make the alarm ringtone keep ringing for a while? By default, if switch on, it only remains active for a short period of time which is not that practical for using as an alarm siren.
I guess there is no way to do in blocky script and I should go though lua, isn't it?

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

Posted: Friday 02 June 2017 3:21
by ben53252642
My smoke detector has arrived, this is appearing in the Domoticz status logs:

2017-06-02 11:02:44.854 2017-06-02 11:02:44.854 XiaomiGateway: unhandled model: smoke

I can't see the smoke detector in the devices list, I've rebooted the Domoticz server twice.

Build 3.7602

Any ideas?