ELMES Switch Contact - help to start working Topic is solved

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
piokuc

ELMES Switch Contact - help to start working

Post by piokuc »

Hi
I have on my windows switch conntact ELMES CTX4H. To firmware version 39 it works ok by from version 40 for me not working and i dont know how do to start working. It working on protocol KEELOQ. I remove all me devices and add again by ALLOW for 5 Muntes. Then i go to my window and open it and then close. In domoticz devices found me two devices Light/Switch (on/off). I dont know why found me two device and how use it to work as SWITCH CONNTACT. This devices has the same ID but other UNIT. When i close or open windows it is no change status. One is still ON and one is still OFF. Only change time LAST SEEN. When i not open and close window in log show change status. But in this time i am sure that i not open and close window.

Please help me. For me it is not to use from version 42. On version 39 firmware it works perfect and found in devices only one device , add this and only change type to conntact switch and works perfect. Now it was destroy and i have to trash 6 my switch devices.

Image
http://fotoo.pl/show.php?img=1111758_elmes.jpg.html
artip
Posts: 3
Joined: Wednesday 03 February 2016 19:17
Target OS: NAS (Synology & others)
Domoticz version: beta
Location: Poland, Cracow
Contact:

Re: ELMES Switch Contact - help to start working

Post by artip »

I have the same problem with CTX3H.
piokuc

Re: ELMES Switch Contact - help to start working

Post by piokuc »

How you resolved this problem ? if you found any solution please write...
I write to RFLink Frank ([email protected])... but it tell me that all is ok... :(
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ELMES Switch Contact - help to start working

Post by Stuntteam »

piokuc, as explained in various emails already.. the implementation of Keeloq is ok.
Only the plain part of the keeloq messages are used.
If you want a smooth working device you should purchase something else or use scripting.
Once your Elmes device triggers a signal you can use Domoticz to reverse the state after some seconds.
To overcome the issue of 2 devices (one for open and one for close) you can use a script to combine this to one sensor.
Check the script section on the forum or post there for scripting help.
If scripts are too complicated for you, then you really should think of purchasing a device that works easier!
Also, emailing multiple times a day about this and making multiple posts on the forum is not nice and also not going to change this.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
piokuc

Re: ELMES Switch Contact - help to start working

Post by piokuc »

Hi
But i test it and ok found two devices but it is no for open and close. It is no change status. Example i have deice with UNIT 4 to open but when i open window it no change status. Second device with UNIT 12 also no change status after close window. It is still show status after found first time in Domoticz. When i open close window only change LAast Seen.


When it will be work to one device change status when open and second device also change status when close i can use scripting. But now only use scripting in domoticz with virtual device type on/off not working with virtual devices type conntact.
Please explaine me how work this two device which is found in domoticz.

Wysłane z mojego Galaxy S6 za pomocą Tapatalk
User avatar
Stuntteam
Posts: 399
Joined: Wednesday 06 May 2015 16:39
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: ELMES Switch Contact - help to start working

Post by Stuntteam »

piokuc wrote:Hi
But i test it and ok found two devices but it is no for open and close. It is no change status.
Stuntteam wrote:Once your Elmes device triggers a signal you can use Domoticz to reverse the state after some seconds.
Many devices just send ON/OPEN and never send the OFF/CLOSE signal. Domoticz has the ability to reset the state of such devices after x seconds.
-=# RFLink Gateway Development Team #=-
Introduction: http://www.nemcon.nl/blog2/
Generic RFLink Support forum: http://www.esp8266.nu/forum/viewforum.php?f=8
piokuc

Re: ELMES Switch Contact - help to start working

Post by piokuc »

Ok but why domoticz found two devices from connected with my switch ELMES ? I must use only one device with UNIT 4 and on it device i must reset state?

And why in Fw 39 found one device and show status open and closed?

Wysłane z mojego Galaxy S6 za pomocą Tapatalk
mrf68

Re: ELMES Switch Contact - help to start working

Post by mrf68 »

I think it works like this: if contact opens, then Domoticz will see that unit 4 sends the ON signal. When you close the contact, Domoticz will see unit 12 sends the OFF signal. Unit 4 is always on and unit 12 is always off. So it is correct that the only thing that changes, is Last Seen.

So how can you script this?

Create a dummy contact and give it a name, for example: Window1. Then create a script:

If unit 4 = On
then Window1 = open
Elseif unit 12 = On
then Window1 = closed
piokuc

Re: ELMES Switch Contact - help to start working

Post by piokuc »

But device on Unit 12 never show state ON.
But what when unit 4 and 12 has state ON ?

Wysłane z mojego Galaxy S6 za pomocą Tapatalk
mrf68

Re: ELMES Switch Contact - help to start working

Post by mrf68 »

I'm sorry, my example script is not correct. The Elseif statement should say:

Elseif unit 12 = Off
then Window1 = closed
piokuc

Re: ELMES Switch Contact - help to start working

Post by piokuc »

But for me unit 4 still show status ON despite i close window...unit 12 still show state OFF. State switch is no change, only in log switch show info that ON state on swich unit 4 and OFF info on switch unit 12.

Wysłane z mojego Galaxy S6 za pomocą Tapatalk
mrf68

Re: ELMES Switch Contact - help to start working

Post by mrf68 »

That is way you can't tell the status of the window with just the status of unit 4. It will always be On. And as I said earlier, unit 12 will always be Off. It's like the "Push On" button and the "Push Off" button. The "Push On" button will alsways show the status of being "On", but Domoticz will change the "Last seen" whenever you push the button. So you can make a script that does something whenever that button is pressed, without the need of changing the status. If you turn on a light that is already on, then you will not see a change of status of the light, but the "last seen" date has changed.
piokuc

Re: ELMES Switch Contact - help to start working

Post by piokuc »

Ok but how write script to check status last seen ?

Wysłane z mojego Galaxy S6 za pomocą Tapatalk
mrf68

Re: ELMES Switch Contact - help to start working

Post by mrf68 »

Checking the last seen status is one way to determine the status of the contact. I would do it in another way.

I did some testing. I created a contact manually, but I can't set it to Open or Closed with Blockly or LUA. It just doesn't happen. When I try to do the same with a Light Switch, it works perfectly. So I suggest another option.

- Create a virtual Text sensor (Setup - Hardware - Create Virtual Sensor, give it a name and choose Sensor Type: Text)
- Look it up in Setup - Devices and write down the Idx of the text sensor
- Create a LUA script:

Code: Select all

commandArray = {}
if 
	devicechanged['unit 4'] == 'On'
then
	commandArray['UpdateDevice'] = idx .. '|0|' .. "Window is OPEN"
elseif
	devicechanged[unit 12'] == 'Off'
then
	commandArray['UpdateDevice'] = idx .. '|0|' .. "Window is CLOSED"

end
return commandArray
In the script, replace the idx with the number you wrote down. Change unit 4 to the real name of the switch that is the On command, change unit 12 to the name of the switch that is the Off command.

Now the Text Sensor is showing you the status of your contact.

I also made a video.

[youtube]https://youtu.be/n00F7TxoA8k[/youtube]
piokuc

Re: ELMES Switch Contact - help to start working

Post by piokuc »

All is OK works perfect thanks.

But i need have switch from RFlink add to switches. How i can correct script to no need added switches RFlink to tab switches ? I want to have only on settings>devices... no add to tabs
mrf68

Re: ELMES Switch Contact - help to start working

Post by mrf68 »

Add the switch you don't want to the room plan "$Hidden Devices".
piokuc

Re: ELMES Switch Contact - help to start working

Post by piokuc »

Ahh ok :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest