Hi Guys,
I've just bought some siemens PIR sensors and am trying to get them to work with my lights -
I am using the scripts on the wiki - https://www.domoticz.com/wiki/Smart_Lua_Scripts
I've noticed that the motion sensor status is always on, there is no where in the script that turns it off.
So when the script has the following -
tc=next(devicechanged)
If the status for the pir doesn't change - then it doesn't get through the code, because there's nothing in the script to change it from on to off.
Please help, can't seem to get it to work.
PIR is being picked up and sends a on status, but the script doesn't seem to be running.
Thanks
siemens byron pir
Moderator: leecollings
- Westcott
- Posts: 423
- Joined: Tuesday 09 December 2014 17:04
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: UK - Glos
- Contact:
Re: siemens byron pir
Yes, I have similar ones.
Although the status doesn't change, the ON event fires when it is triggered -
if (devicechanged['Porch motion'] == 'On') then
I use this explicit test to set a virtual/dummy switch that switches itself off after a few seconds.
Although the status doesn't change, the ON event fires when it is triggered -
if (devicechanged['Porch motion'] == 'On') then
I use this explicit test to set a virtual/dummy switch that switches itself off after a few seconds.
Zwave - Sigma Z+ stick, Fibaro, Horstmann, Neo Coolcam, EUROtronic
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
RFlink - IR detectors and temperatures
Wifi - YeeLights, ESP32s, Anoop sockets
Zigbee - lots with zigbee2mqtt and ZbBridge
-
simonrg
- Posts: 329
- Joined: Tuesday 16 July 2013 22:54
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8807
- Location: North East England
- Contact:
Re: siemens byron pir
Check that you have the naming of all the devices exactly as set out in the wiki (spelling, capitalisation etc.). If that doesn't help then try some print statements to see where it is getting stuck.
Raspberry Pi 2 B - 2A@5V PSU - Raspbian + Domoticz + RFXtrx(89), LightwaveRF House(dimmers, sockets, wireless/mood switches), Owl CM113, 4 LaCross Temp / Humidity Sensors, 4 Siemens PIR, Smappee, Solaredge, ESP8266
-
NietGiftig
- Posts: 121
- Joined: Sunday 11 October 2015 8:50
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.6224
- Location: Holland
- Contact:
Re: siemens byron pir
The off status is accomplished by another script in the same wiki smart lua scripts.
You need 2 scripts, a device and a time script.
Device for on, time for off
You need 2 scripts, a device and a time script.
Device for on, time for off
RPI-2 + SSD / ESPEasy Sensors & Switches / Sonoff / RFLink / Action Switches / TP-Link switch / Node-Red / Reacticz
Who is online
Users browsing this forum: No registered users and 1 guest