lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement

Moderator: leecollings

Post Reply
edgarhildering
Posts: 31
Joined: Thursday 11 June 2015 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement

Post by edgarhildering »

Hi All,

The subject line says it pretty well, I think. My RFXcom (ext2/vs1024), domoticz v4.9700 detects my PIR sensor as lighting 5 Kangtai / cotech. As soon as movement is detected, an Off value is reported by Domoticz. I am expecting een On value. In case of receiving an On value I can make domoticz generate an Off value after 5 seconds.

Any suggestions here? Any likewise experiences?

greetings, --Edgar
RaspberryPi running Domoticz 2023.2
PIRs + lightswitches
thermometers + heating control
hygrometers + dehumifiers
TUYA switches
Ramnol
Posts: 8
Joined: Sunday 18 June 2017 9:52
Target OS: Linux
Domoticz version: 2024.4
Location: Landgraaf, Netherlands
Contact:

Re: lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement

Post by Ramnol »

Hi Edgar,

I have the same problem with two sensors (WOFEA PIR Sensor) working with the lighting 5 Kangtai/Cotech protocal and didn't find a solution yet.
Luckily one of the two sensors works also with the lighting 4 PT2262 protocol. With this protocol the sensor gives a continues ON value but, like you suggested, domoticz generates an OFF value after 15 second (in my settings).
Did you find a solution yet?

Greetings Gus.

PS. I tested the sensors with RFLink. There was no problem at all. Both sensors were recognized as light/switch EV1527.
Maby I'm wrong but I think this is a RFXCOM problem.
b_weijenberg
Posts: 518
Joined: Friday 12 July 2013 18:13
Target OS: -
Domoticz version:
Location: Netherlands
Contact:

Re: lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement

Post by b_weijenberg »

The sensor has probably an EV1527 or PT2262 chip. The protocol used by these chips is Lighting4 and produces a 24 bit value. If the format and pulse timing is about the same as used by another protocol like CoTech it can be decoded as such.
The Kerui sensors are listed as supported and correct decoded.
RFX-433, RFX-433EMC, RFX-868
Ramnol
Posts: 8
Joined: Sunday 18 June 2017 9:52
Target OS: Linux
Domoticz version: 2024.4
Location: Landgraaf, Netherlands
Contact:

Re: lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement

Post by Ramnol »

@b_weijenberg.
Thanks for your reply.
RFXCOM can decode the motion sensor. That isn't the problem. The code from the sensors, using the CoTech protocol, result in a OFF signal in Domoticz. So you don't see if a motion detection has been registered. However in the log file from the sensor you can see the detection with the time when that happened.
My question: is there a workaround to see the detection with the CoTech protocol as a ON signal.
Thanks in advance.

Greetings Gus.
b_weijenberg
Posts: 518
Joined: Friday 12 July 2013 18:13
Target OS: -
Domoticz version:
Location: Netherlands
Contact:

Re: lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement

Post by b_weijenberg »

The sensor transmits a packet with the same code as the CoTech OFF.
Maybe an option to create a virtual sensor and set this device to On by a script when an Off is detected.
RFX-433, RFX-433EMC, RFX-868
edgarhildering
Posts: 31
Joined: Thursday 11 June 2015 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version: 2023.2
Contact:

Re: lighting 5 kangtai / cotech motion sensor sends 'Off' value when detecting movement

Post by edgarhildering »

Hi Guys,
There is always a possibility to catch the off-signal in a lua script and turn a motion sensor (virtual device) on: it 'negates' the 'off' to 'on' which can then be turned 'of' again after 10 secs or so. I have done lots of tricks in LUA, so that is not the problem. But as Gus (@ramnol) says: is there a workaround to see the detection with the CoTech protocol as a ON signal? Because that is how you expect motion to be detected: ON if there is motion, OFF when there is no motion (anymore).

greetings --Edgar
RaspberryPi running Domoticz 2023.2
PIRs + lightswitches
thermometers + heating control
hygrometers + dehumifiers
TUYA switches
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest