Search found 16 matches

by tapas
Monday 17 July 2017 23:38
Forum: LUA
Topic: "infinite" lua script
Replies: 1
Views: 520

"infinite" lua script

Hi, another newbie question :oops: I have a lua script that reads a file and searches for hw addresses and if they are found, a dummy switch is turned on. When I connect a device, the file includes a hw address, otherwise the file is empty. My script works the way I want when manually run via anothe...
by tapas
Monday 17 July 2017 10:13
Forum: LUA
Topic: Dummy switch won't turn on
Replies: 4
Views: 1028

Re: Dummy switch won't turn on

I'm trying to run it from linux shell lua script.lua with no luck, what am I missing? Hi, starting LUA script from Linux shell will not work, there is no Domoticz API available. You should create script in designated folder and correct name - in subfolder of domoticz installation: scripts/lua. Then...
by tapas
Monday 17 July 2017 2:04
Forum: LUA
Topic: Dummy switch won't turn on
Replies: 4
Views: 1028

Re: Dummy switch won't turn on

Thanks for the reply, I added that but still no luck :(
by tapas
Monday 17 July 2017 0:47
Forum: LUA
Topic: Dummy switch won't turn on
Replies: 4
Views: 1028

Dummy switch won't turn on

Hello, I've been pulling my hair off over this seemingly very simple script that should turn a dummy switch (idx 22) on:

Code: Select all

commandArray = {}
commandArray['UpdateDevice'] = '22|1|On'
I'm trying to run it from linux shell lua script.lua with no luck, what am I missing?
by tapas
Sunday 16 July 2017 11:28
Forum: Python
Topic: Activate dummy switch with Python
Replies: 2
Views: 882

Re: Activate dummy switch with Python

Hi moroen, the script is run externally. Altough I'm not sure is there any problem running it from event file, haven't thought of that.
by tapas
Saturday 15 July 2017 16:38
Forum: Python
Topic: Activate dummy switch with Python
Replies: 2
Views: 882

Activate dummy switch with Python

Hello, I tried to search the forum for this but could not find an answer: Is there a way to change dummy swich state (on/off) with Python code? My code checks presence of a device and if it is found, I'd like to activate a Dummy switch, that way I can link it to my blocky script.
by tapas
Friday 14 July 2017 14:34
Forum: 1-wire
Topic: DS2401 support
Replies: 2
Views: 1383

Re: DS2401 support

I found something I might have look into: https://behindthesciences.com/electroni ... ttonsystem
by tapas
Thursday 13 July 2017 13:50
Forum: 1-wire
Topic: DS2401 support
Replies: 2
Views: 1383

Re: DS2401 support

I was thinking about some kind of script that checks if DS2401 is mounted and if it is, a dummy switch state is changed. Does anyone know has this been done earlier?
by tapas
Wednesday 12 July 2017 15:46
Forum: 1-wire
Topic: DS2401 support
Replies: 2
Views: 1383

DS2401 support

Hi,

I have connected DS2401 via 1-wire and able to see the device, it's mounted in /mnt/1wire/

Has anyone managed to add it as device in Domoticz? My idea is to use it as a digital key to unlock doors etc.

https://www.elsist.biz/wp-content/uploa ... 00x500.png
by tapas
Wednesday 07 June 2017 10:03
Forum: Switches and Scenes
Topic: Invert On/off switch
Replies: 3
Views: 1539

Invert On/off switch

Hi, is there a way to control On/off switch default status? I have an On/off switch that is connected to relay. Problem is simple: When relay is off, my button status is ON and vice versa. Because the default status of relay is OFF i'd like the switch also be OFF by default. This might be very stupi...
by tapas
Sunday 28 May 2017 13:38
Forum: Blockly
Topic: "Disable event" -button?
Replies: 5
Views: 1233

Re:

pvm wrote:I've created a virtual switch 'manual control' and added that to all IFs in blockly , checking it is off.
This solved my problem, thanks a lot! Also thanks for the other suggestors!
by tapas
Friday 26 May 2017 19:35
Forum: Blockly
Topic: "Disable event" -button?
Replies: 5
Views: 1233

Re:

pvm wrote:Not exactly what you where looking for but : I've solved this by adding an extra check to the blocky statement(s) 'manual control'
I'm interested! How did you do that exactly, can you share your solution?
by tapas
Friday 26 May 2017 18:27
Forum: Blockly
Topic: "Disable event" -button?
Replies: 5
Views: 1233

"Disable event" -button?

Hi, has anyone figured out a way to disable certain blockly event with a single click (with a button for example)? I understand that I can do that via "Event active" -selection, but it would be very cool to have a "manual" -button in dashboard and when pushed my automation would not work and I could...
by tapas
Friday 19 May 2017 8:31
Forum: Raspberry Pi GPIO ( WiringPi )
Topic: Light sensor and Domoticz
Replies: 1
Views: 2442

Light sensor and Domoticz

Hello, I have this light sensor: http://www.uugear.com/product/uugear-light-sensor-module-4-wire-with-both-digital-and-analog-output/ It seems to work well and I can read it's status from Raspi3 GPIO pin. The status is either 1 or 0 (light/dark). I have a problem connecting this to Domoticz. I am ab...
by tapas
Friday 19 May 2017 8:24
Forum: Raspberry Pi GPIO ( WiringPi )
Topic: GPIO export and default status at boot
Replies: 2
Views: 2282

Re: GPIO export and default status at boot

Hi, I have this exactly same problem, did you ever figure out why relay state changes on startup/shutdown?