Search found 1107 matches

by jvdz
Tuesday 14 August 2018 18:32
Forum: LUA
Topic: Sharing : Afval kalendar in text sensor
Replies: 73
Views: 9942

Re: Sharing : Afval kalendar in text sensor

... but that doesn't support the Deventer link rron needs. ;)
by jvdz
Tuesday 14 August 2018 16:15
Forum: LUA
Topic: Sharing : Afval kalendar in text sensor
Replies: 73
Views: 9942

Re: Sharing : Afval kalendar in text sensor

You have a PM.
by jvdz
Tuesday 14 August 2018 15:32
Forum: LUA
Topic: Sharing : Afval kalendar in text sensor
Replies: 73
Views: 9942

Re: Sharing : Afval kalendar in text sensor

Hoi Ron,
The script needs adapting for that website as it returns a totally different output!
I will have a look to see whether I can adapt a version I have made.

Jos
by jvdz
Monday 13 August 2018 12:14
Forum: LUA
Topic: Sharing : Afval kalendar in text sensor
Replies: 73
Views: 9942

Re: Sharing : Afval kalendar in text sensor

The command to run the lua script is:

Code: Select all

lua script_time_afvalwijzer.lua
Try that and see what it says.

Jos
by jvdz
Saturday 11 August 2018 20:44
Forum: Zigbee
Topic: Zigbee2MQTT
Replies: 38
Views: 2427

Re: Zigbee2MQTT

This is an On/Off switch ... right? What did you specify in the formula for the field values in Node-red? Jos Edit: Just tested with a MotionSensor dummy switch and this worked: var msg; msg.payload = {}; msg.payload.idx = 435 ; var batt = 50; msg.payload.nvalue = 1 ; msg.payload.svalue = "On"; msg....
by jvdz
Friday 10 August 2018 22:10
Forum: Bugs and Problems
Topic: cannot add user for login
Replies: 5
Views: 152

Re: cannot add user for login

Try restarting Domoticz after you created the new user. I had that issue too and "believe" it was resolved after a restart of domoticz.

Jos
by jvdz
Friday 10 August 2018 9:37
Forum: LUA
Topic: [Solved] How to treat nil value returned by otherdevices_svalues
Replies: 3
Views: 101

Re: How to trat nil value returned by otherdevices_svalues

something like this:

Code: Select all

if otherdevices_svalues['Kitchen'] ~= nil then
	T, RH = otherdevices_svalues['Kitchen']:match("([^;]+);([^;]+)")
else
	-- put here your the actions in case it is nil
end
Jos
by jvdz
Thursday 09 August 2018 16:19
Forum: Others
Topic: MQTT Battery Level Not Working
Replies: 4
Views: 612

Re: MQTT Battery Level Not Working

Replied to your github post, but I am pretty sure the "switchlight" mqtt command doesn't interpret the battery variable and you need to change it to "udevice" command as shown in my answer in github.

Jos
by jvdz
Sunday 05 August 2018 14:01
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 302
Views: 46726

Re: dtgbot - Domoticz TeleGram BOT

Any change to got this working with channels? I 've pushed an update to the github repository for both the "master" branch, using the keyboard menus as the "Menu_Inline" branch to support channel messages. I've found out that channels do not support keyboard menus, so DTGMENU will be disabled in th...
by jvdz
Sunday 05 August 2018 11:13
Forum: LUA
Topic: get power value and gas value from a json
Replies: 4
Views: 121

Re: get power value and gas value from a json

No, the variable you use to store the devicename in your script. Something like this: commandArray = {} powerUsageName = uservariables['UV_StroomSensorName'] ToonIP = uservariables['UV_ToonIP'] DomoticzIP = uservariables['UV_DomoticzIP'] json = assert(loadfile "/home/domoticz/scripts/lua/JSON.lua")(...
by jvdz
Sunday 05 August 2018 10:46
Forum: LUA
Topic: get power value and gas value from a json
Replies: 4
Views: 121

Re: get power value and gas value from a json

You are using the variable powerUsage for both the devicename and the actual value, so the deviceupdate first parameter doesn't contain the proper IDX, since the name is changed to the found consumption value.

Jos
by jvdz
Friday 03 August 2018 14:53
Forum: Third party and supplementary tools
Topic: dtgbot - Domoticz TeleGram BOT
Replies: 302
Views: 46726

Re: dtgbot - Domoticz TeleGram BOT

I will have a look at this as that shouldn't be too hard to add. (His famous last words :D )

Jos
by jvdz
Friday 03 August 2018 9:20
Forum: LUA
Topic: Lua using old variable value
Replies: 7
Views: 179

Re: Lua using old variable value

I think your issues is simply: You do something like: commandArray = {} commandArray['Variable:Test']='1' print(uservariables["Test"]) return commandArray That will not work as the commands you put in commandArray are handed back to the event system at the script end and will then be performed by th...
by jvdz
Thursday 02 August 2018 22:49
Forum: LUA
Topic: Lua using old variable value
Replies: 7
Views: 179

Re: Lua using old variable value

When/how do you print it? Within the same script you put in the CommandArray entry?

Jos
by jvdz
Wednesday 01 August 2018 17:13
Forum: Z-Wave
Topic: Confused about which device belong to which zwave-node
Replies: 29
Views: 4427

Re: Confused about which device belong to which zwave-node

Check with F12 in Chrome whether the source looks correct as it is really a pretty simple change to the page generation for the Zwave devices.

Jos
by jvdz
Wednesday 01 August 2018 17:05
Forum: Z-Wave
Topic: Confused about which device belong to which zwave-node
Replies: 29
Views: 4427

Re: Confused about which device belong to which zwave-node

This patch is part for the current release & beta, but it should appear right away after you clear the browser cache and refresh the page.
No other changes required. ;)

Jos
by jvdz
Saturday 28 July 2018 21:29
Forum: LUA
Topic: Simple IF - THEN not working
Replies: 5
Views: 264

Re: Simple IF - THEN not working

That is easy to resolve too. :D Just use this format for the commandarray entries: local aircoValueVaneZKval2 = tonumber(aircoValueVaneZKval) if aircoValueVaneZKval2 == 10 then commandArray[#commandArray + 1] = {['UpdateDevice'] = "739|0|50"} else aircoValueVaneZKval2 = aircoValueVaneZKval2 * 10 com...
by jvdz
Saturday 28 July 2018 17:18
Forum: Blockly
Topic: Re: Script stopt working :cry: | RESOLVED
Replies: 6
Views: 239

Re: Script stopt working :cry:

As StanHD said: Do not change the If since that one is correct and will mess things up when changed!

Jos
by jvdz
Saturday 28 July 2018 15:47
Forum: Blockly
Topic: Re: Script stopt working :cry: | RESOLVED
Replies: 6
Views: 239

Re: Script stopt working :cry:

You have an impossible test in the ElseIf: The time can never be greater then 23:08 and less then 07:15.
Guess the and needs to be an or?

Jos
by jvdz
Saturday 28 July 2018 12:29
Forum: LUA
Topic: json.lua give 403 forbidden
Replies: 2
Views: 129

Re: json.lua give 403 forbidden

That isn't a issue with json.lua but rather your http:// request returns a 403 in stead of a JSON table.
Guess you need to check the URL you use to get this data you put into the json.decode() statement.

Jos