• 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


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Switching ceiling fan with pilight-send -p raw
#1
Hi forum !

I am new to pilight but what I have seen so far is really great. I have been playing around with a gpio connected receiver and transmitter and I am able to switch some old intertechno wall plugs I had laying around. Receiving from an intertechno remote also works.

I use pilight 7.0 from http://apt.pilight.org/ on a raspi B2 with raspian 8.0

My goal is to take control of my ceiling fan. The remote has 4 Buttons for the motor
off / low / med / hi and a fifth button "light" that toggles the integrated light fixture.
Inside the remote there is a 4 way dip switch to set a house code which has to be the same as the code that is used in the receiver in the fan.
It looks similar to this [Image: Fan%20remote%20control%20OET-FRC210.jpg]

Unfortunately pilight does not seem to know this type of remote control.

I do not get any output in pilight-receive when I press buttons on the remote. So I tried to capture some raw data with pilight-debug


This is what I get for Button "High"

Code:
pilight-debug
Press and hold one of the buttons on your remote or wait until
another device such as a weather station has send new codes
The debugger will automatically reset itself after one second of
failed leads. It will keep running until you explicitly stop it.
This is done by pressing both the [CTRL] and C buttons on your keyboard.
--[RESULTS]--

time:        Fri Dec 11 17:42:38 2015
hardware:    433gpio
pulse:        2
rawlen:        26
pulselen:    253

Raw code:
253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 253 506 8602
^C

I have tried to send this to the fan with

Code:
pilight-send -p raw --code="253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 506 253 253 506 8602"

but the fan would not switch on.

What are my options now ?

Thanks for any ideas, I am stuck with this project at the moment :-(

Regards,

Roland
 
Reply
#2
Hi Roland,
Nice work so far.
Try to receive the signal multiple times and find the one "that looks best" (occurs most often and has typically only three different values)
In addition I think the \ characters should be removed from the send command
 
Reply
#3
Hi and welcome to the forums! Smile

I'd recommend starting a thread for this device in the protocol development subforum so that a pilight protocol can be developed. Just read the sticky at the top of that subforum before submitting your post though to make sure it includes all the necessary information.
 
Reply
#4
Hi,

good news: I have now sucessfully captured some debug which also works when send from pilight. I also have posted my results here.

Regards, Roland
 
Reply
#5
Hi all!

I am new in this forum, so please apologize my mistakes, if any.

I think, I have the same ceiling fan, my debug output looks very similar to the already posted one´s. I have opened the remote control, and find a controller chip HT-12E. I found description of this chip in internet. Chip has 8 address lines and 4 data lines. I see from layout of board, that the remote keys are connected to address lines of chip, the 4 data lines are connected to the dip switches, where the unique code is setup.

Perhaps the chip is also used in some other remote controls, so that protocol implementation can be taken from there.
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  pilight Nano USB interface curlymo 228 94,060 07-10-2019, 06:14 PM
Last Post: curlymo
  problems compiling pilight on Odroid C2 WitchDoctor 101 8,661 03-14-2019, 09:01 PM
Last Post: curlymo
  Issue send actions over Socket API in AdHoc network ggtrts 10 649 03-13-2019, 06:32 AM
Last Post: curlymo
  Send pulsestream via API Phunkafizer 19 902 02-27-2019, 09:54 PM
Last Post: curlymo
  pilight 8 what chages for custom protocols? polo 11 2,655 02-15-2019, 06:22 PM
Last Post: polo
  pilight-debug shows nothing minhdomanh 3 470 10-18-2018, 07:01 AM
Last Post: felfert
  pilight-send and pilight-daemon DieterK 0 505 06-20-2018, 12:44 AM
Last Post: DieterK
  Lights not switched on or off by rules in pilight 8.1.0 rorie 22 2,296 06-12-2018, 03:56 PM
Last Post: curlymo
  check API in pilight 8 stratege-0815 4 1,270 02-11-2018, 09:34 AM
Last Post: stratege-0815
  pilight-receive terminates zackdvd 8 1,506 12-30-2017, 09:07 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)