Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

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 »

I have recently gotten another wireless switch (the ones with click, double click, long press). It added to the gateway and showed in Domoticz and works fine. The battery level shows under devices, however when I amended one of my events scripts to give a warning when the battery is low, I get the following when testing

Code: Select all

2017-12-08 17:55:00.513 Error: dzVents: Error: An error occured when calling event handler batt test2
2017-12-08 17:55:00.513 Error: dzVents: Error: ...icz/var/scripts/dzVents/generated_scripts/batt test2.lua:8: attempt to compare nil with number
Yet my other wireless switch and other devices work fine. All I did to add the new one was copy what I had from the other. Any ideas as to why the new one is giving the error?

Script (with test figures) is:

Code: Select all

return {
	active = true,
	on = {
		timer = {
		    'at 18:16 on fri'
		},
	},
	execute = function(domoticz,dummy)
		local garagemotion = domoticz.devices('Xiaomi Motion Sensor')
		local garagesensor = domoticz.devices('Xiaomi Door Sensor')
		local switch1 = domoticz.devices('Xiaomi Switch 1')
		local switch2 = domoticz.devices('Xiaomi Switch 2')
		if (garagemotion.batteryLevel < 10) then
			domoticz.email('Garage Motion Sensor Battery', 'Garage Motion Sensor battery is low.', '<email address>')
		end
		if (garagesensor.batteryLevel < 10) then
			domoticz.email('Garage Door Sensor Battery', 'Garage Door Sensor battery is low.', '<email address>')
		end
		if (switch1.batteryLevel < 10) then
			domoticz.email('Switch 1 Battery', 'Switch 1 battery is low.', '<email address>')
		end
		if (switch2.batteryLevel < 97) then
		    domoticz.email('Switch 2 Battery', 'Switch 2 battery is low.', '<email address>')
		end
	end
}
Chakkie
Posts: 33
Joined: Wednesday 23 December 2015 11:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

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

Post by Chakkie »

Hi guys,

I have just added a motion sensor (Aqara) to the gateway. In Domoticz I found the voltage and the lux sensor in the Devices tab. But there is not motion switch present. Does anyone have the same issue and how to fix this??

Or may be is the lux sensor from the gateway and the voltage is from the switch. And that Domoticz has not discovered the Motion Sensor yet.

If true, do I have to remove Motion sensor in the Xiaomi App and add the device again??

https://www.aliexpress.com/item/New-Upd ... eLevelAB=0
Domo.JPG
Domo.JPG (98.94 KiB) Viewed 3566 times
glsf91
Posts: 58
Joined: Tuesday 14 November 2017 21:56
Target OS: Linux
Domoticz version:
Contact:

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

Post by glsf91 »

Chakkie wrote: Sunday 10 December 2017 1:54 Hi guys,

I have just added a motion sensor (Aqara) to the gateway. In Domoticz I found the voltage and the lux sensor in the Devices tab. But there is not motion switch present. Does anyone have the same issue and how to fix this??
If you are running Stable version you have to switch to beta version.
erich
Posts: 4
Joined: Monday 04 December 2017 21:05
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by erich »

Can anyone please confirm whether the support of 2 xiaomi gateways is still only in beta version or it has been released in the latest stable version?
Does anyone know if this is still only in beta or has been released in the stable version?

Thanks
Eric
Chakkie
Posts: 33
Joined: Wednesday 23 December 2015 11:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands
Contact:

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

Post by Chakkie »

glsf91 wrote: Sunday 10 December 2017 9:06
Chakkie wrote: Sunday 10 December 2017 1:54 Hi guys,

I have just added a motion sensor (Aqara) to the gateway. In Domoticz I found the voltage and the lux sensor in the Devices tab. But there is not motion switch present. Does anyone have the same issue and how to fix this??
If you are running Stable version you have to switch to beta version.
Thanks that is why I don't see the motion sensor in Domoticz. So I have to wait for the next stable or go straight to the beta.
User avatar
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?

Post by corbin »

multiple gateway support is in the beta only
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
jelleeelco
Posts: 61
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by jelleeelco »

mayyam wrote: Saturday 09 December 2017 10:26 Edit Device "Televisie Verbruik" and set "Energy read" to "Computed"
hi Mayyam,
I tried that already but it doesn't make a difference... do you have this setup working?
mayyam
Posts: 47
Joined: Saturday 14 January 2017 11:29
Target OS: Linux
Domoticz version: 4.11333
Location: Poland
Contact:

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

Post by mayyam »

jelleeelco wrote:
mayyam wrote: Saturday 09 December 2017 10:26 Edit Device "Televisie Verbruik" and set "Energy read" to "Computed"
hi Mayyam,
I tried that already but it doesn't make a difference... do you have this setup working?
Yes

____
may

_______________
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
jelleeelco
Posts: 61
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by jelleeelco »

That's promising...would you mind making some screenshots? Like the one I had plus one from the adjustment view of the plug?
mayyam
Posts: 47
Joined: Saturday 14 January 2017 11:29
Target OS: Linux
Domoticz version: 4.11333
Location: Poland
Contact:

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

Post by mayyam »

jelleeelco wrote:That's promising...would you mind making some screenshots? Like the one I had plus one from the adjustment view of the plug?
Sorry, its from smarphone, i'm not at my computer now.ImageImageImage

____
may
Last edited by mayyam on Tuesday 12 December 2017 0:51, edited 1 time in total.
_______________
- Dell FX-160 / Ubuntu 16.04
- RFLink 433Mhz / NRF 2.4GHz
- 2x Xiaomi Gateway
- different species of ESP8266
jelleeelco
Posts: 61
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by jelleeelco »

Thanks May. That's exactly what I have atm... What I'm looking for is cumulative over a period of time, not just for one day.

So in case the consumption on day one is 1 Kw, day two 3 Kw, then I wan to see a line from day 1 = 1, day 2=4 (1 from day one and three fom day 2), etc.
willie-p
Posts: 34
Joined: Friday 12 July 2013 14:19
Target OS: Windows
Domoticz version:
Location: Netherlands
Contact:

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

Post by willie-p »

Hello guys,

I'm already quite the happy owner of the Xiaomi gateway and recently bought the smoke alarm, next to the sensors I already got.
Now I want to trigger de smoke alarm manual with a lua script, however I'm not able to.

I receive the following messages:

2017-12-10 18:34:58.182 User: Admin initiated a switch command (76/Xiaomi Smoke Detector /On)
2017-12-10 18:34:58.333 Error: XiaomiGateway: unable to write command - Unsupported device
2017-12-10 18:34:58.333 XiaomiGateway: SendMessageToGateway failed on first attempt, will try again
2017-12-10 18:34:58.583 Error: XiaomiGateway: unable to write command - Unsupported device

Does anyone know what to do?

Kind regards,
Will
Nanite
Posts: 1
Joined: Friday 25 November 2016 19:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by Nanite »

anyone have experience using the new Xiami Aqara IP camera with built in gateway? could be an interesting alternative for the regular home suite hub.

https://xiaomi-mi.com/ip-cameras/xiaomi ... ion-white/
jelleeelco
Posts: 61
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by jelleeelco »

Ok... I got a weird issue and I hope someone can help me.

My Gateway didn't reach the whole house, so I added a second one. I thought it it would be more stable to have a the second gateway being linked to a new domoticz system on a new PI. THen this PI, called Domoticz_Slave, was added to Domoticz (on the first pi).

All was working fine, but now I see in the Domoticz_Slave pi also ALL the Xiaomi devices from the Master PI.

Can anyone tell me how that is possible?? Can I just remove them?
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 »

jelleeelco wrote: Monday 11 December 2017 22:36 Ok... I got a weird issue and I hope someone can help me.

My Gateway didn't reach the whole house, so I added a second one. I thought it it would be more stable to have a the second gateway being linked to a new domoticz system on a new PI. THen this PI, called Domoticz_Slave, was added to Domoticz (on the first pi).

All was working fine, but now I see in the Domoticz_Slave pi also ALL the Xiaomi devices from the Master PI.

Can anyone tell me how that is possible?? Can I just remove them?
i tried this before and i can´t make it works fine.
Exact problem like you
ChopCZ
Posts: 10
Joined: Monday 27 November 2017 9:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by ChopCZ »

ChopCZ wrote: Monday 27 November 2017 9:16
sincze wrote: Sunday 24 September 2017 13:11 DIM the white LED to any level of the Xiaomi Gateway is that possible? Any other colour I am able to DIM to the level I want, except White.
Hi, I am having the same issue.
Anyone was able to solve this?

I am using my Gateway with motion sensors as nightlight and I realy need to change the DIM level to custom values.
The original Mi Home is able to change level of white light and even can do fluent light up. I mean it seamlessly increases the brightness level to desired value in short time period and thats really cool effect. I have tryed to do that in domoticz python script but domoticz cannot change the brightness as fluently as the gateway itself.
Hi guys,

I apologize for repeating my question but I was unable to find the answer.
Is this an issue in the gateway plugin or hardware limitation that I can not change the brightness of the white light?

The plugin for yeelight bulb can do this...

Thanks
jelleeelco
Posts: 61
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by jelleeelco »

DAVIZINHO wrote: Monday 11 December 2017 22:43

i tried this before and i can´t make it works fine.
Exact problem like you
I found something interesting. I had the following:

- Domoticz Master connected to Gateway_1
- Domoticz Slave connected to Gateway_2
- Domoticz Slave connected to Domoticz master via Remote server

==> this setup gave issues. All the devices were visible in both Domoticz systems, causing all my scripts on Domoticz Master to fail. So I did the following:

- Deleted domoticz_remote server from Domoticz Master.
- Deleted Gateway_2 from Domoticz_Slave.
- Rebooted both systems

==> so there is NO connection between the domoticz systems.

Then added Gateway_2 again to Domoticz Slave. AGAIN.. all the devices from Gateway_1 also started to pop up! This made me think: both gateways are added in my MiHome app under the same account. It looks like the app is sharing both gateways.

So I tested this by removing again the gateway_2 from the domoticz_slave. Then shutdown the Domoticz_slave. I did NOTHING on the Domoticz Master.

==> ALL Devices from Gateway_2 are visible under Devices in Domoticz Master. I can control them / receive status just like from Gateway_1.

So as far as I can tell, no need for either adding a second Domoticz system or even adding a second gateway in Domoticz. All you have to do is adding a second Gateway in your MiHome app and Domoticz will see it as one. Can anyone confirm this they found the same??
jelleeelco
Posts: 61
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by jelleeelco »

corbin wrote: Sunday 10 December 2017 10:54 multiple gateway support is in the beta only
Hi Corbin,
Please see my post below. I got two gateways in my MiHome app, only in domoticz. Devices from both gateways come to domoticz as if it was from one gateway.

This worked on both beta as well as stable versions of domoticz. As far as I could tell, adding a second gateway only has to happen in the MiHome app, nothing needs to be done in Domoticz.

But please let me know in case I'm wrong!
jelleeelco
Posts: 61
Joined: Wednesday 04 January 2017 15:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by jelleeelco »

jelleeelco wrote: Tuesday 12 December 2017 10:26
corbin wrote: Sunday 10 December 2017 10:54 multiple gateway support is in the beta only
Hi Corbin,
Please see my post below. I got two gateways in my MiHome app, only in domoticz. Devices from both gateways come to domoticz as if it was from one gateway.

This worked on both beta as well as stable versions of domoticz. As far as I could tell, adding a second gateway only has to happen in the MiHome app, nothing needs to be done in Domoticz.

But please let me know in case I'm wrong!
Ahhhh silly me...

It just sees the second Gateway, just as if you would enter a wrong IP/password in the gateway settings. You can see updates when done physically (switch) but not when done from MiHome app. You can also not control the switches from Domoticz.

Is my assumption correct that this setup would work for window sensors, temperature sensors and motion detectors? And then lights/switches on the gateway that is added to Domoticz?
User avatar
mvveelen
Posts: 678
Joined: Friday 31 October 2014 10:22
Target OS: NAS (Synology & others)
Domoticz version: Beta
Location: Hoorn, The Netherlands
Contact:

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

Post by mvveelen »

Anyone who has a link to a Xiaomi wall switch which I can use to switch a light with (220V) and which sends a signal to the gateway AND which I can use in Europe in a regular flush-mounted box (about 76mm diameter) ? I see some switches, but they don't seem to fit in the Dutch boxes I think.
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests