Controling Xiaomi Mi Robot with Domoticz

Others (MiLight, Hue, Toon etc...)

Moderator: leecollings

cattoo
Posts: 60
Joined: Sunday 20 September 2015 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3072
Location: Sweden
Contact:

Re: Controling Xiaomi Mi Robot with Domoticz

Post by cattoo »

thps wrote: Saturday 26 August 2017 20:38 thats strange...

did you choose "lua" and "Device" as script options?
Missed the device option. But now it says this. Is there a way to speed it up? When ill run the mirobo COMMAND it takes about 20 seconds before something is happen.

Code: Select all

Error: EventSystem: Warning!, lua script Inga On/Off has been running for more than 10 seconds
thps
Posts: 19
Joined: Monday 26 September 2016 8:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controling Xiaomi Mi Robot with Domoticz

Post by thps »

Mmmh, ist Takes 3-5 seconds in my Raspberry Pi 3.

What so you use? How ist your Domoticz connected to your network?
cattoo
Posts: 60
Joined: Sunday 20 September 2015 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3072
Location: Sweden
Contact:

Re: Controling Xiaomi Mi Robot with Domoticz

Post by cattoo »

thps wrote: Tuesday 29 August 2017 10:37 Mmmh, ist Takes 3-5 seconds in my Raspberry Pi 3.

What so you use? How ist your Domoticz connected to your network?
In the terminal it takes 20 seconds (rpi2) the pi (domoticz) is hardwired.
So something is wrong, when ill use the status script it runs every 30 seconds, should it do that?
This is what i get from status with the LUA script

Code: Select all

2017-08-29 10:58:39.391 Error: EventSystem: Warning!, lua script Inga Status has been running for more than 10 seconds
2017-08-29 10:58:45.376 dzVents: Result:State: Charging
Battery: 100 %
Fanspeed: 77 %
Cleaning since: 0:34:35
Cleaned area: 32.0225 m²
And when ill want to turn on "Inga" (the vaccumcleaner) ill get

Code: Select all

2017-08-29 11:01:08.135 LUA: Device based event fired on 'Inga', value 'Home'
And nothing happens.
mrinner
Posts: 56
Joined: Tuesday 22 August 2017 20:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Belarus
Contact:

Re: Controling Xiaomi Mi Robot with Domoticz

Post by mrinner »

Check the plugin for Mi Robot: viewtopic.php?f=65&t=19040
cattoo
Posts: 60
Joined: Sunday 20 September 2015 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3072
Location: Sweden
Contact:

Re: Controling Xiaomi Mi Robot with Domoticz

Post by cattoo »

mrinner wrote: Tuesday 29 August 2017 11:10 Check the plugin for Mi Robot: viewtopic.php?f=65&t=19040
Thx, i will check it :)
thps
Posts: 19
Joined: Monday 26 September 2016 8:34
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controling Xiaomi Mi Robot with Domoticz

Post by thps »

10 or 20 seconds is way to long for executing in the terminal.

The plugin is also based on python-mirobo, you should first fix this.
cattoo
Posts: 60
Joined: Sunday 20 September 2015 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version: 2.3072
Location: Sweden
Contact:

Re: Controling Xiaomi Mi Robot with Domoticz

Post by cattoo »

I think ill need to do that. Now i cant log on to the webinterface. :evil: It says offline but status says OK. So ill think ill got work to do after my daywork.
tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Controling Xiaomi Mi Robot with Domoticz

Post by tjabas »

the debug option is set to true, does it need to be set to true for it to work in domoticz, or can i turn debug off?
Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 1 guest