• 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


eHome Switches
#51
If you want to play around, use the raw codes.

0 = 282 846 846 282
1 = 846 282 846 282
2 = 282 846 282 846

So normally you use 1 and 0 except for the state. That uses 1 and 2. Always end with the footer of 282 9588. The final raw length should always be 50 pulses.
 
Reply
#52
(05-24-2014, 04:57 PM)curlymo Wrote: If you want to play around, use the raw codes.

0 = 282 846 846 282
1 = 846 282 846 282
2 = 282 846 282 846

So normally you use 1 and 0 except for the state. That uses 1 and 2. Always end with the footer of 282 9588. The final raw length should always be 50 pulses.

When to use 0 and when to use 2?
 
Reply
#53
Good question. I need remotes to know when to use 0, 1 or 2. Do you now understand why i can't provide the binary function Wink
 
Reply
#54
(05-24-2014, 08:56 PM)curlymo Wrote: Good question. I need remotes to know when to use 0, 1 or 2. Do you now understand why i can't provide the binary function Wink

I wrote a quick bash script that converts 0, 1 and 2 in the pieces you posted here.
Seems like 1 is only needed for the first digit to turn it on.
The next 1s in the binary code need to get replaced with 2 in order to work.
0 stays 0.
To turn on unit 1 the binary code would be:
Code:
1 2 2 0 0 0 0 0 0 0 0 0
 
Reply
#55
Hi dieterhatn,

can you post your script so that i can try a little bit too?

Greetings holybabel
 
Reply
#56
Can we use this to improve the protocol? Maybe describe it a bit more?
 
Reply
#57
(05-25-2014, 11:56 AM)holybabel Wrote: Hi dieterhatn,

can you post your script so that i can try a little bit too?

Greetings holybabel

Alright, here it is.
Its quite simple. you have to enter the binary code as arguments, seperated with space.
E.g.
Code:
bash send.sh 1 2 0 1 2 0 1 2 0 1 2 0

send.sh:
Code:
string=""
for var in "$@"
do
    if [ $var == "0" ]; then
    string+="282 846 846 282 "
    elif [ $var == "1" ]; then
    string+="846 282 846 282 "
    elif [ $var == "2" ]; then
    string+="282 846 282 846 "
    fi
done
string+="282 9588"
pilight-send -p raw -c "$string"
 
Reply
#58
(05-25-2014, 11:15 AM)dieterhatn Wrote: To turn on unit 1 the binary code would be:
Code:
1 2 2 0 0 0 0 0 0 0 0 0

Hi dieterhatn,

for me it is

Code:
./send.sh 2 2 2 0 0 0 0 0 0 0 0 0
to turn Unit one on and
Code:
./send.sh 1 2 2 0 0 0 0 0 0 0 0 0
to turn it off again.

So, as curlymo wrote for the state 1= OFF, 2=ON

For unitcode and housecode it is 0=OFF, 2=ON, both in reversed order.
So unit 1 with housecode OFF,ON,ON must be:
Quote:./send.sh 2 2 2 0 2 2 0 0 0 0 0 0

ALL TESTED WITH SN 050701
 
Reply
#59
(05-26-2014, 02:10 PM)holybabel Wrote:
(05-25-2014, 11:15 AM)dieterhatn Wrote: To turn on unit 1 the binary code would be:
Code:
1 2 2 0 0 0 0 0 0 0 0 0

Hi dieterhatn,

for me it is

Code:
./send.sh 2 2 2 0 0 0 0 0 0 0 0 0
to turn Unit one on and
Code:
./send.sh 1 2 2 0 0 0 0 0 0 0 0 0
to turn it off again.

So, as curlymo wrote for the state 1= OFF, 2=ON

For unitcode and housecode it is 0=OFF, 2=ON, both in reversed order.
So unit 1 with housecode OFF,ON,ON must be:
Quote:./send.sh 2 2 2 0 2 2 0 0 0 0 0 0

ALL TESTED WITH SN 050701

That's awesome! That will help developing the protocol a lot. Housecode and IDs are working, now lets try to get the other model types working, so we can flag this as fully supported! Smile
 
Reply
#60
Looks like the last 3 digits dont do anything, wether theyre set to 0, 1 or 2 doesnt matter it always turns on/off. Looks like we cant get support for any other model types than 050701 without a remote
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Unitec Switches rien-ne-va-plus 48 33,842 05-29-2019, 02:16 PM
Last Post: bitboy
  RSL366T Switches juri 60 31,446 05-24-2018, 06:48 PM
Last Post: bobg
  [Fully Supported] Clarus Switches Marcin 69 30,982 01-30-2018, 07:10 PM
Last Post: Niek
  Unitec / Intertek Switches dieterhatn 1 1,456 03-07-2017, 07:04 PM
Last Post: pilino1234
  CLOSED: Unbranded White Programmable plug-in wall switches alasdairc 8 3,342 11-13-2016, 11:47 PM
Last Post: alasdairc
Brick Aukey Switches VrahoK 5 2,352 11-01-2016, 06:56 AM
Last Post: curlymo
  DBPower Switches joaoasilva 5 3,543 09-25-2014, 08:45 PM
Last Post: joaoasilva
  Support for Schwaiger/Goobay switches plinden 10 6,787 05-16-2014, 11:20 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)