Hello,
New user of Home Assistant ( and of rfxcom… ), Installed official hass.io image on a Rpi4. HassOS 3.13 with Supervisor 220.
So… the story :
I have a somfy gate and to keep thing simple installed a somfy 1841022 relay on a already existing garage door motor. This setup allowed me to use only one remote ( more pocket friendly ).
Now I wanted to control it with Home Assistant. So I bought a rpi4 and rfxcom.
Didn’t have any problem with the gate, sync / remember unique ID / setup in HA and done.
But for the somfy relay, it’s another story. After sync of the virtual remote, all “normal” command in rfxmngr didn’t work, as the relay don’t understand “open” “close” commands.
After some test, found that the “my” command ( the first one in the list in rfxmngr ) does work :
================================================
01/05/2020 07:51:22:218= RFY command: 0C 1A 00 06 04 05 06 03 00 00 00 00 00
================================================
Packettype = RFY
subtype = RFY
Sequence nbr = 6
id1-3 = 040506 decimal:263430
Unit = 3
Command = stop
rfu1 = 00
rfu2 = 00
rfu3 = 00
Signal level = +10 dBm
------------------------------------------------
01/05/2020 07:51:23:005= 0402010600
Packettype = Receiver/Transmitter Message
subtype = Transmitter Response
Sequence nbr = 6
response = ACK, data correct transmitted
Tried to do the same configuration as the gate and using the “stop” button ( as the command in the log) didn’t work.
After some research, found this workaround to push specific command with rfxcom but that didn’t work ( tried with the hex command in the log of rfxmngr too ):
switch:
platform: command_line
switches:
lift:
command_on: ‘echo -ne “\x0C\x1A\x00\x06\x04\x05\x06\x03\x00\x00\x00\x00\x00” > /dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO4YVKU7-if00-port0’
command_off: ‘echo -ne “\x07\x1A\x00\x00\x04\x05\x06\x03\x00\x00\x00\x00\x00” > //dev/serial/by-id/usb-RFXCOM_RFXtrx433XL_DO4YVKU7-if00-port00’
The echo… command line with the redirection didnt work on bash either.
How do I get Home assistant to control the somfy relay ?
Thanks and sorry if it’s too long / isn’t very clear.