Search found 16 matches
- Wednesday 02 August 2017 10:57
- Forum: dzVents
- Topic: problems with Persistent data when upgrading to 2.2.0 [SOLVED]
- Replies: 7
- Views: 967
Re: problems with Persistent data when upgrading to 2.2.0 [SOLVED]
I found the problem! It turned out to be a change of the API how to get windgust! Old: local vindgust = (domoticz.devices('Wind').windgust) New: local vindgust = (domoticz.devices('Wind').gust) When the script has run without any fault, then the _xxx.lua is created in data folder! Thanks for your ...
- Wednesday 02 August 2017 10:15
- Forum: dzVents
- Topic: problems with Persistent data when upgrading to 2.2.0 [SOLVED]
- Replies: 7
- Views: 967
Re: problems with Persistent data when upgrading to 2.2.0
Sorry, removed some uncomment code.... -- ------------------------------------ -- Hantering av display -- -- ------------------------------------ return { active = true, on = { timer = { 'every minute' } }, data = { barometer_old = {initial=0}, balja_old = {initial=0}, utetemp_old = {initial=0 ...
- Wednesday 02 August 2017 9:31
- Forum: dzVents
- Topic: problems with Persistent data when upgrading to 2.2.0 [SOLVED]
- Replies: 7
- Views: 967
Re: problems with Persistent data when upgrading to 2.2.0
Of course! -- ------------------------------------ -- Hantering av display -- -- ------------------------------------ return { active = true, on = { timer = { 'every minute' } }, data = { barometer_old = {initial=0}, balja_old = {initial=0}, utetemp_old = {initial=0}, vindgust_old = {initial=0 ...
- Wednesday 02 August 2017 9:10
- Forum: dzVents
- Topic: problems with Persistent data when upgrading to 2.2.0 [SOLVED]
- Replies: 7
- Views: 967
problems with Persistent data when upgrading to 2.2.0 [SOLVED]
Hi, First of all, big thanks for your hard work on Dzvents! Yesterday I upgraded my Domoticz to 3.8153 release. Then, after adjusted my scripts to 2.xx req I have problems with persistent data in my scripts. It seems like the _xxx.lua scripts not beeing created in the Data folder. Would be glad if ...
- Thursday 12 January 2017 6:53
- Forum: dzVents
- Topic: problems with Persistent data [SOLVED]
- Replies: 8
- Views: 2194
Re: problems with Persistent data [SOLVED]
Correct, thx!Doler wrote:It would already have worked if you had changedintoCode: Select all
if (barometer) ~= (barometer_old) then
. No special need to put it into a local variable other than nicer code.Code: Select all
if (barometer) ~= (domoticz.data.barometer_old) then
- Wednesday 11 January 2017 22:03
- Forum: dzVents
- Topic: problems with Persistent data [SOLVED]
- Replies: 8
- Views: 2194
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 ...
- Wednesday 11 January 2017 17:49
- Forum: dzVents
- Topic: problems with Persistent data [SOLVED]
- Replies: 8
- Views: 2194
Re: problems with Persistent data
That was included in my first code, but when it didn't work, I'll tried to take it away.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
- Wednesday 11 January 2017 17:13
- Forum: dzVents
- Topic: problems with Persistent data [SOLVED]
- Replies: 8
- Views: 2194
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 ...
- Wednesday 11 January 2017 16:28
- Forum: dzVents
- Topic: problems with Persistent data [SOLVED]
- Replies: 8
- Views: 2194
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 ...
- Saturday 07 January 2017 22:29
- Forum: dzVents
- Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
- Replies: 337
- Views: 74649
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=command¶m ...
- Saturday 07 January 2017 20:07
- Forum: dzVents
- Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
- Replies: 337
- Views: 74649
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=command¶m ...
- Saturday 07 January 2017 19:30
- Forum: dzVents
- Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
- Replies: 337
- Views: 74649
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=command¶m ...
- Saturday 10 December 2016 14:44
- Forum: dzVents
- Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
- Replies: 337
- Views: 74649
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 ...
- Saturday 10 December 2016 14:31
- Forum: dzVents
- Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
- Replies: 337
- Views: 74649
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 ...
- Saturday 10 December 2016 14:22
- Forum: dzVents
- Topic: Introducing dzVents - Domoticz Lua file based event scripting made e-z!
- Replies: 337
- Views: 74649
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
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
- Sunday 22 February 2015 9:28
- Forum: MySensors
- Topic: MySensors - Gateway to Domoticz
- Replies: 318
- Views: 166542
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 ...