Xiaomi Smart Home Suite (very cheap) compatibilty?

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

Moderator: leecollings

User avatar
heggink
Posts: 972
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

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

Post by heggink »

Trying to read through all the messages, I couldn't find which plugs report power usage and whether domoticz reports it. Appreciate your feedback on this.
Docker in Truenas scale, close to latest beta
DASHTICZ 🙃
RFXCOM, zwavejs2mqtt, zigbee2mqtt,
P1 meter & solar panel
Google home, Wifi Cams motion detection
Geofence iCloud, Bluetooth & Wifi ping
Harmony hub, Nest, lots more :-)
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

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

Post by madrian »

Domoticz V3.8153

One interesting thing that battery for Temp is 100, Temp+Humidity is 89. Which is real and why is there two different value?
Domoticz.jpg
Domoticz.jpg (272.73 KiB) Viewed 3020 times

I grouped devices together. It's very hard to pair for example Voltage with it's corresponding device. The ID is different. Also pressure is indicated as separate device, but there is now a Temp+Hum+Baro device in Domoticz.

How often are temperature devices updated? It is not possible to set a 5 minute interval?
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

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

Post by madrian »

It is not possible to use sea-level pressure? All meteorologists, weather station usually using sea level pressure and not the raw pressure.

http://keisan.casio.com/exec/system/1224575267
https://barani.biz/apps/sea-level-pressure/
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 »

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.
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post by sincze »

joebar wrote: Monday 13 November 2017 12:25
sincze wrote:Very nice. Maybe with these items I can use the Xiaomi Smartplug as well without it being sticking out of the wall ;-) :D .
However with tha adapter price tag of around 10 euro's .... the Neo Cool Smartplug Can compete with it as well priced at € 16- €20 euro's

At least it will plug the Gateway much nicer against the wall I think.
Last year found these, ive installed 6 of them and working since Jan. Very flat and way cheaper (with shipping around $2 a piece)

https://www.ebay.com/itm/EU-3-Round-Pin ... 1737610742
Nice fit :D
Many thanks for the tip.

Adapter
Adapter
Xiaomi adapter.jpg (33.36 KiB) Viewed 2816 times
Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

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

Post by madrian »

Gateway's Lux is showing around 300 even in dark. It is normal? :|
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post by sincze »

madrian wrote:Gateway's Lux is showing around 300 even in dark. It is normal? :|
Ha cewl. Did not even notice the gateway has a lux meter. I thought it was the motion sensor that has one. Probably it is the other way around indeed.

Sent from my SM-G925F using Tapatalk

Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
User avatar
sincze
Posts: 1299
Joined: Monday 02 June 2014 22:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 2024.4
Location: Netherlands / Breda Area
Contact:

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

Post by sincze »

sincze wrote:
madrian wrote:Gateway's Lux is showing around 300 even in dark. It is normal? :|
Ha cewl. Did not even notice the gateway has a lux meter. I thought it was the motion sensor that has one. Probably it is the other way around indeed.

Sent from my SM-G925F using Tapatalk
Mine says 333 lux .. Battery 100%..

Sent from my SM-G925F using Tapatalk

Pass2php
LAN: RFLink, P1, OTGW, MySensors
USB: RFXCom, ZWave, Sonoff 3
MQTT: ZIgbee2MQTT,
ZWAVE: Zwave-JS-UI
WIFI: Mi-light, Tasmota, Xiaomi Shelly
Solar: Omnik, PVOutput
Video: Kodi, Harmony HUB, Chromecast
Sensors: You name it I got 1.
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

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

Post by madrian »

Yes:
Screen-Shot-2017-11-28-23-04-53.png
Screen-Shot-2017-11-28-23-04-53.png (32.84 KiB) Viewed 2789 times
With some light on, in dark it's around 300. But where is this value coming from?
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

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

Post by madrian »

It is not possible to ask temperature from sensors at every xx minutes? At this moment it's updating only, when there is a significant change in the temperature.
misfit
Posts: 18
Joined: Wednesday 29 November 2017 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by misfit »

Version: Beta 3.8755
Platform: Raspberry Pi 2 / Ubuntu Mate 16.04.2
Hardware: Xiaomi Gateway/Sensors

Hello,

Any idea why domoticz does not update xiaomi sensor status? It updates slowly/randomly (door contact, infra), not responsive at all. In Xiaomi's MiHome every sensor updates almost immediately.

The only way i can update sensor status is by restarting domoticz server or by clicking on 'Update' at Setup/Hardware.

I cleared cache on client's browser, connected domoticz server to the same subnet on wifi and added the iptable rules, also checked connection to the xiaomi gateway by long pinging it from domoticz (2-10ms replies). Error log is empty. What else can be the problem? Thank you.
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 »

About the battery statuses not updating anymore: Corbin told me it's not on purpose and he will probably have a look at it this weekend. Hope this will be fixed real soon :)
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
misfit
Posts: 18
Joined: Wednesday 29 November 2017 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by misfit »

Why is that sometimes domoticz just stops reading the motion sensor status? Its updating On-Off-On-Off-On-Off... (when testing, i wait 2 minutes every time for the switch to go off before initiate movement again) then it stops updating and then after some time hell known why its working again all of a sudden.
Also, the off delay for the motion sensor 'switch' is set to 0 ('use sensor time' - that is 1 minute for aqara ms) yet the motion sensor switch set itself off after 2minutes. Why is it 2minutes against the device default 1 minute?

What is the method domoticz using for reading the status from the gateway? Polling with UDP datagramms? Can the problem be network related?
Gonna check it with wshark soon. Any idea?

Gateway and sensor should be ok as using miHome app the status is updating correctly.
Last edited by misfit on Friday 01 December 2017 23:52, edited 3 times in total.
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 »

someone who is having the problem of battery status not updating, please post a screenshot of what you are seeing
Question about the Xiaomi Gateway in Domoticz? Please check the Wiki first: https://www.domoticz.com/wiki/Xiaomi_Gateway_(Aqara)
misfit
Posts: 18
Joined: Wednesday 29 November 2017 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by misfit »

Hmm it seems the multicasted status updates coming from the gateway are much more bulky and not that reliable compared to the updates intended to the xiaomi servers outside. Its sad. At least it turned out that delayed or dropped status updating and other anomalies are not the fault of domoticz and your plugin but the loose handling of multicast status updates by the gateway.

Other possibilities are:
- somehow the router misses some of the multicasted datagramms /packet loss
- linux kernel's firewall on pi dropping datagramms (unlikely)
- domoticz's interface dropped out from the multicast group on the wifi router

*EDIT

Made full reinstall from ubuntu mate 16.04 to raspbian. Now everything looks alright, getting all multicast messages. Not sure what was the problem or it will come up again.
Last edited by misfit on Sunday 03 December 2017 13:24, edited 3 times in total.
misfit
Posts: 18
Joined: Wednesday 29 November 2017 11:03
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by misfit »

*deleted
Last edited by misfit on Saturday 02 December 2017 15:51, edited 3 times in total.
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 »

Corbin directed me in the right direction: the battery statuses have changed a while ago. When you add a User Variable with the name 'XiaomiVoltage' (integer / 0), and restart the Xiaomi hardware, the statuses re-appear :) Thanks, Corbin !

Edit:

Now I'd like to use the right names for the battery statuses, how can I see which device it belongs to? I can partially combine by using the battery status (for instance: 795 is unique, and could be the "Garagedeur (X)"), but there are more than 1 with 83%, so: how ??

Code: Select all

  	4596	Xiaomi GW	191B1B13	1	Xiaomi Voltage	General	Voltage	3.035 V	-	83	Add DeviceRename Device Log	2017-12-02 16:45:29
  	4604	Xiaomi GW	292D5756	1	Xiaomi Voltage	General	Voltage	3.075 V	-	87	Add DeviceRename Device Log	2017-12-02 16:45:23
  	4594	Xiaomi GW	597BFF9E	1	Xiaomi Voltage	General	Voltage	3.005 V	-	80	Add DeviceRename Device Log	2017-12-02 16:44:33
  	4601	Xiaomi GW	5B7FFDCD	1	Xiaomi Voltage	General	Voltage	3.025 V	-	82	Add DeviceRename Device Log	2017-12-02 16:41:31
  	4598	Xiaomi GW	1D5FD3D3	1	Xiaomi Voltage	General	Voltage	2.985 V	-	78	Add DeviceRename Device Log	2017-12-02 16:37:21
  	4603	Xiaomi GW	5F7FEACA	1	Xiaomi Voltage	General	Voltage	3.045 V	-	84	Add DeviceRename Device Log	2017-12-02 16:28:43
  	4602	Xiaomi GW	A7B7D5C4	1	Xiaomi Voltage	General	Voltage	3.015 V	-	81	Add DeviceRename Device Log	2017-12-02 16:26:53
  	4599	Xiaomi GW	87B73610	1	Xiaomi Voltage	General	Voltage	3.015 V	-	81	Add DeviceRename Device Log	2017-12-02 16:24:44
  	4595	Xiaomi GW	191B3B30	1	Xiaomi Voltage	General	Voltage	2.995 V	-	79	Add DeviceRename Device Log	2017-12-02 16:17:48
  	4600	Xiaomi GW	49EBEF64	1	Xiaomi Voltage	General	Voltage	3.015 V	-	81	Add DeviceRename Device Log	2017-12-02 16:14:07
  	4593	Xiaomi GW	17DFDFDA	1	Xiaomi Voltage	General	Voltage	3.035 V	-	83	Add DeviceRename Device Log	2017-12-02 15:56:36
  	4597	Xiaomi GW	4DEDFD9C	1	Xiaomi Voltage	General	Voltage	2.985 V	-	78	Add DeviceRename Device Log	2017-12-02 15:52:26
  	

Code: Select all

  	3453	Xiaomi GW	01586B9E	1	Voordeur (X)	Light/Switch	Switch	Closed	-	80	Set UnusedRename Device Log	2017-12-02 16:13:30
  	3534	Xiaomi GW	011C43D3	1	Dakraam slaapkamer (X)	Light/Switch	Switch	-	78	Set UnusedRename Device Log	2017-12-02 11:16:45
  	3452	Xiaomi GW	0116DFDA	1	Achterdeur (X)	Light/Switch	Switch	Closed	-	83	Set UnusedRename Device Log	2017-12-01 18:42:14
  	4245	Xiaomi GW	01A695C4	1	Raam kledingkamer (X)	Light/Switch	Switch	-	81	Set UnusedRename Device Log	2017-11-27 15:31:19
  	3454	Xiaomi GW	01191B30	1	Garagedeur (X)	Light/Switch	Switch	Closed	-	79	Set UnusedRename Device Log	2017-11-23 14:44:30
  	3533	Xiaomi GW	014DE19C	1	Dakraam badkamer (X)	Light/Switch	Switch	-	78	Set UnusedRename Device Log	2017-10-22 12:24:23
  	3669	Xiaomi GW	0149AB64	1	Raam werkkamer (X)	Light/Switch	Switch	-	81	Set UnusedRename Device Log	2017-09-27 22:23:48
  	3455	Xiaomi GW	01191A13	1	Terrasdeuren (X)	Light/Switch	Switch	-	83	Set UnusedRename Device Log	2017-06-26 22:29:42
  	
RPi3b+/RFXCOM rfxtrx433E/Shelly/Xiaomi Gateway/Philips HUE Lights/Atag Zone One/2 SunnyBoy inverters/AirconWithMe/P1 smartmeter/Domoticz latest Beta
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 »

mvveelen wrote: Saturday 02 December 2017 11:30 Corbin directed me in the right direction: the battery statuses have changed a while ago. When you add a User Variable with the name 'XiaomiVoltage' (integer / 0), and restart the Xiaomi hardware, the statuses re-appear :) Thanks, Corbin !
Maybe add this to the Xiaomi gateway wiki page?
I was also struggling with this.

And with restart Xiaomi hardware, he means not the gateway itself but disable/enable Xiaomi hardware in Domoticz :-)
hekm77
Posts: 45
Joined: Thursday 09 February 2017 18:31
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

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

Post by hekm77 »

mvveelen wrote: Saturday 02 December 2017 11:30 Now I'd like to use the right names for the battery statuses, how can I see which device it belongs to?

Code: Select all

3453	Xiaomi GW	01586B9E	1	Voordeur (X)	Light/Switch
4594	Xiaomi GW	597BFF9E	1	Xiaomi Voltage	General	Voltage

3534	Xiaomi GW	011C43D3	1	Dakraam slaapkamer (X)
4598	Xiaomi GW	1D5FD3D3	1	Xiaomi Voltage	General	Voltage
	
3452	Xiaomi GW	0116DFDA	1	Achterdeur (X)
4593	Xiaomi GW	17DFDFDA	1	Xiaomi Voltage	General	Voltage	
	
4245	Xiaomi GW	01A695C4	1	Raam kledingkamer (X)
4602	Xiaomi GW	A7B7D5C4	1	Xiaomi Voltage	General	Voltage

3454	Xiaomi GW	01191B30	1	Garagedeur (X)
4595	Xiaomi GW	191B3B30	1	Xiaomi Voltage	General	Voltage

3533	Xiaomi GW	014DE19C	1	Dakraam badkamer (X)
4597	Xiaomi GW	4DEDFD9C	1	Xiaomi Voltage	General	Voltage	

3669	Xiaomi GW	0149AB64	1	Raam werkkamer (X)
4600	Xiaomi GW	49EBEF64	1	Xiaomi Voltage	General	Voltage	

3455	Xiaomi GW	01191A13	1	Terrasdeuren (X)
4596	Xiaomi GW	191B1B13	1	Xiaomi Voltage	General	Voltage
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 »

hekm77 wrote: Sunday 03 December 2017 11:23 -cut-
How did you come up with this list? I tend to believe you right away, but I don't see the logic. Maybe you can help me (and others) ?
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 1 guest