Search found 12 matches

by gus
Thursday 12 January 2017 7:53
Forum: dzVents Lua Framework
Topic: problems with Persistent data [SOLVED]
Replies: 8
Views: 459

Re: problems with Persistent data [SOLVED]

Doler wrote:It would already have worked if you had changed

Code: Select all

if (barometer) ~= (barometer_old) then
into

Code: Select all

if (barometer) ~= (domoticz.data.barometer_old) then
. No special need to put it into a local variable other than nicer code.


Correct, thx!
by gus
Wednesday 11 January 2017 23:03
Forum: dzVents Lua Framework
Topic: problems with Persistent data [SOLVED]
Replies: 8
Views: 459

Re: problems with Persistent data

In that case I wouldn't know. This is a working script I use that is similar to what you want, maybe you find something that can help you return { active = true, on = { ['timer'] = 'every 30 minutes' }, data = { prevtbath = {initial=15} }, execute = function(domoticz) local tempd = domoticz.devices...
by gus
Wednesday 11 January 2017 18:49
Forum: dzVents Lua Framework
Topic: problems with Persistent data [SOLVED]
Replies: 8
Views: 459

Re: problems with Persistent data

elmortero wrote:I don't know if it is compulsary, but I always give an initial value, even if It is nil.
That is how is described on the dzvents github page

Verstuurd vanaf mijn SM-G903F met Tapatalk


That was included in my first code, but when it didn't work, I'll tried to take it away.
by gus
Wednesday 11 January 2017 18:13
Forum: dzVents Lua Framework
Topic: problems with Persistent data [SOLVED]
Replies: 8
Views: 459

Re: problems with Persistent data

Ok, some complements! This is th values from my log: 2017-01-11 17:12:00.942 LUA: barometer_old value: 976 2017-01-11 17:12:00.943 LUA: barometer value: 976 This is my code: -- ------------------------------------ -- Hantering av display -- -- ------------------------------------ return { active = t...
by gus
Wednesday 11 January 2017 17:28
Forum: dzVents Lua Framework
Topic: problems with Persistent data [SOLVED]
Replies: 8
Views: 459

problems with Persistent data [SOLVED]

Hi, I'm trying to work with Persistent data, but for some reason I don't get it to work the way that I want to. Even if barometer_old contains the same value (980) as presented in barometer the if state triggers. This is my code, please advice a LUA dummies... data = { barometer_old = {}, }, if (bar...
by gus
Saturday 07 January 2017 23:29
Forum: dzVents Lua Framework
Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
Replies: 337
Views: 26341

Re: Introducing dzVents - Domoticz Lua file based event scripting made e-z!

Hi All, I having a hard time to update a text device ( "SubType" : "Text") Command that I use: domoticz.devices['Text 1'].updateText(test_text) Error messages: attempt to index field 'Text 1' (a nil value) The JSON command that is working: http://192.168.17.82:8080/json.htm?type...
by gus
Saturday 07 January 2017 21:07
Forum: dzVents Lua Framework
Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
Replies: 337
Views: 26341

Re: Introducing dzVents - Domoticz Lua file based event scripting made e-z!

Hi All, I having a hard time to update a text device ( "SubType" : "Text") Command that I use: domoticz.devices['Text 1'].updateText(test_text) Error messages: attempt to index field 'Text 1' (a nil value) The JSON command that is working: http://192.168.17.82:8080/json.htm?type...
by gus
Saturday 07 January 2017 20:30
Forum: dzVents Lua Framework
Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
Replies: 337
Views: 26341

Re: Introducing dzVents - Domoticz Lua file based event scripting made e-z!

Hi All, I having a hard time to update a text device ( "SubType" : "Text") Command that I use: domoticz.devices['Text 1'].updateText(test_text) Error messages: attempt to index field 'Text 1' (a nil value) The JSON command that is working: http://192.168.17.82:8080/json.htm?type=...
by gus
Saturday 10 December 2016 15:44
Forum: dzVents Lua Framework
Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
Replies: 337
Views: 26341

Re: Introducing dzVents - Domoticz Lua file based event scripting made e-z!

You should use domoticz.switchGroup('Innelampor Basement', 'On') (see Domoticz methods) Well, I tried that as well domoticz.switchGroup('Innelampor Basement', 'On') but no changes... It works for me. Do you have 'Enable http fetch' set to True in Settings? If so, did you create the group just short...
by gus
Saturday 10 December 2016 15:31
Forum: dzVents Lua Framework
Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
Replies: 337
Views: 26341

Re: Introducing dzVents - Domoticz Lua file based event scripting made e-z!

Hi! Trying to switch on groups with dzvents but don't get it to work... Shouldn't this work: domoticz.groups['Innelampor Basement'].switchOn() Please advice /Rickard You should use domoticz.switchGroup('Innelampor Basement', 'On') (see Domoticz methods) Well, I tried that as well domoticz.switchGro...
by gus
Saturday 10 December 2016 15:22
Forum: dzVents Lua Framework
Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
Replies: 337
Views: 26341

Re: Introducing dzVents - Domoticz Lua file based event scripting made e-z!

Hi!

Trying to switch on groups with dzvents but don't get it to work...

Shouldn't this work:
domoticz.switchGroups('Innelampor Basement', 'On')


Please advice


/Rickard
by gus
Sunday 22 February 2015 10:28
Forum: MySensors
Topic: MySensors - Gateway to Domoticz
Replies: 309
Views: 70766

Re: MySensors - Gateway to Domoticz

Will be fixed in next beta another issue, Domoticz doesn't create device for relayactuator. it's only create device for relaywithbuttonactuator skecth. I think because RelayActuator only send sketch once while domoticz will add device after few reading. Any updates regarding this? Someone who manag...

Go to advanced search