• 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
Wired PIR sensor as Switch and strange behaviour
#1
Hi, I use a cheap wired PIR sensor as simple switch. For this I create a gpio_switch-device. The sensor works and reacts to my webgui as normal.

Code:
"pir": {
            "protocol": [ "gpio_switch" ],
            "id": [{
                "gpio": 4
            }],
            "state": "off"
    }

Code:
"pir": {
            "name": "PIR sensor",
            "group": [ "Room1" ],
            "media": [ "all" ]
        },

But, when I switch a lamp or other device then the sensor switchs also no matter I use the webgui button or a remote control. Any idea?
 
Reply
#2
3,3V might be not enough for a proper operation.
I gave 5V to the pir sensor and it works now.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Hardware Switch and pilight-send/-control iTommix 3 624 02-14-2021, 09:25 PM
Last Post: iTommix
  pilight switch node in node-red framp 0 948 06-24-2020, 10:01 PM
Last Post: framp
  Trigger a configured switch from other computer by CLI beejayf 3 966 02-24-2020, 07:17 PM
Last Post: beejayf
  [Solved] Strange receive problem with 433Mhz Receiver and pilight 8.1.5 vanillaice30 15 3,535 12-18-2019, 11:09 AM
Last Post: vanillaice30
  Strange issues with kaku_switch and v8.1.4 bitboy 7 2,134 05-13-2019, 09:17 PM
Last Post: curlymo
  [SOLVED] Home Assistant switch gpio segalion 5 2,807 09-10-2018, 12:39 PM
Last Post: segalion
  pilight 8.1 and switch with date and time not working Pikeman 7 2,919 06-30-2018, 11:28 PM
Last Post: curlymo
  Looking for a cheap temperature and humidity sensor madmoses 10 3,928 03-11-2018, 03:47 PM
Last Post: geokscott
  pilight-send for like rc-switch "send" mindau 1 2,395 01-18-2018, 07:46 AM
Last Post: madmoses
  [Fully Supported] Conrad RSL Switch Hexcode 137 79,689 12-02-2017, 08:48 AM
Last Post: Micha_123

Forum Jump:


Browsing: 1 Guest(s)