How to sent lighting4 binary commands

I’am new to HA, but was succesful having RFXcom integrated controlling Somfy shutters.
Also by using RFXcom I would like to sent lighting4 binary commands to a pt2262 switch.
I can capture/log the needed commands submitted by the remote via RFXmngr. I’am also able to sent those commands using lighting4 inf RFXmngr. Unfortunate I’am not able to sent those commands via HA.
Via the logger of HA I can capture the switch, see below:
2017-10-28 15:59:20 DEBUG (Thread-22) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: 3c00c0 Class: LightingDevice Sub: 0, Pkt_id: 091300093c00c001a570)
2017-10-28 15:59:20 INFO (Thread-22) [homeassistant.components.binary_sensor.rfxtrx] Added binary sensor 091300093c00c001a570 (Device_id: 3c00c0 Class: LightingDevice Sub: 0)
2017-10-28 15:59:22 DEBUG (Thread-22) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: 3c0000 Class: LightingDevice Sub: 0, Pkt_id: 0913000a3c000001a570)
2017-10-28 15:59:22 INFO (Thread-22) [homeassistant.components.rfxtrx] rfxtrx: found possible device 3c0000 for 3c00c0 with the following configuration:
data_bits=8
command_on=0xc0
command_off=0x00

From RFXmngr I understood that this represents respective:

27.okt.2017 17:23:46

27.okt.2017 17:23:46
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 26
Code = 3C00C0 decimal:3932352
S1- S24 = 0011 1100 0000 0000 1100 0000
Pulse = 419 usec
Signal level = 8 -56dBm

27.okt.2017 17:23:47

27.okt.2017 17:23:47
Packettype = Lighting4
subtype = PT2262
Sequence nbr = 27
Code = 3C0000 decimal:3932160
S1- S24 = 0011 1100 0000 0000 0000 0000
Pulse = 421 usec
Signal level = 8 -56dBm

Does someone know which entry I should include in configuration.yaml

Hey !

I’m sorry but I’m not going to help you …:confused: I’m figuring out that I’m having similar issue and wanted to know if you’ve been able to solve that ?

Thanks!

Hi,

I don’t know if you are still having this issue, but i got something similar working.
I used:


&

as a reference

here is the resulting config:
switch:
platform: rfxtrx
automatic_add: true
platform: command_line
switches:
lift:
# Lift Down
command_on: ‘echo -ne “\x09\x13\x00\x02\xf2\x91\xa2\x01\x5d\x60” > /dev/ttyUSB0’
# Lift UP
command_off: ‘echo -ne “\x09\x13\x00\x03\xf2\x91\xa1\x01\x5f\x60” > /dev/ttyUSB0’

hello, I’m trying to configure an rfxtrx and I do not know how you could configure it, you can explain how to do it, according to HA you have to put this

binary_sensor:

  • platform: rfxtrx
    automatic_add: True
    devices:
    14717078:
    name: Puerta Entrada
    signal_repetitions: 3
    off_delay:
    seconds: 5

Hi Alberto,

Dis you also add the hub?

Hello Win, did you find out how to do this? I’m exactly in the same situation!