Solved: Strange dzVents error

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

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

Solved: Strange dzVents error

Post by heggink »

A whole lot of errors in the log as follows:
2017-12-14 05:08:20.092 Error: dzVents: Error: There is no last update info for
with no device mentioned

2 scripts seem to cause it which are quite similar:

Code: Select all

return {                                                                                                                                                                                                                         
        active = true,                                                                                                                                                                                                           
        on = {                                                                                                                                                                                                                   
                devices = { 'HS *' }                                                                                                                                                                                             
        },                                                                                                                                                                                                                       
        execute = function(domoticz)                                                                                                                                                                                             
                                                                                                                                                                                                                                 
                local message                                                                                                                                                                                                    
                local someone_home = 'Off'                                                                                                                                                                                       
                                                                                                                                                                                                                                 
                -- first filter on name staring with HS                                                                                                                                                                         
                local homestatus = domoticz.devices().filter(function(device)                                                                                                                                                                   
                        local name = device.name                                                                                                                                                                                 
                        return (string.sub(name,1,3) == 'HS ')                                                                                                                                                                   
		end)                                                                                                                                                                                                             
                                                                                                                                                                                                                               
                -- then loop over the results                                                                                                                                                                                    
                homestatus.forEach(function(sensor)
			if (sensor.state == 'On') then                                                                                                                                                                           
                                someone_home = 'On'
			end
		end)                                                                                                                                                                                                             
                                                                                                                                                                                                                                 
                if (someone_home == 'On') then                                                                                                                                                                                   
                        domoticz.devices('SomeoneIsHome').switchOn()                                                                                                                                                             
                else                                                                                                                                                                                                             
                        domoticz.devices('SomeoneIsHome').switchOff()                                                                                                                                                            
                end                                                                                                                                                                                                              
        end                                                                                                                                                                                                                      
} 
What am I doing wrong here?

H
Last edited by heggink on Thursday 14 December 2017 19:58, edited 1 time in total.
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 :-)
dannybloe
Posts: 1355
Joined: Friday 29 August 2014 11:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Ermelo
Contact:

Re: Strange dzVents error

Post by dannybloe »

Nothing.. it's a bug somewhere in the eventsystem that we will be fixed when we finalize dzVents 2.4.
Creator dzVents - RPi3, loads of zwave devices, esp8266, evohome.
User avatar
heggink
Posts: 989
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Strange dzVents error

Post by heggink »

Ah, great. I was going bonkers over 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 :-)
User avatar
heggink
Posts: 989
Joined: Tuesday 08 September 2015 21:44
Target OS: Raspberry Pi / ODroid
Domoticz version: 12451
Location: NL
Contact:

Re: Solved: Strange dzVents error

Post by heggink »

@dannybloe: what's the planning on that?
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 :-)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest