Search found 20 matches

by Adso76
Sunday 16 October 2022 8:00
Forum: dzVents
Topic: triggering script between given hours
Replies: 2
Views: 232

Re: triggering script between given hours

Thanks a lot! Works perfectly! I couldn't grasp that from dzvents tutorial.
by Adso76
Saturday 15 October 2022 18:48
Forum: dzVents
Topic: triggering script between given hours
Replies: 2
Views: 232

triggering script between given hours

I have PIR sensor on detecting which I want to turn on other device. But I want this to happen only between given hours. Whats wrong with the script? return { on = { devices = { 'PIRSleeping', ['nightTime'] = {'between 23:00 and 06:00'} }, }, execute = function(domoticz, PIRSleeping) if (domoticz ...
by Adso76
Wednesday 17 March 2021 19:37
Forum: dzVents
Topic: Dzvents after domoticz update
Replies: 1
Views: 262

Dzvents after domoticz update

I have just updated domoticz to version 2020.2, Build Hash: b63341bc0, dzVents Version: 3.0.2 In a previous version I had a dzvents script which worked and after upgrade doesn't. return { on = { devices = {'Device1'}, }, execute = function(domoticz, Device1) if (Device1.state == "Off") and (Device1 ...
by Adso76
Monday 18 November 2019 18:23
Forum: dzVents
Topic: triggering device after another is ON between time [Solved]
Replies: 2
Views: 1111

Re: triggering device after another is ON between time [Solved]

Great thanks! Works!
A.
by Adso76
Sunday 17 November 2019 12:15
Forum: dzVents
Topic: triggering device after another is ON between time [Solved]
Replies: 2
Views: 1111

triggering device after another is ON between time [Solved]

Hi,

How to turn on the device after another one has just been turned on but only at certain time. Whats wrong with the following statement:

if ((device.name == '.....') and (domoticz.time == 'between 22:00 and 30 minutes before sunrise')) then

Thanks.
Arek
by Adso76
Wednesday 21 August 2019 10:20
Forum: Switches and Scenes
Topic: unwanted / random switch off
Replies: 0
Views: 958

unwanted / random switch off

Hi, I have several relays connected to Domitcz via PCF8574. Some of them from time to time randomly and without any command switch off. For example one the screen you will find logs of one of them - in red frame you can see switch off, which was unplanned. screen20190821.png At the same time in ...
by Adso76
Saturday 12 January 2019 13:04
Forum: Raspberry Pi GPIO ( WiringPi )
Topic: Unable to export any GIPO as in
Replies: 0
Views: 2973

Unable to export any GIPO as in

Hi,
I'm unable to use any GPIO as input for raspberry pi 3 b+. When I add line in domoticz.sh:
/usr/bin/gpio export 16 in
and reboot my raspberry domoticz is offline all the time

using GPIOs as "out" works ok.

Anybody has similar problem?

Thank in advance!
by Adso76
Sunday 23 December 2018 12:20
Forum: dzVents
Topic: triggering an "if"
Replies: 2
Views: 359

Re: triggering an "if"

@Ronald

Thanks a lot! Now it works!
However, in the first if I will stay with device.changed because in my case the wall button is not a push button (monostable) but typical physical switch (bistable).

Regardes,
Arek
by Adso76
Saturday 22 December 2018 21:41
Forum: dzVents
Topic: triggering an "if"
Replies: 2
Views: 359

triggering an "if"

Hi, In the following simple script the second "if" doesn't work. return { on = { devices = { 'wall button 1', 'sleepingroom light' } }, execute = function(domoticz, device) if ((device.name == 'wall button 1' and device.changed)) then if ((device.name == 'sleepingroom light' and device.state == "Off ...
by Adso76
Wednesday 12 December 2018 11:35
Forum: Blockly
Topic: Sampling rate for blockly scripts
Replies: 6
Views: 833

Re: Sampling rate for blockly scripts

PCF8574=0x20 b=smbus.SMBus(1) b.write_byte(PCF8574, 0xff) state = 0 pins = b.read_byte(PCF8574) prev_pin = pins & 0x01 while True: pins = b.read_byte(PCF8574) pin = pins & 0x01 if pin == 0 and prev_pin == 1: if state: state = 0 httpresponse = urllib.urlopen("http://192.168.1.200:8080/json.htm?type ...
by Adso76
Monday 10 December 2018 21:56
Forum: Blockly
Topic: Sampling rate for blockly scripts
Replies: 6
Views: 833

Re: Sampling rate for blockly scripts

@SweetPants
So how you explain that external Python script, which detects the button and sends a signal via JSON to domoticz works ok (the reaction is without any delay). IMHO, the problem is somewhere within domoticz.
by Adso76
Monday 10 December 2018 19:42
Forum: Blockly
Topic: Sampling rate for blockly scripts
Replies: 6
Views: 833

Re: Sampling rate for blockly scripts

The communication is wire :) I just connect one of the pins of PCF8574 with GND.
by Adso76
Monday 10 December 2018 17:59
Forum: Blockly
Topic: Sampling rate for blockly scripts
Replies: 6
Views: 833

Sampling rate for blockly scripts

Hi, Is it possible to change sampling rate for script? I have a script (blockly) which detects whether a physical button is pressed and alternatively turns on and off the device. It works but you need to hold the button pressed for half a second to get a reaction, which is annoying. When I wrote the ...
by Adso76
Monday 05 November 2018 22:40
Forum: Switches and Scenes
Topic: sub device - no main devices in combo
Replies: 1
Views: 607

sub device - no main devices in combo

In domoticz manual there is a paragraph with screen where in adding new device you choose that this new device should be "sub device" you can than choose the main device from the list. However, in my case where I click "sub device" the list of main devices remains empty. Whet's the trick? Thanks in ...
by Adso76
Thursday 30 August 2018 17:24
Forum: Switches and Scenes
Topic: adding blinds controlled via relays
Replies: 4
Views: 2267

Re: adding blinds controlled via relays

Thanks, in the meantime I found other solution by adding "$" as the first character in the name.
by Adso76
Thursday 30 August 2018 16:56
Forum: Switches and Scenes
Topic: adding blinds controlled via relays
Replies: 4
Views: 2267

Re: adding blinds controlled via relays

Thanks! I made it.
Now how do I hide those dummy witches? When I click "switches" I want there only this switch for blinds.
by Adso76
Wednesday 29 August 2018 19:17
Forum: Switches and Scenes
Topic: adding blinds controlled via relays
Replies: 4
Views: 2267

adding blinds controlled via relays

I want to control blinds using two relays. I know how to do this using two separate switches in domoticz, however I'd like to use icon designed for blinds

Image

I don't know how to do this.
by Adso76
Wednesday 29 August 2018 11:00
Forum: Switches and Scenes
Topic: JSON commands
Replies: 4
Views: 4847

Re: JSON commands

Thanks! Originally I took IDX from Setup / hardware, when I looked at Setup / devices I found out that my device has different IDX there. After changing JSON command works fine!
BTW It's confusing that device has different IDX than hardware connected with this device.
by Adso76
Wednesday 29 August 2018 9:27
Forum: Switches and Scenes
Topic: JSON commands
Replies: 4
Views: 4847

Re: JSON commands

Code: Select all

http://192.168.1.5:8080/json.htm?type=command&param=switchlight&idx=2&switchcmd=On
by Adso76
Tuesday 28 August 2018 21:15
Forum: Switches and Scenes
Topic: JSON commands
Replies: 4
Views: 4847

JSON commands

Hi, Whan I type in a browces command: http://192.168.1.5:8080/json.htm?type=command&param=switchlight&idx=2&switchcmd=On I got response: { "status" : "OK", "title" : "SwitchLight" } However, it doesn't change the state of the switch in Domoticz. What I do wrong? Thanks.