• 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


Smartwares switch SH5-RBU-04A and SH5-RBS-04A doesn't work with 8.0.3
#21
Hi Fatmax,

Ok, I'll try to explain the basics:
There is a protocol called raw which takes as a parameter whatever pulses you want to send. You can do more or less everything with it.
As an example - I can switch on my smartwares switch with the following command:

Code:
pilight-send -p raw --code="313 2504 313 313 313 1252 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 10642"

Each number in the quotes is for one pulse and it describes the length of the pulse.
For details regarding the meaning of each pulse have a look at the arc_tech protocol description.

In short:
One message has 32 bits of data each consisting of four pulses, two start and two end pulses, giving a total of 132 pulses. I used one of the recordings of a smartwares remote I found here in the forum because as you can see in my example above the pulse length is very straight-forward:
  • A short pulse is 313
  • A long pulse is 4 times as long as a short pulse
  • The second start pulse is 8 times as long as a short pulse
  • The second end pulse is 34 times as long as a short pulse
As this has been recorded from a smartwares remote control, I assume these are the optimum pulse lengths for smartwares devices. The pulses send by pilight's arc_tech protocol differ slightly in length but not in meaning.
  • A bit with the value 0 is short-short-short-long
  • A bit with the vaule 1 is short-long-short-short
With this information you should be able to binary code your id and unit code and send your own hand-crafted message to your switch.
I would suggest to first try to build a message to switch the switch "on" and then just change the state bit from 1 to 0 and you'll have an "off" message.

If off isn't working you can start playing with the different pulse lengths to find a message that is reliably working for you.

Hope that helps, let us know your results.

Br, str
 
Reply
#22
(09-27-2017, 09:42 PM)str Wrote: Hi Fatmax,

Ok, I'll try to explain the basics:
There is a protocol called raw which takes as a parameter whatever pulses you want to send. You can do more or less everything with it.
As an example - I can switch on my smartwares switch with the following command:

Code:
pilight-send -p raw --code="313 2504 313 313 313 1252 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 313 313 1252 313 313 313 1252 313 313 313 1252 313 1252 313 313 313 10642"

Each number in the quotes is for one pulse and it describes the length of the pulse.
For details regarding the meaning of each pulse have a look at the arc_tech protocol description.

In short:
One message has 32 bits of data each consisting of four pulses, two start and two end pulses, giving a total of 132 pulses. I used one of the recordings of a smartwares remote I found here in the forum because as you can see in my example above the pulse length is very straight-forward:
  • A short pulse is 313
  • A long pulse is 4 times as long as a short pulse
  • The second start pulse is 8 times as long as a short pulse
  • The second end pulse is 34 times as long as a short pulse
As this has been recorded from a smartwares remote control, I assume these are the optimum pulse lengths for smartwares devices. The pulses send by pilight's arc_tech protocol differ slightly in length but not in meaning.
  • A bit with the value 0 is short-short-short-long
  • A bit with the vaule 1 is short-long-short-short
With this information you should be able to binary code your id and unit code and send your own hand-crafted message to your switch.
I would suggest to first try to build a message to switch the switch "on" and then just change the state bit from 1 to 0 and you'll have an "off" message.

If off isn't working you can start playing with the different pulse lengths to find a message that is reliably working for you.

Hope that helps, let us know your results.

Br, str

Hi,
i have another question.
What sender do you use?
I have FS1000A as sender but the receiver doesn't work with pilight therefore i can't test the code from my remote.

When i change the pulse length, do i have to change value 313 and the multiplied one or do i have to add additional values?
I think adding values isn't correct because when i look at the code description this would change the parts (id, command, unit).

Greetings,
Fatmax
 
Reply
#23
Hi,

I'm using a SH5-TDR-F but haven't recorded the codes myself. I found them earlier in this thread.

Do not add any pulses - to be valid there must be 132 pulses in the message.

From now on it's all trial and error:
You can vary the numbers, i.e. make the long pulses 1300, or change the long and the short pulses together or just the short ones...

Or simply put your switch in learning mode and send my example command. The switch should accept it and switch on. Then modify the command to be an off-command and try it.


Br, str
 
Reply
#24
I tried to send in raw but i had the same effect.
I also expirmented with pulse length but this results in a crash of the raspberry.

I think the cheap china sender module doesn't worked correct but i don't want any longer make experiments because i need a solution for my living room which is working.

I bought therefore a broadlink rm pro and connected it with iobroker running on the raspberry.

This works now fine for me with the smartwares actuators.

Greetings for your help and patience,
Fatmax
 
Reply
#25
@curlymo:
As Fatmax has decided not to continue to investigate his issue, how do we proceed?
Do you want me to submit a pull request for this change to the arctech protocol or should I build an own protocol?

I'm using the modified version with two different smartwares switches since some weeks now without issues.
I do not have any kaku / intertechno switches to check for potential issues the change might cause there, though.

Br, str
 
Reply
#26
I would suggest a PR with the small change in arctech_switch
 
Reply
#27
Hello I am new to the forum. I try to connect my Smartwares SmartHome Remote Switch 1000 W, SH5-RBS-10A to my RaspberryPi3. I installed the updated version of pilight for with the changes for smartware products but I still cant connect to my switch. I have a sender and a receiver connected to the RPi so I can see if the sender is working. I also checked with an Arduino. Can someone please help connect to the switch. If you need any debug information feel free to ask and I will post them. Thank you!
 
Reply
#28
(11-07-2017, 04:50 PM)itsMe Wrote: If you need any debug information feel free to ask and I will post them. Thank you!

Just post it straight away?? We can do literally nothing with the information you provided thus far.
 
Reply
#29
Sorry I dont know what exactly you need. I dont have a remote I just tried the commands in the thread.
 
Reply
#30
Never mind what I wrote I reinstalled the corrected pilight and now everything is working perfect. You can delete everything I wrote if you like. Thank you for your awesome work!
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  Owsoo Wall Switch (Push Button / Sold for Sonoff devices with 433MHz)) hawkeyexp 0 35 10-14-2019, 10:32 PM
Last Post: hawkeyexp
  Etekcity Switch geokscott 2 818 07-11-2019, 03:48 PM
Last Post: hepcat72
  SW-R01 / Geekbes Wireless Lights Switch gogosjon 0 368 10-13-2018, 05:29 PM
Last Post: gogosjon
  Switch Mumbi m-FS300 display as arctech-switch Rschnauzer 7 1,255 03-24-2018, 07:13 PM
Last Post: Rschnauzer
  Intertek with DIP Switch compuman1 12 8,128 01-15-2018, 07:59 PM
Last Post: madmoses
  Voltomat switch aszepeshazi 1 3,014 12-05-2017, 02:55 AM
Last Post: Archimdes
  [Work in Progress] Rev Ritter aevh 169 75,813 11-22-2017, 06:33 PM
Last Post: curlymo
  REV Switch Typ 8342L madeluxe 4 3,684 08-02-2017, 05:08 PM
Last Post: Flotto
  [Work in progress] somfy controller sandoz 128 45,319 05-06-2017, 10:38 AM
Last Post: wo_rasp
  DS-4 protocol (magnetic switch, EV1527 deviation) torwag 2 1,335 04-23-2017, 10:02 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)