Add a switch manualy without the remote ?

433Mhz opensource Receiver & Transmitter.

Moderators: leecollings, Stuntteam

Post Reply
charlelie
Posts: 3
Joined: Thursday 04 June 2015 9:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Add a switch manualy without the remote ?

Post by charlelie »

Hi,
RFLink is working good with RFLinkLoader. I can send commands to Powerfix swiches with

First switch
10;Powerfix;000000;0;ON;
10;Powerfix;000000;0;OFF;

Second switch
10;Powerfix;000000;1;ON;
10;Powerfix;000000;1;OFF;

But I don't have the remote of them. How could I add them manualy in Domoticz ? I'm trying by setting ON/OFF "Switch Type", but in "Type" or at any other place, there isn't a field to set Powerfix. I used "Test" with all "Types" watching in logs but no one seems to match Powerfix.

Thank you
sundberg84
Posts: 52
Joined: Sunday 17 May 2015 11:20
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Sweden
Contact:

Re: Add a switch manualy without the remote ?

Post by sundberg84 »

Hi!
According to https://github.com/domoticz/domoticz/bl ... nkBase.cpp there is Powerfix in the RfLink lib (Line 30) with a //p13 comment. This comments is the same as { "EMW100", sSwitchTypeEMW100 }, // p13 so I would try this, adding a manual switch for EMW100/200 and watch the logs if you get any powerfix output or your switch learns this code.
Controller: Domoticz (Raspberry PI)
Gateways: MySensors (Ethernet W5100), RFLink
charlelie
Posts: 3
Joined: Thursday 04 June 2015 9:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Add a switch manualy without the remote ?

Post by charlelie »

Hi ! Thx for help, but this type seems to be not working. When pressing test, nothing appears. And when the switch is already created with this type, I have this error in the GUI : Error sending switch command, check device/hardware !
And nothing in logs.

Thus, currently, I'm doing ON/OFF actions on a virtual switch which is doing on my Raspberry Pi :
echo "10;Powerfix;000000;1;ON;" > /dev/ttyACM0
Or
echo "10;Powerfix;000000;1;OFF;" > /dev/ttyACM0

But it's not very clean :)
prijt
Posts: 16
Joined: Thursday 09 March 2017 22:36
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Finland
Contact:

Re: Add a switch manualy without the remote ?

Post by prijt »

A bit late, but after some trial & error I found the answer:

1. put the physical switch in discovery mode by keeping the button pressed till the led starts blinking
2. echo "10;EMW100;ffffff;0;PAIR;" > /dev/ttyACM0 (where ffffff is the hex address you want to give to the switch and ttyACM0 the address of the RFlink board)

Now you can use the 10;EMW100;ffffff;0;ON; and 10;EMW100;ffffff;0;OFF; commands to switch.

I hope this helps...

PS. The EMW100 switch needs a looooong OFF press from the remote to pair, the PAIR command does just that.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest