Page 2 of 2

Re: Controling Xiaomi Mi Robot with Domoticz

Posted: Saturday 26 August 2017 21:28
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

Re: Controling Xiaomi Mi Robot with Domoticz

Posted: Tuesday 29 August 2017 10:37
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?

Re: Controling Xiaomi Mi Robot with Domoticz

Posted: Tuesday 29 August 2017 11:06
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.

Re: Controling Xiaomi Mi Robot with Domoticz

Posted: Tuesday 29 August 2017 11:10
by mrinner
Check the plugin for Mi Robot: viewtopic.php?f=65&t=19040

Re: Controling Xiaomi Mi Robot with Domoticz

Posted: Tuesday 29 August 2017 11:23
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 :)

Re: Controling Xiaomi Mi Robot with Domoticz

Posted: Wednesday 30 August 2017 8:24
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.

Re: Controling Xiaomi Mi Robot with Domoticz

Posted: Wednesday 30 August 2017 8:27
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.

Re: Controling Xiaomi Mi Robot with Domoticz

Posted: Sunday 10 February 2019 17:37
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?