Search found 37 matches
- Saturday 24 March 2018 14:48
- Forum: LUA
- Topic: Lua script executing sh script... not working!
- Replies: 39
- Views: 10716
Re: Lua script executing sh script... not working!
Supplying full path in script should work, but keep in mind that if the called path itself calls other binaries, it might not work. Try including PATH=/usr/local/bin:/usr/bin etc, make sure that all paths are included.
- Tuesday 31 October 2017 12:29
- Forum: Other questions and discussions
- Topic: Log problems
- Replies: 2
- Views: 724
Re: Log problems
You should start domoticz with the -log argument, just add this under the last DAEMON_ARGS line in /etc/init.d/domoticz.sh:
Restart domoticz to start logging to /tmp/domoticz.log (or whatever path you want).
Code: Select all
DAEMON_ARGS="$DAEMON_ARGS -log /tmp/domoticz.log"
- Tuesday 31 October 2017 12:20
- Forum: dzVents
- Topic: error with domoticz.variables
- Replies: 5
- Views: 940
- Friday 06 October 2017 13:19
- Forum: dzVents
- Topic: variables lastUpdate mismatch?
- Replies: 14
- Views: 2495
- Monday 11 September 2017 12:04
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7001
Re: Lua script did not return a commandArray
Ah interesting, thanks for letting us know! I think the full paths to both node and js file would be sufficient? Or is it really necessary to use sh?
- Monday 11 September 2017 11:31
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7001
Re: Lua script did not return a commandArray
I didn't catch the idea about "showing up in the log should be solved". I updated to the v 3.8390 and what? Please, write a little bit more about it? Thank you! I meant the line which prints 'dzVents' in your second post, while it should print 'LUA'. This is pure cosmetic, but fixed in the latest ...
- Sunday 10 September 2017 16:38
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7001
Re: Lua script did not return a commandArray
You could try something simple like this, it should print the current date in /tmp/test.log: #!/bin/bash echo $(date) > /tmp/test.log If you update to the latest beta, the mix-up of dzVents / Lua lines showing up in the log should be solved (but that has nothing to do with your issue, just to make ...
- Saturday 09 September 2017 14:49
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7001
Re: Lua script did not return a commandArray
You could try using those actions instead, but that doesn't explain why it's not working with Lua.. When using script:// you should set it like this: script:///bin/bash etc (triple / and full path to bash). It might work for you, because it calls the scripts without Lua involved. If in doubt, I ...
- Saturday 09 September 2017 14:29
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7001
Re: Lua script did not return a commandArray
You could try using those actions instead, but that doesn't explain why it's not working with Lua.. When using script:// you should set it like this: script:///bin/bash etc (triple / and full path to bash). It might work for you, because it calls the scripts without Lua involved. If in doubt, I ...
- Saturday 09 September 2017 13:58
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7001
Re: Lua script did not return a commandArray
What about /bin/bash? And the cannot open dzVents.lua error is suspicious, something seems wrong with your installation. Could try disabling dzVents under settings -> other, restart domoticz and see if at least that error message is gone?
Verstuurd vanaf mijn SM-N930F met Tapatalk
Verstuurd vanaf mijn SM-N930F met Tapatalk
- Saturday 09 September 2017 12:44
- Forum: LUA
- Topic: Lua script did not return a commandArray
- Replies: 18
- Views: 7001
Re: Lua script did not return a commandArray
It seems that dzVents log line is printed instead of Lua, which sometimes seem to occur for yet unknown reason (it's harmless). So the example/test script is working, it just tries to match on all device changes, which results in those nil value messages. Try to add the full path to screen in os ...
- Tuesday 08 August 2017 16:12
- Forum: dzVents
- Topic: sleep/wait in a script?
- Replies: 6
- Views: 3386
Re: sleep/wait in a script?
Not checked / tested it myself, but can't you just use armAway().afterMin(20)?
- Friday 04 August 2017 16:16
- Forum: dzVents
- Topic: [SOLVED] DzVents door.state is always open?
- Replies: 44
- Views: 8661
Re: DzVents door.state is always open?
My main question still remains: Why is the state in the GUI different from the state which I call in the scripts. I cannot get my head around that one. The GUI is right in my opnion when I look at my door and at the state :) Because there is no event generated for the slave device when being ...
- Friday 04 August 2017 15:53
- Forum: dzVents
- Topic: [SOLVED] DzVents door.state is always open?
- Replies: 44
- Views: 8661
Re: DzVents door.state is always open?
But you see the logic in the script? When 'something' from Achterdeur_Open arrives (could just be On every time), it will set Achterdeur to On. If 'something' from Achterdeur_Dicht arrives (could also just be On every time), it will set it to Off. Achterdeur must change it's status, really weird if ...
- Friday 04 August 2017 15:44
- Forum: dzVents
- Topic: [SOLVED] DzVents door.state is always open?
- Replies: 44
- Views: 8661
Re: DzVents door.state is always open?
And the script should just work, period :lol: Just make sure you've got 3 devices (1 dummy, 2 RFLink) and maybe to be sure, first add the 'Achterdeur' as On/Off switch, not a Door type. Also check for On and Off status instead of Open / Close while testing this... Believe me, tried it, tried it ...
- Friday 04 August 2017 15:35
- Forum: dzVents
- Topic: [SOLVED] DzVents door.state is always open?
- Replies: 44
- Views: 8661
Re: DzVents door.state is always open?
Yes the GUI gets it's info from DB directly, so no strange behaviour here and all as expected ;)- So why not get the right data that way? If only I knew how :) Because it now accidentally works for you and gives the correct value, but it's not intended to use the way you do, resulting in unexpected ...
- Friday 04 August 2017 15:05
- Forum: dzVents
- Topic: [SOLVED] DzVents door.state is always open?
- Replies: 44
- Views: 8661
Re: DzVents door.state is always open?
Yes the GUI gets it's info from DB directly, so no strange behaviour here and all as expected ;) Well then I'm out of options then, because the script above should definitely work if you've got 2 separate RFlink devices sending the On status (or Off, doesn't matter). But to be clear: We're not ...
- Friday 04 August 2017 14:50
- Forum: dzVents
- Topic: [SOLVED] DzVents door.state is always open?
- Replies: 44
- Views: 8661
Re: DzVents door.state is always open?
Ah I understand what you mean. You should create a dummy device as master and add both RFLink devices as slaves to it. Now you should get the correct status on the dummy device.. Edit: Well I think I understand it, is it correct that you have 2 RFLink devices, one only triggers when door is open ...
- Friday 04 August 2017 14:05
- Forum: dzVents
- Topic: [SOLVED] DzVents door.state is always open?
- Replies: 44
- Views: 8661
Re: DzVents door.state is always open?
Ah I understand what you mean. You should create a dummy device as master and add both RFLink devices as slaves to it. Now you should get the correct status on the dummy device.. Edit: Well I think I understand it, is it correct that you have 2 RFLink devices, one only triggers when door is open and ...
- Friday 04 August 2017 13:55
- Forum: dzVents
- Topic: [SOLVED] DzVents door.state is always open?
- Replies: 44
- Views: 8661
Re: DzVents door.state is always open?
Yes, danny described it thorough. Conclusion for now: Only switch master through slaves only, not directly or via scripting. The trick in this case would probably just adding a second slave and use that for the timer. Could you explain that a bit more? Bot, master and slave, are devices which are ...