Search found 1012 matches

by dannybloe
Saturday 16 December 2017 12:07
Forum: dzVents Lua Framework
Topic: dzVents method for setcolbrightnessvalue
Replies: 2
Views: 75

Re: dzVents method for setcolbrightnessvalue

It is implemented in the upcoming 2.4 release. There you can do stuff like setRGB().
by dannybloe
Friday 15 December 2017 21:41
Forum: dzVents Lua Framework
Topic: sunrise / sunset trigger
Replies: 2
Views: 117

Re: sunrise / sunset trigger

That is strange. There is no code that should trigger four events. Are you sure that you don't have the script double on your file system? Can you show the log?
by dannybloe
Thursday 14 December 2017 20:53
Forum: Temperature and Weather
Topic: dzVents - event on temperature increase
Replies: 3
Views: 101

Re: dzVents - event on temperature increase

Just update your virtual sensor. If you use dzVents 2.3 then updating the sensor should trigger the script: return { active = true, logging = { level = domoticz.LOG_DEBUG, marker = "TEST_" }, on = { devices = { 'temperature1', 'myVirtualTemperatureDevice' }, }, execute = function(domoticz, device) i...
by dannybloe
Thursday 14 December 2017 17:54
Forum: dzVents Lua Framework
Topic: Solved: Strange dzVents error
Replies: 3
Views: 114

Re: Strange dzVents error

Nothing.. it's a bug somewhere in the eventsystem that we will be fixed when we finalize dzVents 2.4.
by dannybloe
Thursday 14 December 2017 17:05
Forum: Temperature and Weather
Topic: dzVents - howto get Thermostat value
Replies: 3
Views: 89

Re: dzVents - howto get Thermostat value

I don't remember that I created a domoticz.debug() method. Didn't you mean domoticz.log()?
by dannybloe
Thursday 14 December 2017 17:04
Forum: Temperature and Weather
Topic: dzVents - event on temperature increase
Replies: 3
Views: 101

Re: dzVents - event on temperature increase

It should call your function immediately as soon as the temperature changes. Something is wrong if that doesn't happen. Turn dzVents into debug logging mode and carefully watch the domoticz.log.
by dannybloe
Thursday 14 December 2017 11:47
Forum: dzVents Lua Framework
Topic: dzVents.lua has been running for more than 10 seconds
Replies: 6
Views: 225

Re: dzVents.lua has been running for more than 10 seconds

yes, that is very likely the problem. Maybe you should detach the process immediately when executing. I believe you can add a & to the command:
os.execute('/home/pi/domoticz/scripts/Peter/speech.sh "Someone arrive. Scene Evening activatedf" &)
by dannybloe
Thursday 14 December 2017 9:43
Forum: dzVents Lua Framework
Topic: start a notify after afterSec / forMin
Replies: 4
Views: 124

Re: start a notify after afterSec / forMin

Sending notifications doesn't support delays as far as I know. What you can do is: return { on = { devices = { 'test', 'GatewayMP3' } }, execute = function(domoticz, device) if (device.name == 'test' and device.active) then domoticz.devices('test').switchOff() domoticz.devices('GatewayMP3').switchOn...
by dannybloe
Wednesday 13 December 2017 21:24
Forum: dzVents Lua Framework
Topic: start a notify after afterSec / forMin
Replies: 4
Views: 124

Re: start a notify after afterSec / forMin

What do you mean exactly?
by dannybloe
Saturday 09 December 2017 11:39
Forum: Z-Wave
Topic: Extending the range of Aeotec Z-Stick Gen5
Replies: 5
Views: 483

Re: Extending the range of Aeotec Z-Stick Gen5

you should be able to see some change in the connectivity graph before and after I guess.
by dannybloe
Friday 08 December 2017 11:13
Forum: dzVents Lua Framework
Topic: Persistent data as a variable
Replies: 7
Views: 237

Re: Persistent data as a variable

Interesting. I can do the same for my washing machine.
by dannybloe
Friday 08 December 2017 9:46
Forum: dzVents Lua Framework
Topic: Persistent data as a variable
Replies: 7
Views: 237

Re: Persistent data as a variable

Ok, here is my simplified version (for dzVents 2.3.0). Couple of comments. You don't have to use the changed devices collection anymore (I'm removing it from the documentation for 2.4.0) as there is always only one device in that collection and that's the device that was changed (second parameter of...
by dannybloe
Thursday 07 December 2017 22:02
Forum: dzVents Lua Framework
Topic: Persistent data as a variable
Replies: 7
Views: 237

Re: Persistent data as a variable

Well, it's not entirely correct what I wrote. You are using historical data so that's a bit different: Adding: domoticz.data.myVar.add({ a=1, b=2, c=3}) Using: local latest = domoticz.data.myVar.getLatest() print(latest.b) -- update latest.b = latest.b + 1 domoticz.data.myVar.add( latest ) -- add a ...
by dannybloe
Thursday 07 December 2017 21:55
Forum: dzVents Lua Framework
Topic: Persistent data as a variable
Replies: 7
Views: 237

Re: Persistent data as a variable

There’s no need actually. Just create a table with all your data and put that in your persistent variable. ...data.myvar.add({ a=1, b=2 })

You can access it like: ...data.myVar.a or data.myVar.b.
by dannybloe
Thursday 07 December 2017 20:58
Forum: dzVents Lua Framework
Topic: Dimmer level
Replies: 7
Views: 334

Re: Dimmer level

dimTo(100) should work.
by dannybloe
Wednesday 06 December 2017 23:39
Forum: dzVents Lua Framework
Topic: How do i get hours:minutes notation?
Replies: 1
Views: 108

Re: How do i get hours:minutes notation?

That’s not possible as raw is a string (text) and you cannot do numberlike comparisons with it. So you have to stick with what you had.
by dannybloe
Wednesday 06 December 2017 17:17
Forum: dzVents Lua Framework
Topic: dzVents.lua has been running for more than 10 seconds
Replies: 6
Views: 225

Re: dzVents.lua has been running for more than 10 seconds

Are you doing http requests in one of your scripts. Clearly one of your scripts doesn't end.
by dannybloe
Tuesday 05 December 2017 20:22
Forum: dzVents Lua Framework
Topic: light switch not off with SwitchOn().forMIN(2)
Replies: 9
Views: 357

Re: light switch not off with SwitchOn().forMIN(2)

That’s easy to check in the log. Set dzVents in debug mode helps as well.
by dannybloe
Tuesday 05 December 2017 15:31
Forum: dzVents Lua Framework
Topic: light switch not off with SwitchOn().forMIN(2)
Replies: 9
Views: 357

Re: light switch not off with SwitchOn().forMIN(2)

So what exactly doesn't work?