• 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


[Fully Supported] Clarus Switches
#1
Hi,

I would like to add my Clarus switches to config.
It's working very well using option send raw.
(pilight-send -p raw -c "189 567 567 189 189 567 567 189 189 567 189 567 189 567 567 189 189 567 189 567 189 567 567 189 189 567 756 189 189 567 567 189 189 567 189 567 567 189 567 189 189 567 189 567 567 189 567 189 189 6426")

I was trying also (but without success):
pilight-send -p elro -s 5 -u 2 -t
pilight-send -p home_easy_old -s 5 -u 2 -t
and send from rc-switch
send 00101 2 1
sending systemCode[00101] unitCode[2] command[1]

Debug Key 1 ON
Code:
pulse:          3
rawlen:         50
binlen:         12
pulselen:       189

Raw code:
189 567 756 189 189 567 567 189 189 567 189 567 189 567 567 189 189 567 189 567 189 567 567 189 189 567 756 189 189 567 567 189 189 567 189 567 567 189 567 189 189 567 189 567 567 189 567 189 189 6426
Binary code:
001010001010

Debug Key 1 OFF
Code:
pulse:          3
rawlen:         50
binlen:         12
pulselen:       190

Raw code:
190 570 570 190 190 570 570 190 190 570 190 570 190 570 570 190 190 570 190 570 190 570 570 190 190 570 570 190 190 570 570 190 190 570 190 570 570 190 570 190 570 190 570 190 190 570 190 570 190 6460
Binary code:
001010001001

Debug Key 2 ON
Code:
pulse:          3
rawlen:         50
binlen:         12
pulselen:       189

Raw code:
189 567 567 189 189 567 567 189 189 567 189 567 189 567 567 189 189 756 189 567 189 567 567 189 189 567 567 189 189 567 567 189 567 189 567 189 189 567 189 567 189 567 189 567 567 189 567 189 189 6426
Binary code:
001010000110

Debug Key 2 OFF
Code:
pulse:          3
rawlen:         50
binlen:         12
pulselen:       189

Raw code:
189 567 567 189 189 567 567 189 189 567 189 567 189 567 567 189 189 567 189 567 189 567 567 189 189 567 567 189 189 567 567 189 567 189 567 189 189 567 189 567 567 189 567 189 189 567 189 567 189 6426
Binary code:
001010000101

Debug Key 3 ON
Code:
pulse:          3
rawlen:         50
binlen:         12
pulselen:       189

Raw code:
189 567 567 189 189 567 567 189 189 567 189 567 189 567 567 189 189 567 189 567 189 567 567 189 189 567 567 189 567 189 567 189 189 567 189 567 189 567 189 567 189 567 189 567 567 189 567 189 189 6426
Binary code:
001010001110

Debug Key 3 OFF
Code:
pulse:          3
rawlen:         50
binlen:         12
pulselen:       189

Raw code:
189 567 567 189 189 567 567 189 189 567 189 567 189 567 567 189 189 567 189 567 189 567 567 189 189 567 567 189 567 189 567 189 189 567 189 567 189 567 189 567 567 189 756 189 189 567 189 567 189 6426
Binary code:
001010001101

pilight-learn
Code:
pulse:          3
rawlen:         50
binlen:         12
plslen:         190

on-off bit(s):  10 11
all bit(s):
unit bit(s):    8 9

Raw code:
190 570 570 190 190 570 570 190 190 570 190 570 190 570 570 190 190 570 190 570 190 570 570 190 190 570 570 190 570 190 570 190 190 570 190 570 190 760 190 570 190 570 190 570 570 190 570 190 190 6460
Raw simplified:
On:     01100110010101100101011001100110010110100101101001
Off:    01100110010101100101011001100110010110100101101001
All:    01100110010101100101011001100110010110101010010101
Unit 1: 01100110010101100101011001100110010110100101101001
Unit 2: 01100110010101100101011001100110101001010101101001
Unit 3: 01100110010101100101011001101010010101010101101001
Binary code:
On:     001010001010
Off:    001010001001
All:    001010001001
Unit 1: 001010001010
Unit 2: 001010000110
Unit 3: 001010001110
 
Reply
#2
Can you please change the [ quote ] tags to [ code ] tags?
 
Reply
#3
Sure, done.
 
Reply
#4
Looks like easily possible Smile
 
Reply
#5
That's a really great news! But question how ?
 
Reply
#6
By having patience.
 
Reply
#7
Can you test the latest development version on git?
 
Reply
#8
Sure!
Reciving works good
Code:
root@malina:/etc/pilight# pilight-receive
{
        "code": {
                "id": "A2",
                "unit": 10,
                "state": "on"
        },
        "origin": "receiver",
        "protocol": "clarus_switch",
        "repeats": 1
}
also send is working very well
root@malina:/etc/pilight# pilight-send -p clarus_switch -u 10 -i B1 -t
root@malina:/etc/pilight# pilight-send -p clarus_switch -u 10 -i B1 -f

But i have problem with config.json. I'm not able to set "id": B1
Code:
root@malina:/etc/pilight# cat config.json
{
        "living": {
                "name": "Living",
                "W1": {
                        "name": "W 1",
                        "protocol": [ "clarus_switch" ],
                        "id": [{
                                "id": B1,  <-------- here
                                "unit": 10
                        }],
                        "state": "off"
                }
        }
}
root@malina:/etc/pilight# service pilight start
[....] Starting : pilight[Nov 17 08:55:54:659184] pilight-daemon: ERROR: config is not in a valid json format
failed!
root@malina:/etc/pilight# nano config.json
root@malina:/etc/pilight# cat config.json
{
        "living": {
                "name": "Living",
                "W1": {
                        "name": "W 1",
                        "protocol": [ "clarus_switch" ],
                        "id": [{
                                "id": 1,
                                "unit": 10
                        }],
                        "state": "off"
                }
        }
}
root@malina:/etc/pilight# service pilight start
[ ok ] Starting : pilight.
root@malina:/etc/pilight#
 
Reply
#9
You received this:

Quote:"code": {
"id": "A2",
"unit": 10,

You maybe have to use qoutes around the A2 but looking at the wiki there are none, otherwise check you code against:

http://jsonlint.com/
 
Reply
#10
A2 is for switch 1
B1 is for switch 2
C3 is for switch 3

You are right. it should be like "id": "B1"
Now all is working correct, thank you very much!!
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
Lightbulb [Fully Supported] Kaku Door sensor (AMST-606) geerttttt 53 24,390 10-19-2019, 06:26 PM
Last Post: curlymo
  Unitec Switches rien-ne-va-plus 48 28,813 05-29-2019, 02:16 PM
Last Post: bitboy
  [Partially Supported] TFA / Conrad Weather Yves 184 11,615 03-31-2019, 05:22 PM
Last Post: curlymo
  [Fully Supported] DHT22 IcedEarth 86 31,639 11-18-2018, 09:33 AM
Last Post: curlymo
  RSL366T Switches juri 60 26,771 05-24-2018, 06:48 PM
Last Post: bobg
  [Fully Supported] Arctech Old Martin 111 35,577 03-27-2018, 04:43 PM
Last Post: genfersee
  [Fully Supported] Remote Control Socket (RC101-U/RC201) Sean 18 10,678 01-04-2018, 06:18 AM
Last Post: ettman8
  [Fully Supported] LM75 and LM76 temperature sensor horst_dieter 64 25,153 11-19-2017, 08:54 PM
Last Post: edepi
  Unitec / Intertek Switches dieterhatn 1 1,121 03-07-2017, 07:04 PM
Last Post: pilino1234
  [Fully Supported] No-brand temp/humidity sensor (alecto_ws1700) meloen 57 35,253 12-25-2016, 09:53 PM
Last Post: creamers

Forum Jump:


Browsing: 1 Guest(s)