Search found 5 matches

by coppo23
Wednesday 30 March 2016 10:01
Forum: LUA
Topic: Lua script commandarray cannot update a thermostat setpoint
Replies: 1
Views: 1101

Re: Lua script commandarray cannot update a thermostat setpoint

UPDATE: I have now found a work around using commandarray[OpenURL] options function issueURLCommand (URLString) print(string.format("Index %s URL = [%s]",commandArrayIndex ,URLString)) commandArray[commandArrayIndex] = {['OpenURL']= URLString } commandArrayIndex = commandArrayIndex + 1 end and if ...
by coppo23
Tuesday 29 March 2016 14:05
Forum: LUA
Topic: Lua script commandarray cannot update a thermostat setpoint
Replies: 1
Views: 1101

Lua script commandarray cannot update a thermostat setpoint

I am using the latest domoticz on a Pi. (3.4834) I have a problem that I cannot update a virtual thermostat setpoint using commandarray and am hoping I have done something silly that someone else will spot! The script will run for more than 10 seconds. If I change the setpoint to type temperature ...
by coppo23
Monday 28 March 2016 16:56
Forum: LUA
Topic: Commandarray Event queue question - using 'off after' being queued up
Replies: 0
Views: 411

Commandarray Event queue question - using 'off after' being queued up

Please can anyone help explaining the queue logic for commandarray 'off after' events? I have a zoned heating system - mostly running OK now. Every minute it checks the zone status and gets the current required setpoint and temperature. If a radiator was on and should be off I issue a command of the ...
by coppo23
Tuesday 22 March 2016 16:07
Forum: LUA
Topic: Lua String skipping white spaces and substituting unexpected characters
Replies: 3
Views: 1620

Re: Lua String skipping white spaces and substituting unexpected characters

Thanks - escaping the ampersand in issue a worked OK and have implemented that as per your suggestion. In the second one I am using the space(or underscores) both visually in Domoticz and programmatically in Mysensors. For the latter I have just done a simple substitution space for underscore and ...
by coppo23
Tuesday 22 March 2016 13:35
Forum: LUA
Topic: Lua String skipping white spaces and substituting unexpected characters
Replies: 3
Views: 1620

Lua String skipping white spaces and substituting unexpected characters

I'm running Domoticz Version: 3.4834 on a Raspberry Pi. I have run into a couple of string problems I don't understand, These could well be beginners silly issues - so I apologize in advance. I would appreciate any helpful advice as I am completely stuck with these issues at the moment. Issue a ...