I`m experiencing some problems with my Domoticz the last few months. I have several Xiaomi devices in my setup, temperature sensors, round switches and door sensors. I have a bunch of scripts to control my (Yeelight) lights, doorbell, Sonoff switches and the alarm.
The last few months i had to restart domoticz several times because the scripts (triggerd by a Xiaomi device) stopped working.....sometimes it takes a week or month, but it also happend that i had to restart twice a day

Code: Select all
2018-11-19 08:31:34.807 Status: LUA: Lamp woonkamer ingeschakeld door wandschakelaar
2018-11-19 08:31:34.808 Status: EventSystem: Script event triggered: Lichtschakelaar woonkamer
I really can`t find where to look for the solution. The are more people (in the Netherlands) with the exact same problem https://gathering.tweakers.net/forum/vi ... e/57097109.
At this moment i`m using version: 4.10199 of Domoticz. Is there anyone willing to help me with this issue? It`s driving my crazy, and my wife gets angry every time she can`t switch on the lights


This is one of the scripts i`m using. "Schakelaar lamp garage" is a round wireless Xiaomi switch and "Garagelamp" is a Sonoff S20 switch:
Code: Select all
commandArray = {}
if (devicechanged['Schakelaar lamp garage'] == 'Click') and (otherdevices['Garage lamp'] == 'Off') then
commandArray['Garage lamp'] = 'On'
print('Lamp garage ingeschakeld door wandschakelaar')
elseif (devicechanged['Schakelaar lamp garage'] == 'Click') and (otherdevices['Garage lamp'] == 'On') then
commandArray['Garage lamp'] = 'Off'
print('Lamp garage uitgeschakeld door wandschakelaar')
end
return commandArray