Search found 1112 matches

by dannybloe
Tuesday 23 January 2018 12:50
Forum: dzVents Lua Framework
Topic: Historical temperature only 4 hours.
Replies: 3
Views: 73

Re: Historical temperature only 4 hours.

I removed this fixed limit in 2.4.0. So, if you do not specify a limit then it will be fixed to 100 but if you do, then that amount is taken.
by dannybloe
Tuesday 23 January 2018 11:54
Forum: dzVents Lua Framework
Topic: Historical temperature only 4 hours.
Replies: 3
Views: 73

Re: Historical temperature only 4 hours.

Right now there is a maximum of 100 items that can be stored in an historical variable to make sure things keep performing. For every event the entire historical set is read from disk (it's just a text file). So if this gets too big things might get slow. After all it's not intended to be a database...
by dannybloe
Monday 22 January 2018 19:10
Forum: dzVents Lua Framework
Topic: set user variable fails when -webroot is used
Replies: 5
Views: 266

Re: set user variable fails when -webroot is used

You will have to wait for 2.4 to be merged in beta. DzVents is tightly locked to a Domoticz build.
by dannybloe
Monday 22 January 2018 10:55
Forum: dzVents Lua Framework
Topic: Device Array Help.
Replies: 7
Views: 172

Re: Device Array Help.

I just tested it here and if you do myDevice.close() or myDevice.open() it should work. What it does though is it sends an On/Off command to Domoticz. So you can also do: myDevice.setState('On') or 'Off'.
by dannybloe
Monday 22 January 2018 8:12
Forum: dzVents Lua Framework
Topic: All scripts are written when only change 1 script
Replies: 2
Views: 102

Re: All scripts are written when only change 1 script

Patches to the C++ code are happily accepted ;-)
by dannybloe
Monday 22 January 2018 8:07
Forum: dzVents Lua Framework
Topic: Device Array Help.
Replies: 7
Views: 172

Re: Device Array Help.

So setState(‘open’) or something like that doesn’t work?
by dannybloe
Saturday 20 January 2018 18:16
Forum: LUA
Topic: dzVents - possible to get text of a text device?
Replies: 16
Views: 208

Re: dzVents - possible to get text of a text device?

Then the plugin creates a wrong device. It shouldn’t be a switch but a text device or a custom device.
by dannybloe
Saturday 20 January 2018 18:08
Forum: LUA
Topic: dzVents - possible to get text of a text device?
Replies: 16
Views: 208

Re: dzVents - possible to get text of a text device?

Ah. That explains. There is no adapter for thus device in dzVents. Is it a read-only device that only show the current state in Dimoticz or can you also control it? If so, how? (from script)
by dannybloe
Saturday 20 January 2018 18:01
Forum: LUA
Topic: dzVents - possible to get text of a text device?
Replies: 16
Views: 208

Re: dzVents - possible to get text of a text device?

What kind of device is this? How did it end up in Domoticz?
by dannybloe
Saturday 20 January 2018 17:05
Forum: LUA
Topic: dzVents - possible to get text of a text device?
Replies: 16
Views: 208

Re: dzVents - possible to get text of a text device?

Actually, you should not have to revert to using rawData. Can you post the dump() results here?
by dannybloe
Saturday 20 January 2018 17:03
Forum: dzVents Lua Framework
Topic: switchOff().afterMin(10)
Replies: 3
Views: 140

Re: switchOff().afterMin(10)

Nope, you can't unfortunately.
by dannybloe
Saturday 20 January 2018 9:05
Forum: dzVents Lua Framework
Topic: switchOff().afterMin(10)
Replies: 3
Views: 140

Re: switchOff().afterMin(10)

In the upcoming 2.4 you should be able to do domoticz.notify().afterMin(10).
by dannybloe
Thursday 18 January 2018 22:00
Forum: dzVents Lua Framework
Topic: dzVents timer with switch
Replies: 9
Views: 231

Re: dzVents timer with switch

Read the troubleshooting section in the docs.
by dannybloe
Thursday 18 January 2018 9:51
Forum: dzVents Lua Framework
Topic: triggerInfo.trigger for device change?
Replies: 6
Views: 156

Re: triggerInfo.trigger for device change?

Looks good to me, give it a try.. hire some burglars perhaps to help...
by dannybloe
Wednesday 17 January 2018 17:28
Forum: LUA
Topic: On/off thermostate script in Lua or Dzvents?
Replies: 1
Views: 93

Re: On/off thermostate script in Lua or Dzvents?

dzVents is Lua but with a data model helping you to interact with everything that comes from Domoticz. But all the code you write is pure 100% Lua.
by dannybloe
Wednesday 17 January 2018 10:36
Forum: dzVents Lua Framework
Topic: Device Array Help.
Replies: 7
Views: 172

Re: Device Array Help.

So, without looking too deep into your code I'd do it with a dummy switch: return { on = { devices = { 'door', 'window' } }, execute = function(dz, item) if (dz.devices('door').active or dz.devices('window').active) then dz.devices('openEntries').switchOn().checkFirst() -- update dummy switch else d...
by dannybloe
Wednesday 17 January 2018 9:55
Forum: dzVents Lua Framework
Topic: Using a variable as a setpoint?
Replies: 8
Views: 248

Re: Using a variable as a setpoint?

Then it's probably something like this: return { on = { devices = { 'Sleepmode' }, }, execute = function(domoticz) if (domoticz.devices('Sleepmode').state == 'On' then domoticz.devices('LivingRoomLight').switchOff() local nightTimeSetpoint = domoticz.variables('Night_temp').value domoticz.devices('T...
by dannybloe
Tuesday 16 January 2018 17:57
Forum: dzVents Lua Framework
Topic: .forMin() no longer working
Replies: 4
Views: 131

Re: .forMin() no longer working

Not before the PR gets merged. It’s ready though.
by dannybloe
Tuesday 16 January 2018 17:02
Forum: dzVents Lua Framework
Topic: afterSec(x)
Replies: 24
Views: 1471

Re: afterSec(x)

Ah, yeah, uf curse. Just checking if you were paying attention here :-p
by dannybloe
Tuesday 16 January 2018 15:59
Forum: dzVents Lua Framework
Topic: .forMin() no longer working
Replies: 4
Views: 131

Re: .forMin() no longer working

Yes, that's a bug in Domoticz. We fixed that in the pull-request for dzVents 2.4.