Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

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

Post by DAVIZINHO »

Mat2Vence wrote: Thursday 01 June 2017 21:20 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?
hi, do you find any method to see which voltage device corresponde to which sensor??
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

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

Post by Mace »

Anybody knows if the neo coolcam WR01ZE-Z works with the Xiaomi Gateway (2)?
jannl
Posts: 625
Joined: Thursday 02 October 2014 6:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.2
Location: Geleen
Contact:

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

Post by jannl »

That's a zwave plug, won't work with the Xiaomi gateway
Luigi87
Posts: 79
Joined: Thursday 17 March 2016 14:58
Target OS: Linux
Domoticz version:
Location: Pijnacker, the Netherlands
Contact:

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

Post by Luigi87 »

I will try to update to a beta tonight for the support of the water sensor.
I have read you should remove and add the gateway again to the system.

What is the best way to prevent I lose my sensors in Domoticz?
Mace
Posts: 65
Joined: Monday 21 August 2017 19:52
Target OS: Windows
Domoticz version: 3.8153
Location: Rhoon
Contact:

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

Post by Mace »

jannl wrote: Monday 09 October 2017 13:17 That's a zwave plug, won't work with the Xiaomi gateway
Check! Thanks!!!
Luigi87
Posts: 79
Joined: Thursday 17 March 2016 14:58
Target OS: Linux
Domoticz version:
Location: Pijnacker, the Netherlands
Contact:

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

Post by Luigi87 »

Are there here more with problems in the voltage feedback from the Xiaomi devices?
From 9-10-2017 in am not getting updates on the voltage sensors. ( I have done an update to the latest beta that evening)
(an soft reset of the Gateway has not fixed it).

I am running the beta: 3.8563

and firmware on the gateway:
Version code: 149
Zigbee: 20
Fw_ver: 1.4.1_150

Maybe they are some ideas here to fix this.
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

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

Post by DAVIZINHO »

Luigi87 wrote: Monday 09 October 2017 15:58 I will try to update to a beta tonight for the support of the water sensor.
I have read you should remove and add the gateway again to the system.

What is the best way to prevent I lose my sensors in Domoticz?
uff!. its necesary remove the gateway?. not exist other method?
Luigi87
Posts: 79
Joined: Thursday 17 March 2016 14:58
Target OS: Linux
Domoticz version:
Location: Pijnacker, the Netherlands
Contact:

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

Post by Luigi87 »

DAVIZINHO wrote: Wednesday 11 October 2017 12:01
Luigi87 wrote: Monday 09 October 2017 15:58 I will try to update to a beta tonight for the support of the water sensor.
I have read you should remove and add the gateway again to the system.

What is the best way to prevent I lose my sensors in Domoticz?
uff!. its necesary remove the gateway?. not exist other method?
No apparently not, I have updated to the beta version. and after some while I was recognized by Domoticz.
But I did something wrong, so I had to rollback to an backup from ealier that day.
And after this the voltage sensors aren't updated anymore.
DAVIZINHO
Posts: 234
Joined: Sunday 27 August 2017 18:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Spain
Contact:

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

Post by DAVIZINHO »

Luigi87 wrote: Wednesday 11 October 2017 12:53
DAVIZINHO wrote: Wednesday 11 October 2017 12:01
Luigi87 wrote: Monday 09 October 2017 15:58 I will try to update to a beta tonight for the support of the water sensor.
I have read you should remove and add the gateway again to the system.

What is the best way to prevent I lose my sensors in Domoticz?
uff!. its necesary remove the gateway?. not exist other method?
No apparently not, I have updated to the beta version. and after some while I was recognized by Domoticz.
But I did something wrong, so I had to rollback to an backup from ealier that day.
And after this the voltage sensors aren't updated anymore.
ok ok, i keep waiting for the nex stable release.
thanks for the info!!!
martijnm
Posts: 26
Joined: Thursday 04 February 2016 13:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

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

Post by martijnm »

My Gateway LED is flashing Red and I don't know why. Does anyone know why it is flashing? I cannot turn it off. When changing the light to a different color, it immediately starts flashing red again.. I've checked the app and it's logs, nothing seems to be wrong. Any clues?
Luigi87
Posts: 79
Joined: Thursday 17 March 2016 14:58
Target OS: Linux
Domoticz version:
Location: Pijnacker, the Netherlands
Contact:

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

Post by Luigi87 »

martijnm wrote: Friday 13 October 2017 8:09 My Gateway LED is flashing Red and I don't know why. Does anyone know why it is flashing? I cannot turn it off. When changing the light to a different color, it immediately starts flashing red again.. I've checked the app and it's logs, nothing seems to be wrong. Any clues?
That's the alarm mode on the gateway. Do you have set an alarm on? watersensor in your system or smoke detector?
Please check you settings in one of these sensors if alarm is checked on.
resetting the gateway was a pain in the ..... I am not sure anymore how i did this. Maby if the alarm in sensor is set of and it reporting a safe situation back the alarm flashing will stop.
martijnm
Posts: 26
Joined: Thursday 04 February 2016 13:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

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

Post by martijnm »

It might have been the water sensor then, but I don't see any leakage in the logs...Mysterious.... I've powered down the gateway and back up again, now the flashing is gone.
Luigi87
Posts: 79
Joined: Thursday 17 March 2016 14:58
Target OS: Linux
Domoticz version:
Location: Pijnacker, the Netherlands
Contact:

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

Post by Luigi87 »

martijnm wrote: Friday 13 October 2017 15:29 It might have been the water sensor then, but I don't see any leakage in the logs...Mysterious.... I've powered down the gateway and back up again, now the flashing is gone.
Check the setting of your water sensor. There is a setting I which you can divine to send an alarm to the gateway. I have this one also and had to switch of this setting.
whatisk
Posts: 27
Joined: Sunday 15 October 2017 6:13
Target OS: Linux
Domoticz version: 3.9224
Location: Australia
Contact:

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

Post by whatisk »

joebar wrote: Friday 24 February 2017 12:43 I also prefer lua and especially the dzVents framework in lua. So much more control..
the 'on' part controls at what circumstances the script runs, so in this case you can say it should react on the switch, but you can also say only on the switch between 10 and 15 hour and on mon, tue, fri what ever..

Code: Select all

return {
	active = true,
		on = 'Xiaomi Wireless switch'	-- which switch?
	},
	execute = function (domotics,switch)
		local light = 'Xiaomi RGB Gateway'	-- which light?

		if (switch.state == 'Click') then
			light.toggleSwitch()	-- toggle on/off every time
		elseif (switch.state == 'Double Click') then
			-- do something else
		elseif (switch.state == 'Long Click') then
			-- and again someting else
		end
	end -- end execute part
} -- end
I am new to Domoticz (installed on a Synology NAS) and have a Xiaomi Gateway, wireless switch, smart switch, door sensor and motion sensor.
I have been playing around trying to learn how to do stuff with both Blocky and dzVents.
I can get extremely simple events working in Blocky - essentially turn on the gateway light when wireless switch is clicked. However would like to do more complex things obviously.
I have tried the quoted dzVents script as an example, however when I try and use it, when I click or anything else, the light on the gateway doesn't toggle. I have enabled the additional logged through the variable and can see that the click of the switch is recognised:
{"cmd":"report","model":"switch","sid":"158d0001a9d2e9","short_id":38265,"data":"{\"status\":\"click\"}"}

After watching some of the tutorial video I have amended the above script to:

Code: Select all

return {
	active = true, -- set to false to disable this script
	on = {
	    devices = {
	        'Xiaomi Wireless Switch'
	   },
	},
	execute = function (domoticz,switch)
		local light = 'Xiaomi RGB Gateway'	-- which light?
		if (switch.state == 'Click') then
			light.toggleSwitch()	-- toggle on/off every time
		elseif (switch.state == 'Double Click') then
			light.toggleSwitch()   -- do something else
		elseif (switch.state == 'Long Click') then
			light.toggleSwitch()   -- and again someting else
		end
	end -- end execute part
} -- end
I am getting the following error in the log:

Code: Select all

Error: dzVents: Error: An error occured when calling event handler test5
Error: dzVents: Error: ...domoticz/var/scripts/dzVents/generated_scripts/test5.lua:11: attempt to call field 'toggleSwitch' (a nil value)
Have I done something wrong?

EDIT: Have gotten it working :-)
fabiotodesco
Posts: 6
Joined: Wednesday 12 July 2017 10:27
Target OS: Linux
Domoticz version: 3.8153
Contact:

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

Post by fabiotodesco »

corbin wrote: Friday 06 October 2017 22:41
fabiotodesco wrote: Wednesday 04 October 2017 13:22 HI, thanks for te answer but the firewalll of windows is disable, but i have a mikrotik firewall thath control the network. i don't understand this multicast story can you explain me?

Thanks a lot
Can't help you specifically with your hardware, but you can test on your windows pc by running wireshark and see if the UDP packets are visible on your network. Example of a UDP packet when clicking a Xiaomi button:packets.JPG
Thanks Corbin...i solved with bridge to my lan and wifi. In some lan all is worked fine.
Stanleyk
Posts: 23
Joined: Tuesday 05 September 2017 1:09
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Stanleyk »

Hello,
I have got now a few wall switches from xiaomi. wired switch working well with domoticz. I can switch on/off light. But how I can use double wireless switch for device connected to 433 rfcom ? I see this switch like switch selector. In edit are some lines for runing scripts. So I must make script for on and script for off device ? something like : if selector is value 20 and device is off then device on, if selector is value 20 and device is on then device off ?

and also I add this switches to domoticz and from this time stop refresh a temperature from xiaomi temperature meters. I have 5 of this. One work but 4 stop work. Can help me somebody with this ? what can I do for check communication ?
Andree
Posts: 74
Joined: Wednesday 07 June 2017 11:19
Target OS: Windows
Domoticz version:
Contact:

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

Post by Andree »

Hi to all, i've follow the guide in wiki and i've add a second gateway in my configuration.
The new Gateway have been add and the devices attached with this new Gateway have been recognized by domoticz (with the name of OLD gateway don't know if this is normal)
The problem is that: since I added the second smart plugs (connected to the first one) sometimes they do not respond and the lights and sounds of the two Gateway almost never work.
I find these errors in the log when I try to activate a smart plug and it does not work

Code: Select all

2017-10-18 12:31:36.332 User: Admin initiated a switch command (435/Power Cam Stufa/Off)
2017-10-18 12:31:36.488 Error: XiaomiGateway: unable to write command - Invalid Key
2017-10-18 12:31:36.488 XiaomiGateway: SendMessageToGateway failed on first attempt, will try again
2017-10-18 12:31:36.754 Error: XiaomiGateway: unable to write command - Invalid Key 
Thx
phoxy84
Posts: 3
Joined: Wednesday 18 October 2017 16:13
Target OS: OS X
Domoticz version:
Contact:

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

Post by phoxy84 »

Maybe a stupid question, but I did not find the answer yet. When I enable developer mode on the Gateway, will my automatisation settings in the gateway be gone, or still there? I want to experiment with Domoticz but want to be sure that the settigns in MiHome are still there. So I can experiment with just one bulb.

And when I eneable developer mode and connect the Gateway to Domoticz, can I still also use the MiHome app to control my smart home stuff?

Sorry, and thanks.
CaesarPL
Posts: 104
Joined: Tuesday 08 November 2016 14:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Poland
Contact:

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

Post by CaesarPL »

phoxy84 wrote: Wednesday 18 October 2017 16:28 And when I eneable developer mode and connect the Gateway to Domoticz, can I still also use the MiHome app to control my smart home stuff?
Yes, sure. I use both, whenever I want.
HW:Raspberry PiB+,Pi3,PiB,RFLink,FA20RF,DCS-930L,DCS-935L,Clarus switches,RF Temp sensors,Owl Micro+,Mi Flora,Kerui,Yeelight,Xiaomi,Broadlink RMM3,Alexa
SF:Jessie,Dmtcz 3.8153,Logitech Media srv,PiCorePlayers,Dashticz,Max2Play,InfluxDB,Grafana,HABridge
phoxy84
Posts: 3
Joined: Wednesday 18 October 2017 16:13
Target OS: OS X
Domoticz version:
Contact:

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

Post by phoxy84 »

Great, thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest