• 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


Unitec Switches
#21
How was the binary output created ?
After 4 lines the code repeats.
 
Reply
#22
Hello there!

I noticed too, that it repeats. I was curious how could that piece of code be interpreted as On/Off commands, as the signals do not seem to have anything in common. I could test a second remote, maybe some things will prove at least similar.

Sadly I forgot at work the files with the raw data, so I cannot show you. But I acquired it with an oscilloscope, directly from the remote's chip output and the signal was consistent with other people's findings: OOK encoding. Similar with what this guy and this other guy found, but a little bit better looking, since it was captured with the oscilloscope, instead of the sound card.

If in 30 hours nobody recommends anything better, I'll order this RF kit from DX.com but it will take a while to receive it. It's among the recommended one so I guess it's OK.

Wish you a nice day!
 
Reply
#23
Sad 
Hello peoples,

I'm (also) new here. And first I wanna say that this is a grait platform. My compliments! It's really interesting to install the stuff and see it function (altho I reinstall the whole Pi twice Wink.

So he're is my problem:
For the last 3 days I wanna use pilight to interact with unitec switch model: eim 821/art.48111. Now i was hoping op a typo and that it must be Unitec, In the wiki the only device supported is unitech...

I succesfully received the code of the remote and send it raw (this was really cool!! ).
When I wanna configure the settings i run into problems with pilight not wanna to start. The logging says
Quote:[Aug 24 13:41:40:451923] pilight-daemon: INFO: version 5.0, commit v5.0
[Aug 24 13:41:40:566303] pilight-daemon: NOTICE: no pilight daemon found, daemonizing
[Aug 24 13:41:40:568710] pilight-daemon: ERROR: setting #3 "id" of "lamp", invalid

I checked it in JSONlint.com and the code was ok. When I alter the
Code:
"protocol": [ " unitech " ]
or
Code:
"protocol": [ " unitec " ]
into
Code:
"protocol": ["kaku_switch"]
pilight started.

Here the full code of config:
Code:
{
        "woonkamer": {
                "name": "Woonkamer",
                "lamp": {
                        "name": "lampachter",
                        "protocol": [ "kaku_switch" ],
                        "id": [{
                                "id": "22",
                                "unit": 0
                        }],
                        "state": "off"
                }
        }
}

I tryed to install the pilight developement as stated in this post and installation but the installer declared:
Quote:root@raspberrypi:/home/pi# apt-get install pilight
Pakketlijsten worden ingelezen... Klaar
Boom van vereisten wordt opgebouwd
De status informatie wordt gelezen... Klaar
pilight is reeds de nieuwste versie.
0 pakketten opgewaardeerd, 0 pakketten nieuw geïnstalleerd, 0 te verwijderen en 0 niet opgewaardeerd.
(:S sorry that it's in dutch)

What am I doing wrong?! Do I have to uninstall pilight first? and how do I uninstall pilight :S.
 
Reply
#24
Try "systemcode":22 instead of id and "unitcode": 0 instead of unit.

No do do not have to uninstall pilight, just stop the service and start it after you have finished editing.
<Give the HELP function in pilight-send a try:
Code:
x@y: pilight-send -p unitech -H
 
Reply
#25
Thumbs Up 
That was it! pilight will now start.

Quote:[Aug 24 18:03:14:742610] pilight-daemon: INFO: version 5.0, commit v5.0
[Aug 24 18:03:14:846297] pilight-daemon: NOTICE: no pilight daemon found, daemonizing
[Aug 24 18:03:14:853224] pilight-daemon: INFO: daemon listening to port: 54497
[Aug 24 18:03:14:856261] pilight-daemon: INFO: daemon started with pid: 6046
[Aug 24 18:03:14:906577] pilight-daemon: INFO: new client, ip: 127.0.0.1, port: 46117
[ Aug 24 18:03:15:49154] pilight-daemon: INFO: new client, ip: 192.168.2.16, port: 45739
[ Aug 24 18:03:15:57219] pilight-daemon: INFO: client recognized as gui

Here is the code of the configfile
Code:
{
        "woonkamer": {
                "name": "Woonkamer",
                "lamp": {
                        "name": "lampachter",
                        "protocol": [ "unitech" ],
                        "id": [{
                                "systemcode": 22,
                                "unitcode": 0
                        }],
                        "state": "off"
                }
        }
}

Maybe a idea to alter the wiki?! Although we can now Google for it Big Grin

Many thanks for your help wo_rasp! Now i can play along! Big Grin
 
Reply
#26
Galan, you have the version of Unitec sockets that do not have any channel switches and are getting into pairing mode every time you plug the sockets in?
 
Reply
#27
I think it is time for a wrap up. The topic of this thread is Unitec Switches

I have seen in this thread now several different sets of raw data and we do need to assign them to the hardware used, otherwise we may get lost.
Code:
user: rien-ne-va-plus, last visit on Apr-7th
[url=http://forum.pilight.org/Thread-Fully-Supported-Unitec-Switches?pid=4871#pid4871]Post #6[/url]
184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 184 552 552 184 552 184 184 552 184 6256
Code:
user: edwinwd, last visit June-7th
[url=http://forum.pilight.org/Thread-Fully-Supported-Unitec-Switches?pid=6703#pid6703]Post #10[/url]
300 1200 300 1200 300 1200 900 300 300 1200 900 300 300 1200 900 300 300 1200 300 1200 300 1200 300 1200 300 1200 900 300 300 1200 900 300 300 1200 900 300 300 1200 900 300 300 1200 300 1200 300 1200 900 300 300 10200
Code:
user: loft, active
posted binary data
@loft,
Can you please post more information on the switch and remote control you use (CSV format is okay) ?
Can you post at least one or two sets of the raw data from Post #21 or what the pulse to binary relation is and the pulse structure of the footer ?
 
Reply
#28
(08-24-2014, 07:56 PM)loft Wrote: Galan, you have the version of Unitec sockets that do not have any channel switches and are getting into pairing mode every time you plug the sockets in?

I have them both. So lot of tests about it. But it's good to know that auto pairing means that after installation you wanna leave the switch in Smile
 
Reply
#29
Hello there!

I'm sorry for the late answer but I kept on forgetting the files at work.

These samples were captured using a Tektronix oscilloscope. I don't remember the exact settings or the model, but I can add that tomorrow morning. Each button was captured 10 times (except for B1), the remote battery being removed when changing buttons. The letters represent the 4 devices, 1 being the on function and 2 off. The capture point is the exit from the chip and entrance in the RF modulator.

Then the saved ISF files were converted to CSV, which were shrunk to the length of one command, reduced in resolution by 100 times and put put into charts.

Here are the links to the archives:
- ISF
- full CSV
- conversion software with batch
- processed CSV with charts

Thank for this great project!

EDIT: The samples were captured using the Single function of a Tektronix DPO2024, each signal (ISF and full CSV) represending a whole screen.
 
Reply
#30
@loft
Any luck with your sockets? it seems that i have the same remote control as yours and i can't get it work...

output of pilight-debug for Button A On: http://pastebin.com/gGmBDGFW
and
output of pilight-debug for Button A Off: http://pastebin.com/6MRvKEVV

Thank you!
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  RSL366T Switches juri 60 48,516 05-24-2018, 06:48 PM
Last Post: bobg
  [Fully Supported] Clarus Switches Marcin 69 52,425 01-30-2018, 07:10 PM
Last Post: Niek
  Unitec / Intertek Switches dieterhatn 1 2,378 03-07-2017, 07:04 PM
Last Post: pilino1234
  CLOSED: Unbranded White Programmable plug-in wall switches alasdairc 8 5,876 11-13-2016, 11:47 PM
Last Post: alasdairc
Brick Aukey Switches VrahoK 5 4,164 11-01-2016, 06:56 AM
Last Post: curlymo
  eHome Switches ligi 95 62,669 12-01-2014, 04:40 PM
Last Post: curlymo
  DBPower Switches joaoasilva 5 5,345 09-25-2014, 08:45 PM
Last Post: joaoasilva
  Support for Schwaiger/Goobay switches plinden 10 10,057 05-16-2014, 11:20 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)