Search found 920 matches

by dannybloe
Saturday 18 November 2017 15:04
Forum: dzVents Lua Framework
Topic: need some help creating a module or helper
Replies: 5
Views: 128

Re: need some help creating a module or helper

And what is 'variable' in your helper function? Is that a uservariable in Domoticz? Or a dzVents persistent variable? Or do you want your helper function to return a value: return { helpers = { myHelperFunction(someParam) local someValue if (someParam == 1 ) then -- do something someValue = 10 else ...
by dannybloe
Saturday 18 November 2017 9:06
Forum: dzVents Lua Framework
Topic: need some help creating a module or helper
Replies: 5
Views: 128

Re: need some help creating a module or helper

In the documentation there is a section about helper functions. That should help.
by dannybloe
Friday 17 November 2017 9:45
Forum: dzVents Lua Framework
Topic: Logitech Media Server (LMS) dzVents adapter
Replies: 5
Views: 175

Re: Logitech Media Server (LMS) dzVents adapter

I changed the function names a bit as you can see below. Could you write some piece of the documentation here: #### Logitech Media Server - **switchOff()**: *Function*. todo. - **stop()**: *Function*. todo. - **play()**: *Function*. todo. - **pause()**: *Function*. todo. - **setVolume()**: *Function...
by dannybloe
Friday 17 November 2017 9:27
Forum: dzVents Lua Framework
Topic: Logitech Media Server (LMS) dzVents adapter
Replies: 5
Views: 175

Re: Logitech Media Server (LMS) dzVents adapter

Does this device have any specific state information? Can you check this? Put dzVents in debug mode and locate the file scripts/dzVents/domoticzData.lua. Copy/paste the part for the LMS in here.
by dannybloe
Friday 17 November 2017 9:15
Forum: dzVents Lua Framework
Topic: Would like "domoticz.time.matchesRule('at thu')"
Replies: 2
Views: 68

Re: Would like "domoticz.time.matchesRule('at thu')"

This should work:

Code: Select all

domoticz.time.matchesRule('on thu')
I updated the docs for the next version to make this more clear.
by dannybloe
Friday 17 November 2017 9:12
Forum: Other questions and discussions
Topic: Where are LUA and Python scripts from script editor stored?
Replies: 2
Views: 81

Re: Where are LUA and Python scripts from script editor stored?

The dzVents scripts you write using the GUI editor are stored in scripts/dzVents/generated_scripts.
by dannybloe
Wednesday 15 November 2017 16:54
Forum: dzVents Lua Framework
Topic: Initializing tables in the persistent data
Replies: 7
Views: 811

Re: Initializing tables in the persistent data

Well, it doesn't matter where you place the global_data.lua script (either in scripts/dzVents/scripts or in scripts/dzVents/generated_scripts (through the GUI editor). Just as long as there is only one! Lua loads the file based on the order of the package paths but it loads only one. I'll add this t...
by dannybloe
Tuesday 14 November 2017 23:47
Forum: Bugs and Problems
Topic: Unable to enable Dzvents in Setup->Settings->Other
Replies: 10
Views: 273

Re: Unable to enable Dzvents in Setup->Settings->Other

If you know some javascript and how to enable the development tools in for instance Chrome, you can figure out what settings data are sent back to Domoticz when you press Apply (you need to set a breakpoint as the javascript does an immediate reload of the page). When at that breakpoint you can insp...
by dannybloe
Tuesday 14 November 2017 20:35
Forum: Bugs and Problems
Topic: Unable to enable Dzvents in Setup->Settings->Other
Replies: 10
Views: 273

Re: Unable to enable Dzvents in Setup->Settings->Other

Well yes, actually I was also able to get a check back to dZvents by changing theme / emptying appcache and cache but at that point it did not reflect the actual status anymore. So dZvents was enabled even though the box was checked for disabling it and normal event were disabled even though the bo...
by dannybloe
Monday 13 November 2017 16:49
Forum: dzVents Lua Framework
Topic: dzvents: Gas meter - deviation between 'counter' and 'gasUpdate'
Replies: 1
Views: 140

Re: dzvents: Gas meter - deviation between 'counter' and 'gasUpdate'

Interesting indeed. Never noticed this. I will adapt the documentation.
by dannybloe
Monday 13 November 2017 12:02
Forum: LUA
Topic: how can I run a command from a variable?
Replies: 12
Views: 241

Re: how can I run a command from a variable?

Ah, indeed, but only if you have different settings.
by dannybloe
Monday 13 November 2017 11:52
Forum: LUA
Topic: how can I run a command from a variable?
Replies: 12
Views: 241

Re: how can I run a command from a variable?

manjh wrote:
Monday 13 November 2017 11:28
I never expected that it is allowed to use one device twice in a scene!
I don't think you can. A device can be added only once to a scene.
by dannybloe
Monday 13 November 2017 11:38
Forum: dzVents Lua Framework
Topic: Trigger on "Dummy/Usage/Electric" device
Replies: 26
Views: 1314

Re: Trigger on "Dummy/Usage/Electric" device

Have you tried the latest beta?
by dannybloe
Monday 13 November 2017 11:19
Forum: dzVents Lua Framework
Topic: dzVents 2.3.0 released in v3.8551
Replies: 37
Views: 2211

Re: dzVents 2.3.0 released in v3.8551

Guys, let's stick to the topic and post questions in a new separate thread in the forum.
by dannybloe
Monday 13 November 2017 10:13
Forum: dzVents Lua Framework
Topic: Logitech Media Server (LMS) dzVents adapter
Replies: 5
Views: 175

Re: LMS dzVents adapter

I will contact you soon to have this added to the codebase somehow. I think that there is a limitation on how sendCommand works for a specific device in that if you send multiple commands back to Domoticz it only executes the last one. If you want to use command options like afterSec() you have to w...
by dannybloe
Sunday 12 November 2017 20:36
Forum: dzVents Lua Framework
Topic: Need help to understand swtiching on device and timer
Replies: 9
Views: 193

Re: Need help to understand swtiching on device and timer

Please check the documentation as it has examples using device events and timer events in one script.
by dannybloe
Friday 10 November 2017 9:35
Forum: LUA
Topic: Simple Lights on when dark script, Please help!
Replies: 1
Views: 159

Re: Simple Lights on when dark script, Please help!

Have you checked the troubleshooting section in the dzVents documentation? Perhaps you can follow the steps mentioned there.
by dannybloe
Friday 10 November 2017 9:31
Forum: Bugs and Problems
Topic: dzVents 'There is no device with that name or id ...'
Replies: 3
Views: 351

Re: dzVents 'There is no device with that name or id ...'

Interesting.. so far I have not been able to reproduce this. I will try again.
by dannybloe
Friday 10 November 2017 9:27
Forum: dzVents Lua Framework
Topic: Reset a timing event
Replies: 3
Views: 150

Re: Reset a timing event

Yeah, wait for dzVents 2.4.0 (it is in the making now) and it will have a .cancelQueuedCommands() method.
In the meantime, afaik, any new command will also remove the queued commands. So you can try to send a .setState(myDevice.state). That should reset it as well.
by dannybloe
Friday 10 November 2017 9:24
Forum: Bugs and Problems
Topic: DzVents kodiExecuteAddOn not working?
Replies: 2
Views: 95

Re: DzVents kodiExecuteAddOn not working?

Does it work with traditional Lua scripting? By just setting the commandArray?