Since a couple of beta builds (I think since around 20 September) I'm receiving eventsystem errors when trying to switch on/off a group selector via Dzvents.
What I try to do is:
domoticz.groups('MyGroup').switchOn() or domoticz.groups('MyGroup').switchOff()
This works perfectly fine, but still I reveive following error in the logfile:
Error: EventSystem: in /home/pi/domoticz/scripts/dzVents/runtime/dzVents.lua: /home/pi/domoticz/scripts/dzVents/runtime/Utils.lua:61: attempt to compare string with number
This used to work fine a couple of beta builds ago.
Is there something maybe changed in Dzvents to cause this behaviour ?
Dzvents error eventsystem Utils.lua
Moderator: leecollings
-
- Posts: 129
- Joined: Saturday 01 October 2016 14:48
- Target OS: Raspberry Pi / ODroid
- Domoticz version: LastBeta
- Location: Italy BG
- Contact:
Re: Dzvents error eventsystem Utils.lua
Hi iam in the same situation. Any issue for this error log?
Inviato dal mio GT-I9301I utilizzando Tapatalk
Inviato dal mio GT-I9301I utilizzando Tapatalk
Master (pi3) - MB sensors + Dummy + Sysfs gpio + 1 NodOn MSP-3 + 1 Aeotec DSB28 Energy Meter + 3 Danfoss RS Room + 7 Danfoss Z Thermostat + 1 Swiid Inter + 9 FGS222
Slave01 (pi2) - MB sensors + Dummy + Weather Underground + 2 FGS223 + 1 FGWPE/F
Slave01 (pi2) - MB sensors + Dummy + Weather Underground + 2 FGS223 + 1 FGWPE/F
-
- Posts: 1355
- Joined: Friday 29 August 2014 11:26
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Ermelo
- Contact:
Re: Dzvents error eventsystem Utils.lua
Do you have a custom log section in one of your scripts? It's trying to compare the script's log level and it appears to be a string and not a number. Can you check this?
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
-
- Posts: 82
- Joined: Saturday 13 December 2014 21:20
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Dzvents error eventsystem Utils.lua
Below the script that I'm triggering when pushing my switch:
The group that I'm switching off includes a device which is then triggered by the following script:
The variable that I'm setting in the script above is a string value.
All works fine, but just giving an error message in the log
If I put 'domoticz.groups('Deur bijkeuken').switchOff()' in comment, I have no error anymore, but then offcourse it doesn't do what I want it to do.
Code: Select all
return {
active = true,
on = {
devices = {
'Schakelaar Keuken Boven',
'Schakelaar Keuken Beneden',
'Schakelaar Keuken Boven Dim',
'Schakelaar Keuken Beneden Dim'
}
},
execute = function(domoticz, mySwitch)
local now = os.date("%H:%M")
if (mySwitch.state == 'On') then
domoticz.log('Deur Keuken Op Slot',domoticz.LOG_FORCE)
domoticz.notify(now..' Deur Keuken','Op Slot',domoticz.PRIORITY_NORMAL,domoticz.SOUND_NONE,domoticz.NSS_PUSHOVER)
domoticz.groups('Deur bijkeuken').switchOff()
end
end
}
Code: Select all
return {
active = true,
on = {
devices = {
'Slot Deur Bijkeuken'
}
},
execute = function(domoticz, mySwitch)
if (mySwitch.state == 'Closed') then
domoticz.variables('DeurKeuken').set('OpSlot')
end
if (mySwitch.state == 'Open') then
domoticz.variables('DeurKeuken').set('NietOpSlot')
end
end
}
All works fine, but just giving an error message in the log
If I put 'domoticz.groups('Deur bijkeuken').switchOff()' in comment, I have no error anymore, but then offcourse it doesn't do what I want it to do.
-
- Posts: 139
- Joined: Thursday 05 June 2014 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: 's-Hertogenbosch, NL
- Contact:
Re: Dzvents error eventsystem Utils.lua
I have the same error and i check the time when the error came. I only run a blocky on that time!!!??!!
-
- Posts: 139
- Joined: Thursday 05 June 2014 10:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: 's-Hertogenbosch, NL
- Contact:
Re: Dzvents error eventsystem Utils.lua
With the last Beta problems are gone!!
Who is online
Users browsing this forum: No registered users and 1 guest