• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with a Rule for a One Button Switch
Hi There,
first I want to Thank You for this great project and Help on this
Website. Sorry for my English...

Hope You can help me with my Problem.

I have a NoName Switch and the Switch switches on and off
with the same button.

The pilight-send command, I found out is:
pilight-send -p heitech -u 8 -s 8 -f to switch on and the same command to switch off.

Now I want to make a Rule so I can use this switch in the webgui.
I tried several things, but it will not work.

Do You have an idea?
Thanks very much!

Many Greetings from Germany
Since there is no GUI widget for single-fire buttons like you are describing, you could use a generic switch and a number of rules to keep track of the states:

GUI switch is a generic switch in your GUI
Device is the configuration for the actual device in pilight
Physical NoName device is the actual switch in your socket
  • GUI switch off, device on, physical NoName device off
  • Switch on in GUI -> device to off by a rule -> physical NoName device turns on
  • Switch device back to on by a second rule (so that it can send another command later), while GUI switch remains on to display the current state.
  • add rules to do the same in reverse on turning the GUI switch to off and flicking the device to off and back to on. This should switch the NoName device to off again, while preparing the configured device for another signal.
This assumes that a command like "pilight-send -p heitech -u 8 -s 8 -t" does not turn the device on.

Possibly Related Threads...
Thread Author Replies Views Last Post
  [solved] sunset rule doesn't work fleisch 5 1,156 08-29-2020, 05:23 AM
Last Post: CharlesRhymn
  Rule triggers twice Thorben653 13 2,789 02-05-2020, 01:06 PM
Last Post: VicktorKopf
  Exclude Weekend from a rule PT-Biker 1 762 12-08-2019, 10:22 AM
Last Post: curlymo
  [Solved] On and Off for one device in one rule Oliver 3 833 10-28-2019, 06:55 PM
Last Post: Oliver
  skipping overridden action switch do1eh 2 1,019 01-19-2019, 05:25 PM
Last Post: do1eh
  Can't switch Relay device by rules: Error switch.lua:77 wobbi 6 1,737 07-31-2018, 06:25 AM
Last Post: curlymo
  Rule with&without device. One working not the other... Tamadite 9 2,134 07-24-2018, 08:55 AM
Last Post: curlymo
  rule executed once at start up segalion 3 1,111 07-12-2018, 05:28 PM
Last Post: curlymo
  Problem FOR Alex 5 1,686 05-18-2018, 01:21 PM
Last Post: curlymo
  Problem with executing bash script via rule/program dYna 1 1,397 02-15-2018, 09:06 PM
Last Post: dYna

Forum Jump:

Browsing: 1 Guest(s)