• 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


On to Off Refresh
#1
Hi ive setup new system and a new version from pilight was on to :-)
Ive now a little problem, i can switch my Lamps on and of with remote and pilight webgui. But when i switch my light on with a remote maybe Lamp 1 the Visible webswitch Icon will not go to on, otherwhise off... Problem ist i dnt know whitch Lamp is on or off the Panel shows my last swich on display ive done last... the swiching with remote will be not updated...

The 433Mhz module works, i see the acual Temperature and huminity and my Rules are Working Light on and off in 60 Minutes so save Energy ..

Do i have to make a rule if the receiver receives a on off codes to switvh he Icon switches ?

Code:
{
    "devices": {
        "Shell01_ON_LED1": {
            "protocol": [ "program" ],
            "id": [{
                "name": "Shell01_ON_LED1"
            }],
            "program": "/etc/pilight/LED/LED_Chan_1.sh",
            "arguments": "",
            "stop-command": "/etc/pilight/LED/LED_Chan_1.sh",
            "start-command": "/etc/pilight/LED/LED_Chan_1.sh",
            "state": "stopped",
            "pid": 0
        },
        "Shell01_OFF_LED1": {
            "protocol": [ "program" ],
            "id": [{
                "name": "Shell01_OFF_LED1"
            }],
            "program": "/etc/pilight/LED/LED_Chan_1_OFF.sh",
            "arguments": "",
            "stop-command": "/etc/pilight/LED/LED_Chan_1_OFF.sh",
            "start-command": "/etc/pilight/LED/LED_Chan_1_OFF.sh",
            "state": "stopped",
            "pid": 0
        },
        "Shell02_ON_LED2": {
            "protocol": [ "program" ],
            "id": [{
                "name": "Shell02_ON_LED2"
            }],
            "program": "/etc/pilight/LED/LED_Chan_2.sh",
            "arguments": "",
            "stop-command": "/etc/pilight/LED/LED_Chan_2.sh",
            "start-command": "/etc/pilight/LED/LED_Chan_2.sh",
            "state": "stopped",
            "pid": 0
        },
        "Shell02_OFF_LED2": {
            "protocol": [ "program" ],
            "id": [{
                "name": "Shell02_OFF_LED2"
            }],
            "program": "/etc/pilight/LED/LED_Chan_2_OFF.sh",
            "arguments": "",
            "stop-command": "/etc/pilight/LED/LED_Chan_2_OFF.sh",
            "start-command": "/etc/pilight/LED/LED_Chan_2_OFF.sh",
            "state": "stopped",
            "pid": 0
        },
        "Shell03_ON_LED3": {
            "protocol": [ "program" ],
            "id": [{
                "name": "Shell03_ON_LED3"
            }],
            "program": "/etc/pilight/LED/LED_Chan_3.sh",
            "arguments": "",
            "stop-command": "/etc/pilight/LED/LED_Chan_3.sh",
            "start-command": "/etc/pilight/LED/LED_Chan_3.sh",
            "state": "stopped",
            "pid": 0
        },
        "Shell03_OFF_LED3": {
            "protocol": [ "program" ],
            "id": [{
                "name": "Shell03_OFF_LED3"
            }],
            "program": "/etc/pilight/LED/LED_Chan_3_OFF.sh",
            "arguments": "",
            "stop-command": "/etc/pilight/LED/LED_Chan_3_OFF.sh",
            "start-command": "/etc/pilight/LED/LED_Chan_3_OFF.sh",
            "state": "pending",
            "pid": 0
        },
        "Shell001_Pumpe_ON": {
            "protocol": [ "program" ],
            "id": [{
                "name": "Shell001_Pumpe_ON"
            }],
            "program": "/etc/pilight/Pump_test_on.sh",
            "arguments": "",
            "stop-command": "/etc/pilight/Pump_test_on.sh",
            "start-command": "/etc/pilight/Pump_test_on.sh",
            "state": "stopped",
            "pid": 0
        },
        "Shell001_Pumpe_OFF": {
            "protocol": [ "program" ],
            "id": [{
                "name": "Shell001_Pumpe_OFF"
            }],
            "program": "/etc/pilight/Pumptest_off.sh",
            "arguments": "",
            "stop-command": "/etc/pilight/Pump_test_off.sh",
            "start-command": "/etc/pilight/Pump_test_off.sh",
            "state": "stopped",
            "pid": 0
        },
        "weather": {
            "protocol": [ "alecto_ws1700" ],
            "id": [{
                "id": 119
            }],
            "temperature": 2.0,
            "humidity": 98.0,
            "battery": 1
        },
        "weather2": {
            "protocol": [ "alecto_wx500" ],
            "id": [{
                "id": 249
            }],
            "temperature": 1.3,
            "humidity": 68.0,
            "windgust": 0,
            "winddir": 0,
            "windavg": 0,
            "battery": 1
        },
        "weather3": {
            "protocol": [ "alecto_wx500" ],
            "id": [{
                "id": 234
            }],
            "temperature": 102.5,
            "humidity": 64.0,
            "windgust": 0,
            "winddir": 0,
            "windavg": 20.4,
            "battery": 1
        },
        "BWL_001": {
            "protocol": [ "kaku_switch_old" ],
            "id": [{
                "id": 30,
                "unit": 7
            }],
            "state": "off"
        },
        "Flammingo_A": {
            "protocol": [ "kaku_screen" ],
            "id": [{
                "id": 38471680,
                "unit": 1
            }],
            "state": "down"
        },
        "Flammingo_B": {
            "protocol": [ "kaku_screen" ],
            "id": [{
                "id": 38471680,
                "unit": 2
            }],
            "state": "down"
        },
        "Ersatz_Schlafzimmer_Silber_A": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 31,
                "unitcode": 15
            }],
            "state": "off"
        },
        "Ersatz_Schlafzimmer_Silber_B": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 15,
                "unitcode": 15
            }],
            "state": "off"
        },
        "Ersatz_Schlafzimmer_Silber_C": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 15,
                "unitcode": 6
            }],
            "state": "on"
        },
        "Schlafzimmer_Silber_A": {
            "protocol": [ "kaku_screen_old" ],
            "id": [{
                "id": 0,
                "unit": 0
            }],
            "state": "down"
        },
        "Schlafzimmer_Silber_B": {
            "protocol": [ "kaku_screen_old" ],
            "id": [{
                "id": 1,
                "unit": 0
            }],
            "state": "down"
        },
        "Schlafzimmer_Silber_C": {
            "protocol": [ "kaku_screen_old" ],
            "id": [{
                "id": 2,
                "unit": 0
            }],
            "state": "down"
        },
        "Ersatz_Schlafzimmer_Silber_D": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 15,
                "unitcode": 14
            }],
            "state": "on"
        },
        "Ersatz_Schlafzimmer_Silber_A_2": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 31,
                "unitcode": 13
            }],
            "state": "off"
        },
        "Ersatz_Schlafzimmer_Silber_B_2": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 15,
                "unitcode": 13
            }],
            "state": "on"
        },
        "Ersatz_Schlafzimmer_Silber_C_2": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 31,
                "unitcode": 12
            }],
            "state": "off"
        },
        "Ersatz_Schlafzimmer_Silber_D_2": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 15,
                "unitcode": 12
            }],
            "state": "off"
        },
        "Ersatz_Schlafzimmer_Silber_A_3": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 31,
                "unitcode": 11
            }],
            "state": "on"
        },
        "Ersatz_Schlafzimmer_Silber_B_3": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 15,
                "unitcode": 11
            }],
            "state": "off"
        },
        "Ersatz_Schlafzimmer_Silber_C_3": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 31,
                "unitcode": 10
            }],
            "state": "off"
        },
        "Ersatz_Schlafzimmer_Silber_D_3": {
            "protocol": [ "elro_800_switch" ],
            "id": [{
                "systemcode": 15,
                "unitcode": 10
            }],
            "state": "off"
        },
        "Medion_A_Devolo_Alarm": {
            "protocol": [ "quigg_gt7000" ],
            "id": [{
                "id": 3942,
                "unit": 0
            }],
            "state": "on"
        },
        "Medion_B_Rote_Lampe": {
            "protocol": [ "quigg_gt7000" ],
            "id": [{
                "id": 3942,
                "unit": 1
            }],
            "state": "on"
        },
        "Medion_C_LEER": {
            "protocol": [ "quigg_gt7000" ],
            "id": [{
                "id": 3942,
                "unit": 3
            }],
            "state": "off"
        },
        "Stube_A": {
            "protocol": [ "heitech" ],
            "id": [{
                "systemcode": 25,
                "unitcode": 1
            }],
            "state": "off"
        },
        "Stube_B": {
            "protocol": [ "heitech" ],
            "id": [{
                "systemcode": 25,
                "unitcode": 2
            }],
            "state": "off"
        },
        "Stube_C": {
            "protocol": [ "heitech" ],
            "id": [{
                "systemcode": 25,
                "unitcode": 4
            }],
            "state": "off"
        },
        "Stube_D": {
            "protocol": [ "heitech" ],
            "id": [{
                "systemcode": 25,
                "unitcode": 8
            }],
            "state": "off"
        }
    },
    "rules": {
        "BWL_001_ON_Rule": {
            "rule": "IF BWL_001.state IS on THEN switch DEVICE Shell02_ON_LED2 TO running",
            "active": 1
        },
        "BWL_001_OFF_Rule": {
            "rule": "IF BWL_001.state IS off THEN switch DEVICE Shell02_OFF_LED2 TO running",
            "active": 1
        },
        "Temperatur_001_ON_1": {
            "rule": "IF weather.temperature < 1.5 THEN switch DEVICE Shell03_ON_LED3 TO running",
            "active": 1
        },
        "Temperatur_001_OFF_1": {
            "rule": "IF weather.temperature >= 1.5 THEN switch DEVICE Shell03_OFF_LED3 TO running",
            "active": 1
        },
        "Temperatur_Heat_LED_ON_001_Rule_A": {
            "rule": "IF (weather2.temperature >= 19.4) AND (weather2.temperature <= 19.6) THEN switch DEVICE Shell01_ON_LED1 TO running",
            "active": 0
        },
        "Temperatur_Heat_LED_OFF_001_Rule_B": {
            "rule": "IF (weather2.temperature < 19.4) AND (weather2.temperature > 19.6) THEN switch DEVICE Shell01_OFF_LED1 TO running",
            "active": 0
        },
        "MedionButtonB_OFF_Rote_Lampe": {
            "rule": "IF Ersatz_Schlafzimmer_Silber_D.state IS off THEN switch DEVICE Medion_B_Rote_Lampe TO off",
            "active": 1
        },
        "MedionButtonB_ON_RoteLampe": {
            "rule": "IF Ersatz_Schlafzimmer_Silber_D.state IS on THEN switch DEVICE Medion_B_Rote_Lampe TO on",
            "active": 1
        },
        "Stube_A_Off_Time": {
            "rule": "IF Stube_A.state IS on THEN switch DEVICE Stube_A TO off AFTER 60 MINUTE",
            "active": 1
        },
        "Stube_B_Off_Time": {
            "rule": "IF Stube_B.state IS on THEN switch DEVICE Stube_B TO off AFTER 60 MINUTE",
            "active": 1
        },
        "Ersatz_Schlafzimmer_Silber_A_Off_Time": {
            "rule": "IF Ersatz_Schlafzimmer_Silber_A.state IS on THEN switch DEVICE Ersatz_Schlafzimmer_Silber_A TO off AFTER 60 MINUTE",
            "active": 1
        },
        "Ersatz_Schlafzimmer_Silber_B__Off_Time": {
            "rule": "IF Ersatz_Schlafzimmer_Silber_B.state IS on THEN switch DEVICE Ersatz_Schlafzimmer_Silber_B TO off AFTER 60 MINUTE",
            "active": 1
        },
        "Schlafzimmer_Silber_A_Off_Time_Original_Schalter_Grau_A": {
            "rule": "IF Schlafzimmer_Silber_A.state IS up THEN switch DEVICE Schlafzimmer_Silber_A TO down AFTER 60 MINUTE",
            "active": 1
        },
        "Schlafzimmer_Silber_B_Off_Timee_Original_Schalter_Grau_B": {
            "rule": "IF Schlafzimmer_Silber_B.state IS up THEN switch DEVICE Schlafzimmer_Silber_B TO down AFTER 60 MINUTE",
            "active": 1
        },
        "Medion_D_Leer_Switch_Off_Time": {
            "rule": "IF Ersatz_Schlafzimmer_Silber_D.state IS on THEN switch DEVICE Ersatz_Schlafzimmer_Silber_D TO off AFTER 60 MINUTE",
            "active": 1
        },
        "MedionButtonA_2OFF_Devolo": {
            "rule": "IF Ersatz_Schlafzimmer_Silber_A_2.state IS off THEN switch DEVICE Medion_A_Devolo_Alarm TO off",
            "active": 1
        },
        "MedionButtonA_2ON_Devolo": {
            "rule": "IF Ersatz_Schlafzimmer_Silber_A_2.state IS on THEN switch DEVICE Medion_A_Devolo_Alarm TO on",
            "active": 1
        }
    },
    "gui": {
        "weather": {
            "name": "Weather Station#1",
            "group": [ "General" ],
            "media": [ "all" ]
        },
        "weather2": {
            "name": "Weather Station#2",
            "group": [ "General" ],
            "media": [ "all" ]
        },
        "weather3": {
            "name": "Weather Station#3",
            "group": [ "General" ],
            "media": [ "all" ]
        },
        "Stube_A": {
            "name": "Stube_A_Licht_1",
            "group": [ "Stube" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Stube_B": {
            "name": "Stube_B_Licht_2",
            "group": [ "Stube" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Stube_C": {
            "name": "Stube_C_Fernseher",
            "group": [ "Stube" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Stube_D": {
            "name": "Stube_D_N/A",
            "group": [ "Stube" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Schlafzimmer_Silber_A": {
            "name": "Schl.A",
            "group": [ "Schlafzimmer" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Schlafzimmer_Silber_B": {
            "name": "Schl.B",
            "group": [ "Schlafzimmer" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Schlafzimmer_Silber_C": {
            "name": "Schl.C",
            "group": [ "Schlafzimmer" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Ersatz_Schlafzimmer_Silber_D": {
            "name": "Schl.D",
            "group": [ "Schlafzimmer" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Medion_A_Devolo_Alarm": {
            "name": "Aldi Switch A:Devolo",
            "group": [ "Sonstige" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Medion_B_Rote_Lampe": {
            "name": "Aldi Switch B:Rote-Lampe",
            "group": [ "Sonstige" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Medion_C_LEER": {
            "name": "Aldi Sw.C PumpenSteuer.",
            "group": [ "Sonstige" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Flammingo_A": {
            "name": "Flammingo_A",
            "group": [ "WasserFest_Flammingo" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "Flammingo_B": {
            "name": "Flammingo_B",
            "group": [ "WasserFest_Flammingo" ],
            "media": [ "all" ],
            "readonly": 0
        },
        "BWL_001": {
            "name": "Bewegungsschalter001",
            "group": [ "Bewegungsmelder" ],
            "media": [ "all" ],
            "readonly": 0
        }
    },
    "settings": {
        "log-level": 6,
        "pid-file": "/var/run/pilight.pid",
        "log-file": "/var/log/pilight.log",
        "webserver-enable": 1,
        "webserver-root": "/usr/local/share/pilight/webgui",
        "port": 5000,
        "webserver-http-port": 5001,
        "webserver-https-port": 5002,
        "standalone": 1,
        "webserver-cache": 1,
        "gpio-platform": "raspberrypi2"
    },
    "hardware": {
        "433gpio": {
            "sender": 0,
            "receiver": 1
        }
    },
    "registry": {
        "webgui": {
            "tabs": 0
        }
    }
}
 
Reply
#2
side note: quote tags != code tags!!



You shouldn't need a rule to do that, pilight should update the status according to the received signals. Can you post the output of pilight-receive when pressing buttons on your remote?
 
Reply
#3
Code:
this is the one of the Button with a rule.. that can only Off if receive not not on !
{
    "message": {
        "systemcode": 15,
        "unitcode": 14,
        "state": "opened"
    },
    "origin": "receiver",
    "protocol": "elro_800_contact",
    "uuid": "0000-b8-27-eb-2b70db",
    "repeats": 1
}


    "message": {
        "systemcode": 15,
        "unitcode": 14,
        "state": "closed"
    },
    "origin": "receiver",
    "protocol": "elro_800_contact",
    "uuid": "0000-b8-27-eb-2b70db",
    "repeats": 3
}

i was try to catch all signals from my remotes...
my arctech_screen_old remote does work... and show the states....
my other one Code above does not work as befor... version 7
and the quigg is not listet when i touch a button... this remote sems to be not receiveble but i can send ... via webgui...

does the Quigg got a new code for Raspberry ???


Found soomething: receive side...
The Elro_800_switch ist missing
quigg 7000 is missing

i have change some buttons to Elro_400_switch
but Quigg i cant use to get status.. :-(
 
Reply
#4
IIRC, @wo_rasp was/is involved in working with quigg protocols, he might be able to tell you something about the current status and functionality Smile
 
Reply
#5
And again, was said before. Quote tags != code tags.
 
Reply
#6
I assume you use a BPF. As said in the manual:
"Extracting the system code id from an existing Globaltronics GT-7000 remote control device either requires a special version of the BPF, or you need to bypass the BPF."
This also applies to operating the original GT-7000 together with pilight.

The problem is caused by the footer pulse duration of the GT-7000, the pulse is >80mS, and the BPF will suppress that footer, and as a consequence pilight will not properly detect the footer pulse.
 
Reply
  


Forum Jump:


Browsing: 1 Guest(s)