Hard to say, looking at that code it wouldn't have anything to do with the Xiaomi code, unless it stopped updating the status?Coldman wrote:@Corbin
Hi, after last update, I can't to check status of Smart Plug in Lua script like this commandbefore it worked, could you check out what I'm doing wrong?Code: Select all
print ('SmartPlug02 ' .. devicechanged['SmartPlug02'])
Xiaomi Smart Home Suite (very cheap) compatibilty?
Moderator: leecollings
- 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?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- corbin
- Posts: 463
- Joined: Saturday 20 August 2016 22:57
- Target OS: Windows
- Domoticz version: Beta
- Location: Brisbane, Australia
- Contact:
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Yes please troubleshoot - I don't have these switches to test.deennoo wrote: Got a simple wirless switch not reconize too 86sw1 type too will try it with you github
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- 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?
I changed commandcorbin wrote:Hard to say, looking at that code it wouldn't have anything to do with the Xiaomi code, unless it stopped updating the status?Coldman wrote:@Corbin
Hi, after last update, I can't to check status of Smart Plug in Lua script like this commandbefore it worked, could you check out what I'm doing wrong?Code: Select all
print ('SmartPlug02 ' .. devicechanged['SmartPlug02'])
Code: Select all
print ('*** SmartPlug02 is ' .. otherdevices['SmartPlug02'])
Code: Select all
LUA: SmartPlug02 On
-
- Posts: 476
- Joined: Monday 14 March 2016 13:55
- Target OS: Linux
- Domoticz version: beta
- Location: Rome, Italy
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Hi
very nice job with the Xiaomi Gateway.
I've just got the kit and added the devices to domoticz.
I don't know if there is something more I need to do to have the device to control the RGB light of the gateway.
What should I do since I don't have it in my list?
Thanks
very nice job with the Xiaomi Gateway.
I've just got the kit and added the devices to domoticz.
I don't know if there is something more I need to do to have the device to control the RGB light of the gateway.
What should I do since I don't have it in my list?
Thanks
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
-
- Posts: 4
- Joined: Sunday 22 January 2017 19:03
- Target OS: NAS (Synology & others)
- Domoticz version:
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Hi, I've been following the thread for a few weeks. I have installed domoticz beta in a Freenas jail. The problem is that domoticz reads the sensors only when it started. Then does not update them. Has anyone had this problem?
-
- 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?
simply turn it on/off once manually, and it should be added to the device list.woody4165 wrote:Hi
very nice job with the Xiaomi Gateway.
I've just got the kit and added the devices to domoticz.
I don't know if there is something more I need to do to have the device to control the RGB light of the gateway.
What should I do since I don't have it in my list?
Thanks
-
- Posts: 476
- Joined: Monday 14 March 2016 13:55
- Target OS: Linux
- Domoticz version: beta
- Location: Rome, Italy
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Do you unplug/replug it? I've done it more than one time, and also did the Search for new devices in Domoticz settings, but with no success...
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
-
- 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?
no, simply push the button on it..woody4165 wrote:Do you unplug/replug it? I've done it more than one time, and also did the Search for new devices in Domoticz settings, but with no success...
are you using latest sources from corbin github on linux ? or downloaded beta for Windows?
it might not yet got to the official beta section in domoticz..
-
- Posts: 476
- Joined: Monday 14 March 2016 13:55
- Target OS: Linux
- Domoticz version: beta
- Location: Rome, Italy
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
I see, probably because I'm using domoticz beta, just update btw. I will check corbin github or wait when it will be added in Domoticz.
Thanks!
Thanks!
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
-
- Posts: 68
- Joined: Wednesday 30 December 2015 23:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Poland
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
I have just updated to Domoticz official Beta 3,6437 and when playing with RGBW from Gateway, I sometimes see:
in the log file. Does anyone know what it is?
Code: Select all
XiaomiGateway: Unknown command 17
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.
-
- Posts: 784
- Joined: Wednesday 10 December 2014 13:06
- Target OS: Linux
- Domoticz version: beta
- Location: Bordeaux France
- Contact:
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
Ok done and change to a simple push On (doesn't send double or long)corbin wrote:Yes please troubleshoot - I don't have these switches to test.deennoo wrote: Got a simple wirless switch not reconize too 86sw1 type too will try it with you github
Domoticz stable 3.5877 for real & Domoticz beta for test
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
Rfxtrxe / RFLink / Milight / Yeelight / Tasmota / MQTT / BLE / Zigate
http://domo-attitude.fr
-
- Posts: 62
- Joined: Saturday 31 December 2016 15:33
- Target OS: Linux
- Domoticz version: beta
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
@Corbin
Today i did some research:
1. tried compiled binaries from server on VM guest - binaries works.
2. compiled new kernel on VM guest using kernel .config form server - with new kernel domoticz works on VM guest.
So i did a cocnlusion - kernel is OK.
Captured two packets when i try to switch zigbee plug:
on problem server:
and same operation on working VM guest:
Any ideas? I am sure that poblem is very simple - but do not yave enogh skills to troubleshoot it
Today i did some research:
1. tried compiled binaries from server on VM guest - binaries works.
2. compiled new kernel on VM guest using kernel .config form server - with new kernel domoticz works on VM guest.
So i did a cocnlusion - kernel is OK.
Captured two packets when i try to switch zigbee plug:
on problem server:
Code: Select all
desktop domoticz # tcpdump -X -s 1500 -n -i br0 dst host 192.168.111.105 and src host 192.168.111.254
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br0, link-type EN10MB (Ethernet), capture size 1500 bytes
23:35:50.214286 IP 192.168.111.254.36693 > 192.168.111.105.9898: UDP, length 148
0x0000: 4500 00b0 b933 4000 4011 2051 c0a8 6ffe E....3@[email protected].
0x0010: c0a8 6f69 8f55 26aa 009c 6166 7b22 636d ..oi.U&...af{"cm
0x0020: 6422 3a22 7772 6974 6522 2c22 6d6f 6465 d":"write","mode
0x0030: 6c22 3a22 706c 7567 222c 2273 6964 223a l":"plug","sid":
0x0040: 2231 3538 6430 3030 3131 3761 3138 3822 "158d000117a188"
0x0050: 2c22 7368 6f72 745f 6964 223a 3938 3434 ,"short_id":9844
0x0060: 2c22 6461 7461 223a 227b 5c22 6368 616e ,"data":"{\"chan
0x0070: 6e65 6c5f 305c 223a 5c22 6f66 665c 222c nel_0\":\"off\",
0x0080: 5c22 6b65 795c 223a 5c22 4645 3235 4546 \"key\":\"FE25EF
0x0090: 4644 4131 3233 3044 3135 3741 3143 4638 FDA1230D157A1CF8
0x00a0: 4434 4538 4133 3730 4231 5c22 7d22 207d D4E8A370B1\"}".}
desktop domoticz # tcpdump -X -s 1500 -n -i br0 src host 192.168.111.105 and dst host 192.168.111.254
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on br0, link-type EN10MB (Ethernet), capture size 1500 bytes
23:35:50.216024 IP 192.168.111.105.9898 > 192.168.111.254.36693: UDP, length 79
0x0000: 4500 006b 0eab 0000 ff11 4c1e c0a8 6f69 E..k......L...oi
0x0010: c0a8 6ffe 26aa 8f55 0057 f752 7b22 636d ..o.&..U.W.R{"cm
0x0020: 6422 3a22 7772 6974 655f 6163 6b22 2c22 d":"write_ack","
0x0030: 7369 6422 3a22 3135 3864 3030 3031 3137 sid":"158d000117
0x0040: 6131 3838 222c 2264 6174 6122 3a22 7b5c a188","data":"{\
0x0050: 2265 7272 6f72 5c22 3a5c 2249 6e76 616c "error\":\"Inval
0x0060: 6964 206b 6579 5c22 7d22 7d id.key\"}"}
Code: Select all
localhost ~ # tcpdump -X -s 1500 -n -i enp0s3 dst host 192.168.111.105 and src host 192.168.111.201
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp0s3, link-type EN10MB (Ethernet), capture size 1500 bytes
23:36:25.269233 IP 192.168.111.201.48559 > 192.168.111.105.9898: UDP, length 148
0x0000: 4500 00b0 f935 4000 4011 e083 c0a8 6fc9 E....5@[email protected].
0x0010: c0a8 6f69 bdaf 26aa 009c 6131 7b22 636d ..oi..&...a1{"cm
0x0020: 6422 3a22 7772 6974 6522 2c22 6d6f 6465 d":"write","mode
0x0030: 6c22 3a22 706c 7567 222c 2273 6964 223a l":"plug","sid":
0x0040: 2231 3538 6430 3030 3131 3761 3138 3822 "158d000117a188"
0x0050: 2c22 7368 6f72 745f 6964 223a 3938 3434 ,"short_id":9844
0x0060: 2c22 6461 7461 223a 227b 5c22 6368 616e ,"data":"{\"chan
0x0070: 6e65 6c5f 305c 223a 5c22 6f66 665c 222c nel_0\":\"off\",
0x0080: 5c22 6b65 795c 223a 5c22 3636 3636 4141 \"key\":\"6666AA
0x0090: 3534 3932 4443 3537 3143 3442 3041 3942 5492DC571C4B0A9B
0x00a0: 4233 3839 3946 4542 3039 5c22 7d22 207d B3899FEB09\"}".}
localhost domoticz # tcpdump -X -s 1500 -n -i enp0s3 src host 192.168.111.105 and dst host 192.168.111.201
dropped privs to tcpdump
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on enp0s3, link-type EN10MB (Ethernet), capture size 1500 bytes
23:36:25.271549 IP 192.168.111.105.9898 > 192.168.111.201.48559: UDP, length 118
0x0000: 4500 0092 0ebb 0000 ff11 4c1c c0a8 6f69 E.........L...oi
0x0010: c0a8 6fc9 26aa bdaf 007e c568 7b22 636d ..o.&....~.h{"cm
0x0020: 6422 3a22 7772 6974 655f 6163 6b22 2c22 d":"write_ack","
0x0030: 6d6f 6465 6c22 3a22 706c 7567 222c 2273 model":"plug","s
0x0040: 6964 223a 2231 3538 6430 3030 3131 3761 id":"158d000117a
0x0050: 3138 3822 2c22 7368 6f72 745f 6964 223a 188","short_id":
0x0060: 3936 3633 2c22 6461 7461 223a 227b 5c22 9663,"data":"{\"
0x0070: 7374 6174 7573 5c22 3a5c 226f 6e5c 222c status\":\"on\",
0x0080: 5c22 696e 7573 655c 223a 5c22 315c 227d \"inuse\":\"1\"}
0x0090: 227d "}
- 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?
yes - your key is invalid, probably still due the gateway token not getting updated. Did you try modifying the source code around the UpdateToken?murtadin wrote: Any ideas? I am sure that poblem is very simple - but do not yave enogh skills to troubleshoot it
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- corbin
- Posts: 463
- Joined: Saturday 20 August 2016 22:57
- Target OS: Windows
- Domoticz version: Beta
- Location: Brisbane, Australia
- Contact:
Re: RE: Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
@deennoo, thanks code is merged
@woody4165 and @zorroar, use a packet sniffer to see what messages are going over the network
@woody4165 and @zorroar, use a packet sniffer to see what messages are going over the network
Last edited by corbin on Monday 23 January 2017 6:19, edited 1 time in total.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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?
#define Limitless_SetBrightDown 17mKotek wrote:I have just updated to Domoticz official Beta 3,6437 and when playing with RGBW from Gateway, I sometimes see:in the log file. Does anyone know what it is?Code: Select all
XiaomiGateway: Unknown command 17
What button are you pressing to get that command come through?
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
- 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?
pm me your script so I can try.Coldman wrote: but Smart Plug is not turning on
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- Posts: 87
- Joined: Wednesday 21 December 2016 19:03
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Israel
- Contact:
Re: RE: Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
tried first to make them work, indeed make more sense to have 2 separete control for the dual switches - will try to seperate themdeennoo wrote:Using domoticz beta 3.6395 sending order doesn't work to wall switch.corbin wrote:Great work by the community!deennoo wrote:
Will try your git tonight
Having 2 simples on/off (channel 0 & channel 1)device will make more sense than a selector one.
Got a simple wirless switch not reconize too 86sw1 type too will try it with you github
the single button switches were added few days ago to corbin's github, however i couldnt test them, as i dont have these devices...
-
- Posts: 68
- Joined: Wednesday 30 December 2015 23:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Poland
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
I select RGB switch and press Edit and then Brightness Down button to the right of the color selection.corbin wrote:#define Limitless_SetBrightDown 17mKotek wrote:I have just updated to Domoticz official Beta 3,6437 and when playing with RGBW from Gateway, I sometimes see:in the log file. Does anyone know what it is?Code: Select all
XiaomiGateway: Unknown command 17
What button are you pressing to get that command come through?
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.
- 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?
I'm not seeing these buttons on my dev machine for some reason, but should be able to add in those functions now that brightness control is working.mKotek wrote: I select RGB switch and press Edit and then Brightness Down button to the right of the color selection.
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
-
- Posts: 68
- Joined: Wednesday 30 December 2015 23:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Poland
- Contact:
Re: Xiaomi Smart Home Suite (very cheap) compatibilty?
You can see all of them here: As they are not translated, they might be really new.corbin wrote:I'm not seeing these buttons on my dev machine for some reason, but should be able to add in those functions now that brightness control is working.mKotek wrote: I select RGB switch and press Edit and then Brightness Down button to the right of the color selection.
Brightness up results in XiaomiGateway: Unknown command 16
Disco Mode Up = XiaomiGateway: Unknown command 8
Disco Mode Down = XiaomiGateway: Unknown command 9
Speed Up = XiaomiGateway: Unknown command 12
Speed Down = XiaomiGateway: Unknown command 11
Disco Mode = XiaomiGateway: Unknown command 13
Exclude Lamp = XiaomiGateway: Unknown command 22
Last edited by mKotek on Monday 23 January 2017 7:19, edited 1 time in total.
Michal 'Kotek', greetings from Poland. Zapraszam na mój blog o automatyce domowej po polsku: http://www.ukotka.com.
Who is online
Users browsing this forum: No registered users and 1 guest