Page 100 of 123

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

Posted: Sunday 08 October 2017 19:51
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??

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

Posted: Monday 09 October 2017 13:11
by Mace
Anybody knows if the neo coolcam WR01ZE-Z works with the Xiaomi Gateway (2)?

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

Posted: Monday 09 October 2017 13:17
by jannl
That's a zwave plug, won't work with the Xiaomi gateway

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

Posted: Monday 09 October 2017 15:58
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?

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

Posted: Monday 09 October 2017 16:04
by Mace
jannl wrote: Monday 09 October 2017 13:17 That's a zwave plug, won't work with the Xiaomi gateway
Check! Thanks!!!

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

Posted: Wednesday 11 October 2017 11:38
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.

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

Posted: Wednesday 11 October 2017 12:01
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?

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

Posted: Wednesday 11 October 2017 12:53
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.

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

Posted: Wednesday 11 October 2017 23:01
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!!!

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

Posted: Friday 13 October 2017 8:09
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?

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

Posted: Friday 13 October 2017 8:40
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.

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

Posted: Friday 13 October 2017 15:29
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.

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

Posted: Friday 13 October 2017 15:40
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.

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

Posted: Sunday 15 October 2017 6:38
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 :-)

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

Posted: Tuesday 17 October 2017 10:36
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.

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

Posted: Wednesday 18 October 2017 9:49
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 ?

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

Posted: Wednesday 18 October 2017 12:41
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

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

Posted: Wednesday 18 October 2017 16:28
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.

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

Posted: Thursday 19 October 2017 9:27
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.

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

Posted: Thursday 19 October 2017 10:16
by phoxy84
Great, thanks