Chicken Coop automation troubles (RFXTRX trouble)

Hi all,

Recent switched over from Domoticz to HA, so still on a learning curve.

Here is what i am struggling with at the moment.
We have a chicken coop that needs to be closed at night to prevent the Fox getting his meal after dark.
So we installed a coop door automation device with a remote. This is just a normal PT2262 protocol device. Nothing fancy.

Home assistant has a RFXTRX USB device (RFXCOM) for integration with such devices.
Its running without issues controlling other devices (like KAKU switches).

For pairing we enabled Automatic Add on the Rfxtrx and we paired the remote of the Coop Door into HA without issues. Created an automation and life was good. Well the chickens where save at night, lets put it like that.

But at some point there was a power outage on the Chicken coop and we had to pair the remote of the coop door again with the device. From there al things went tits up.

Now i am at a total loss of how this RFX integration is supposed to work. There is a lot of info out there but most of it is outdated because of the changed made to HA in recent years.

i changed the log options to:

logger:
default: warning
logs:
homeassistant.components.dsmr: debug

dsmr_parser: debug

homeassistant.components.rfxtrx: debug
RFXtrx: debug

If i check my logs and use the original remote i get this:

2022-06-22 22:07:40 DEBUG (Thread-3) [RFXtrx] Recv: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa8 0x01 0x7a 0x40
2022-06-22 22:07:40 DEBUG (MainThread) [homeassistant.components.rfxtrx] Receive RFXCOM event: {‘packet_type’: 19, ‘sub_type’: 0, ‘type_string’: ‘PT2262’, ‘id_string’: ‘9ff3a8’, ‘data’: ‘091300009ff3a8017a40’, ‘values’: {‘Command’: ‘Unknown command (0x9ff3a8)’, ‘Rssi numeric’: 4}}
2022-06-22 22:07:40 DEBUG (MainThread) [homeassistant.components.rfxtrx.sensor] Sensor update (Device ID: 9ff3a8 Class: LightingDevice Sub: 0)
2022-06-22 22:07:40 DEBUG (MainThread) [homeassistant.components.rfxtrx.binary_sensor] Binary sensor update (Device ID: 9ff3a8 Class: LightingDevice Sub: 0)
2022-06-22 22:08:19 DEBUG (Thread-3) [RFXtrx] Recv: 0x09 0x13 0x00 0x01 0x9f 0xf3 0xa4 0x01 0x75 0x40
2022-06-22 22:08:19 DEBUG (MainThread) [homeassistant.components.rfxtrx] Receive RFXCOM event: {‘packet_type’: 19, ‘sub_type’: 0, ‘type_string’: ‘PT2262’, ‘id_string’: ‘9ff3a4’, ‘data’: ‘091300019ff3a4017540’, ‘values’: {‘Command’: ‘Unknown command (0x9ff3a4)’, ‘Rssi numeric’: 4}}
2022-06-22 22:08:19 INFO (MainThread) [homeassistant.components.rfxtrx] Found possible device 9ff3a4 for 9ff3a8 with the following configuration:
data_bits=4
command_on=0x8
command_off=0x4

2022-06-22 22:08:19 DEBUG (MainThread) [homeassistant.components.rfxtrx.sensor] Sensor update (Device ID: 9ff3a4 Class: LightingDevice Sub: 0)
2022-06-22 22:08:19 DEBUG (MainThread) [homeassistant.components.rfxtrx.binary_sensor] Binary sensor update (Device ID: 9ff3a4 Class: LightingDevice Sub: 0)

What i am sending with my automation is this : (its on 5 times repeat to make sure the coop door closes as there is no feedback).

2022-06-22 22:13:42 DEBUG (SyncWorker_7) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_3) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_2) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_9) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_6) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_7) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_3) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_2) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_5) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:42 DEBUG (SyncWorker_6) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa9 0x01 0x77 0x00
2022-06-22 22:13:43 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:43 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:43 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:44 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:44 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:45 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:45 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:46 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:46 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_10) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa4 0x01 0x73 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_4) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa5 0x01 0x73 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_9) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa4 0x01 0x73 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_0) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa5 0x01 0x73 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_1) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa4 0x01 0x73 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_8) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa5 0x01 0x73 0x00
2022-06-22 22:13:46 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_10) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa4 0x01 0x73 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_4) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa5 0x01 0x73 0x00
2022-06-22 22:13:46 DEBUG (SyncWorker_9) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa4 0x01 0x73 0x00
2022-06-22 22:13:47 DEBUG (SyncWorker_0) [RFXtrx] Send: 0x09 0x13 0x00 0x00 0x9f 0xf3 0xa5 0x01 0x73 0x00
2022-06-22 22:13:47 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:47 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:48 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:48 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:49 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00
2022-06-22 22:13:49 DEBUG (Thread-3) [RFXtrx] Recv: 0x04 0x02 0x01 0x00 0x00

The above used to work without issues.

here is the automation, but this might be totally off as i have been trying everything to get some movement in the door:

/config/automations.yaml

- id: '1654590869465'
  alias: Kippenhok Dicht
  description: ''
  trigger:
  - platform: sun
    event: sunset
    offset: 01:00:00
  condition: []
  action:
  - repeat:
      count: '5'
      sequence:
      - type: turn_on
        device_id: 091300009ff3a8017a40
        domain: switch
  mode: single
- id: '1654590910751'
  alias: Kippenhok Open
  description: ''
  trigger:
  - platform: time
    at: 09:00:00
  condition: []
  action:
  - repeat:
      count: '5'
      sequence:
      - type: turn_on
        device_id: 091300019ff3a4017540
        domain: switch
  mode: single

I am completely in the Dark and need some help to get me on the way to fix this. There might be one night that i forget to close the Coop door and that night will release me from all duty’s regarding the chickens…

Setup is:

RP 3, running on USB stick

Home Assistant Core 2022.6.2

Home Assistant Supervisor 2022.05.3

Home Assistant OS 8.1

Regards,

BIggles