• 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
Send on command when switch is already "on"
I have a silly problem, I have tried a few things and searched for the forums but not found anything yet.

I have a light that can be controlled by a Nexa Switch, either use the physical switch, or from pressing "on" on a remote. This means that the physical switch doesn't report back to pilight, not really an issue normally. The problem I am hitting now is I am trying to include a rule, so a motion sensor turns the light on. If the device is set to on in the GUI then it doesn't send the ON command. I want to to send ON regardless of what pilight thinks it is. Any ideas?

(I am using pilight 8.0.7)
Use the protocol inside the rule:
IF contact_protocol_name.state IS on THEN ...

Possibly Related Threads...
Thread Author Replies Views Last Post
  skipping overridden action switch do1eh 2 1,171 01-19-2019, 05:25 PM
Last Post: do1eh
  Can't switch Relay device by rules: Error switch.lua:77 wobbi 6 2,002 07-31-2018, 06:25 AM
Last Post: curlymo
  Problem with a Rule for a One Button Switch martin-dj 1 1,769 03-06-2017, 12:01 PM
Last Post: pilino1234
  duration switch protocol creamers 6 3,478 01-10-2017, 10:04 PM
Last Post: wo_rasp
  action: switch Niek 54 27,410 03-31-2016, 06:24 PM
Last Post: jjj
  [Solved] Trying to switch my light using datetime manmetdehamer 2 2,935 11-25-2015, 01:33 PM
Last Post: manmetdehamer
  Switch device multiple times do1eh 0 1,676 08-07-2015, 10:31 PM
Last Post: do1eh
Question [SOLVED] - How to switch a device 15 minutes after sunset with newest nightly Seebueb 8 5,682 08-02-2015, 11:03 AM
Last Post: curatio
  remote switch to off multiple times koos147 0 3,281 04-28-2015, 06:53 PM
Last Post: koos147
Question Switch without a state rogier 3 3,649 04-27-2015, 04:50 PM
Last Post: curlymo

Forum Jump:

Browsing: 1 Guest(s)