Search found 1059 matches

by waaren
Monday 15 October 2018 23:19
Forum: Bugs and Problems
Topic: API query to list all lights for a room
Replies: 6
Views: 112

Re: API query to list all lights for a room

Egregius wrote:
Monday 15 October 2018 19:47
Isn’t it easier to create extra rooms then?
Yes. easier but must be manually maintained and most important.. No Fun.
by waaren
Monday 15 October 2018 23:12
Forum: Bugs and Problems
Topic: API query to list all lights for a room
Replies: 6
Views: 112

Re: API query to list all lights for a room

Interesting approach waaren - I could set this up as a timed script store the info and then pull it via an API. Do you know if you can create user variables on the fly as I would then loop through my rooms and then create a user variable for each room to store desired info. My custom dash is pretty...
by waaren
Monday 15 October 2018 22:44
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

McJohn wrote:
Monday 15 October 2018 22:39
YES! It's working! Perfectly!

Now we have a simple alarm system for simple users with the push of 1 button!

Thank you so much for all your patience, time and work!

:D :) :D
Glad I could help

have Fun !!
by waaren
Monday 15 October 2018 22:26
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

I think I "know" what the problem is: Domoticz (or the Z-Stick) automatically switches off the keyfob after 1 minute. Could you change your script that it only fires (Armed and Disarmed) with the Keyfob On command This should do it . -- Alarm return { on = { devices = { "Keyfob" }}, logging = { lev...
by waaren
Monday 15 October 2018 22:18
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

Thanks for the hint! That did the trick! The Security Panel goes on :D , Dummy Device "SecurityOn" goes on and Variable "Alarm" says On. Edit: it goes automatically off after 1 minute (without a push of the botton)... I don't know the Keyfob device but I suspect it switch to Off automatic (without ...
by waaren
Monday 15 October 2018 21:08
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

Pushed the keyfob button (it sends only an On command). Unfortunately nothing happened; no change of the Variable "Alarm" or the Dummy device AlarmOn, or the Security Panel. Part of the forum control polluted the code. (no character should be there after the last } I fixed it in my previous post. C...
by waaren
Monday 15 October 2018 19:32
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

Could you help us with the right script? (And Armed Away is enough for us). I hope I have the right names. If not please make sure you adjust the script accordingly It is important that you disable the blockly and your Lua script before enabling this one. If not you might get yourself in a similar ...
by waaren
Monday 15 October 2018 14:07
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

Sorry sorry for the wrong number. Changed it to 1 but unfortunately no result :x Can you please try to change the value of the uservariable using the GUI ? As explained in one of my earlier replies the change of the uservariable using Blockly or Lua will not trigger an event (in this case the dzVen...
by waaren
Monday 15 October 2018 13:38
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

McJohn wrote:
Monday 15 October 2018 12:56
Thanks for the explanation.

The ID of the security panel is indeed 148702.
See enclosed screendump.
From what I see on your screenshot the id = 1
by waaren
Monday 15 October 2018 12:32
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

Edit: when we save your dzVents script with trigger All, later on it's automaticly changed to "Device" and every time when we saved it into another type after a refresh it's changed to "Device" again. A dzVents script is not managed in this way. The on = section does determine how the script will b...
by waaren
Monday 15 October 2018 9:37
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

- We tried your dzVents script but then nothing happened with the Domoticz security panel. Or did we have to change the panel name /ID elsewhere in your script? Yes, you have to change the number 1084 to the number of your security device. Sorry if that was not clear We looked also to the different...
by waaren
Monday 15 October 2018 8:27
Forum: Bugs and Problems
Topic: API query to list all lights for a room
Replies: 6
Views: 112

Re: API query to list all lights for a room

I'm creating my own dash for Domoticz - and I have been able to list the rooms via the json api - however I do not see a way to query light devices for a room using the room idx. I did look at the json api and tried but it is returning all devices for the room. Any help would be appreciated. If thi...
by waaren
Monday 15 October 2018 0:10
Forum: Bash / PowerShell / Batch etc.
Topic: Trigger script with arguments
Replies: 2
Views: 83

Re: Trigger script with arguments

Hello, I wrote a simple script to control my foscam cameras motion. However there are plenty of commands available and I have two cameras of that type, so I tried to do it all in one script. As arguments I'm passing camera number and command number, it is simple and works from executing from the sh...
by waaren
Sunday 14 October 2018 23:36
Forum: dzVents
Topic: If does work for on but not for off
Replies: 5
Views: 135

Re: If does work for on but not for off

Not sure if I understand but your timer is now telling dzVents to execute once at 60 minutes before sunset and at 22:45.
Do you want that or do you want: "every minute between 60 minutes before sunset and sunset" and "at 22:45" ?
by waaren
Sunday 14 October 2018 23:15
Forum: LUA
Topic: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to read)
Replies: 20
Views: 251

Re: LUA script (to the security panel) also changes automatically another Variable which is not in the script (only to r

We have a Blockly script for a one button Neo keyfob (it sends only an “On” command.) The script is: If Keyfob=On and Var Alarm=Off Set Var Alarm=On ... Than we made the Lua script below to change the Domoticz Security Panel. Unfortunately then the Variable “Alarm” (of the Blockly script above) com...
by waaren
Sunday 14 October 2018 22:21
Forum: dzVents
Topic: If does work for on but not for off
Replies: 5
Views: 135

Re: If does work for on but not for off

The goal: do some smart things with lighting when we are home or not. Am I making an huge beginners fault or is there something i'm completely missing? you pass the domoticz object to your execute = function as "d" but in line if triggers.trigger == 'at 22:45' and domoticz.variables('FullAutoLights...
by waaren
Sunday 14 October 2018 20:14
Forum: dzVents
Topic: ELSEIF thermostat not triggering [Solved]
Replies: 7
Views: 162

Re: ELSEIF thermostat not triggering [Solved]

Ok I get what you are doing now. One thing missing is reading the value of the thermostat. How do you read the value of Evohome and virtualThermostate setpoint? I try this but gives me a invalid parsing nil error: local downThermostat = Thermostat.setPoint This line reads the setPoint from the devi...
by waaren
Sunday 14 October 2018 19:21
Forum: dzVents
Topic: ELSEIF thermostat not triggering [Solved]
Replies: 7
Views: 162

Re: ELSEIF thermostat not triggering [Solved]

I have an Evohome zone and some Z-Wave thermostats. This kind of works ok, but only the first IF, not the second. What I'm doing wrong? Basically I can override the temperature from either the Evohome or the Z-wave virtual thermostat. When I override from Evohome it works, but when I override from ...
by waaren
Sunday 14 October 2018 18:20
Forum: Bugs and Problems
Topic: No buttton report temperature
Replies: 9
Views: 143

Re: No buttton report temperature

alienos wrote:
Sunday 14 October 2018 18:06
Button "Report" to the right.
is that not the icon in the top right corner of the graphs ? When I click on that I get
Aantekening.png
Aantekening.png (29.76 KiB) Viewed 64 times
.
If that is what you need and if you don't see anything when clicking on it, clearing your browsercache and appcache might help.
by waaren
Sunday 14 October 2018 15:50
Forum: Bugs and Problems
Topic: No buttton report temperature
Replies: 9
Views: 143

Re: No buttton report temperature

alienos wrote:
Sunday 14 October 2018 13:25
I have a version beta domoticz 4.10060
I do not know from which version the button has disappeared.
Is this a domoticz error or some problem with me?
Which button are you referring to. What should happen if you click this button ?