Switch rules

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: Switch rules

#21 Post by paxi » 20 Mar 2017, 22:15

I think there is something conflicting in domoticz.
But honestly: its no fun trying to help you - you didn't provide the information asked for (there is still no hint what you're doing in domoticz) and most of your replies are just "it didn't work".

Again: it works perfect for me in standalone

Jufo
Normal user
Posts: 36
Joined: 12 Mar 2017, 13:47

Re: Switch rules

#22 Post by Jufo » 20 Mar 2017, 22:30

I try as I can :) Domoticz allows remote control buttons with Easy ESP, commands, respectively:

Amp / Speakers A
On Action: http://192.168.3.120/control?cmd=GPIO,16,0
Off Action: http://192.168.3.120/control?cmd=GPIO,16,1

Amp / Speakers B
On Action: http://192.168.3.120/control?cmd=GPIO,12,0
Off Action http://192.168.3.120/control?cmd=GPIO,12,1

Your Rules does not want to work off (changing any state of the physical button when the relays are on does not turn them off)
Thank you for your support and patience.

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: Switch rules

#23 Post by paxi » 20 Mar 2017, 22:58

I've overlooked that your relays are active low - my mistake. Anyhow it should work with the latest code.
But:
Earlier you wrote "bistable switch" now "physical button". Different things and a momentary button (opposed to a toggle switch) needs to be configured as pushbutton (active low from your schematic).

Jufo
Normal user
Posts: 36
Joined: 12 Mar 2017, 13:47

Re: Switch rules

#24 Post by Jufo » 20 Mar 2017, 23:07

I'm sorry for my mistake
I use the physical bistable button/switch (press this button in this position)

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: Switch rules

#25 Post by paxi » 20 Mar 2017, 23:40

It's still unclear what you mean:
- toggle switch
- momentary pushbutton
- latching pushbutton

Jufo
Normal user
Posts: 36
Joined: 12 Mar 2017, 13:47

Re: Switch rules

#26 Post by Jufo » 22 Mar 2017, 12:08

I use toggle switch (on/off) for example:
Image

paxi
Normal user
Posts: 121
Joined: 02 Feb 2017, 00:48
Location: Germany

Re: Switch rules

#27 Post by paxi » 22 Mar 2017, 22:28

Hmm, I've just noticed you configured speakersA to send boot state but it is default (and thus possibly undefined) in the hardware page. Set the gpio to the desired output state but I'm not sure it will help.

Another test is to disconnect espeasy from domoticz (i. e. with a non-valid conroller IP) and check if the rule works locally.

In all your testing you should update the devices page after each action and carefully observe the values. More info can be obtained from the log, best is via serial since the weblog is rather short.

Post Reply

Who is online

Users browsing this forum: No registered users and 69 guests