• 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
Hardware Switch and pilight-send/-control

i have a problem to control devices via hardware switches AND pilight-send or pilight-control:

If i send ca command with pilight (either pilight-send or -control) to a light-bulb, it works. I can switch to ON. But if i do so, i can't switch it to OFF with my hardware switch after.

If i only use the switch, i can control the bulb  to on/off as expected.

This is my configuration for pilight (stripped down):

"devices": {
       "Power1": {
           "protocol": [ "quigg_gt1000" ],
           "id": [{
               "id": 1,
               "unit": 0
           "state": "off"
        "Switch1": {
            "protocol": [ "kaku_switch" ],
            "id": [{
                "id": 3867648,
                "unit": 1
            "state": "on"
    "rules": {
        "Switch1Power1": {
            "rule": "IF Switch1.state == on THEN switch DEVICE Power1 TO on ELSE switch DEVICE Power1 TO off",
            "active": 1
So if you switch a bulb to ON with pilight, you can't switch it of to OFF with a hardware remote?
(02-06-2021, 04:03 PM)curlymo Wrote: So if you switch a bulb to ON with pilight, you can't switch it of to OFF with a hardware remote?

Yes... i switch to ON with pilight-send and can't switch to OFF with the hardware switch. I have to switch it to ON again with the hardware to be able to switch to OFF with the hardware.
Found my own workaround:

Instead of using pilight‘s rules, i build my own „daemon“ based on discover.py to switch the power either by pilight-control or physical hardware.

Possibly Related Threads...
Thread Author Replies Views Last Post
  problem publish to pilight MQTT server Emiks5 6 1,463 Yesterday, 06:59 PM
Last Post: Emiks5
  pilight error after update to 8.1.5 on Odroid C2 WitchDoctor 4 1,703 02-07-2021, 09:50 PM
Last Post: pilightalpine
  pilight in Docker not accepting connections due to possible SYN flooding akloeckner 3 450 02-07-2021, 04:22 PM
Last Post: akloeckner
  pilight-debug format Rschnauzer 2 442 12-17-2020, 07:09 PM
Last Post: Rschnauzer
  pilight-flash not working danny 14 3,347 12-12-2020, 10:00 AM
Last Post: tox
  pilight does not start, Deamon is not found. Dekkertje 6 761 12-08-2020, 06:55 PM
Last Post: Dekkertje
  Failed pilight-send that say they succeeded hepcat72 2 484 12-05-2020, 05:30 PM
Last Post: hepcat72
  apt.pilight.org/dists/stable/main/binary 301 Moved Permanently Rschnauzer 6 836 11-23-2020, 01:49 PM
Last Post: Rschnauzer
  bridging pilight and mosquitto hansrijn2 5 1,228 10-26-2020, 06:31 PM
Last Post: hansrijn2
  No hardware module configured steffeneilers 4 1,136 09-30-2020, 06:44 AM
Last Post: Debrabroms

Forum Jump:

Browsing: 1 Guest(s)