RFXTRX to support 433 remotes (besides switches/lights/sensors)

I’m working with a lot of COCO peripherals. Based on this topic I assume that there is no specific implantation for remotes such as:

Sensors, lights and switches are available in the RFXtrx component. But what about remotes?

I’m trying to enable a scene, for example, with a remote such as the above. I’m implementing the ‘remotes’ in my default wall switches as a physical switch sometimes is faster than my mobile.

I’m struggling with HASS code as:
alias: Woonkamer scene aanzetten trigger: platform: event event_type: button_pressed event_data: {"entity_id": "switch.multipulse"} action: service: scene.turn_on entity_id: scene.woonkamer_verlichting

But I’m missing the ‘on’ or ‘off’ property to work with.

When I’m sending a on signal the console shows me (using Github code):
Recv: 0x0b 0x11 0x00 0x12 0x00 0x30 0x43 0xee 0x02 0x01 0x0f 0x60 <class 'RFXtrx.ControlEvent'> device=[<class 'RFXtrx.LightingDevice'> type='AC' id='03043ee:2'] values=[('Command', 'On'), ('Rssi numeric', 6)]
Off signal:
Recv: 0x0b 0x11 0x00 0x13 0x00 0x30 0x43 0xee 0x02 0x00 0x00 0x60 <class 'RFXtrx.ControlEvent'> device=[<class 'RFXtrx.LightingDevice'> type='AC' id='03043ee:2'] values=[('Command', 'Off'), ('Rssi numeric', 6)]

I hope my request is useful to further develop Home Assistant.

Please let me know if I missed something in the documentation (but I couldn’t find event type button_pressed for example) or in this community.

You should be able to add it as a switch. Add this to your configuration.yaml

switch:
  platform: rfxtrx
  automatic_add: True

Restart hass and press a button on your remote

Then add your switch to the configuration and enable fire_event:

0b1111e003af16aa10000060:
  name: multipulse
  fire_event: True

Update your automation:

alias: Woonkamer scene aanzetten
trigger:
  platform: event
  event_type: button_pressed
  event_data: {'state': 'off',  "entity_id": "switch.multipulse"}
action:
  service: scene.turn_on
  entity_id: scene.woonkamer_verlichting
1 Like

Great! Thank you for your quick and complete project. Works briljant.

`-
alias: Woonkamer scene activeren
trigger:
platform: event
event_type: button_pressed
event_data: {“state”: “on”, “entity_id”: “switch.multipulse”}
action:
service: scene.turn_on
entity_id: scene.woonkamer_verlichting

alias: Slapen scene activeren
trigger:
  platform: event
  event_type: button_pressed
  event_data: {"state": "off", "entity_id": "switch.multipulse"}
action:
  service: scene.turn_on
  entity_id: scene.slapen_gaan`

Pity that I was not able to find this in the documentation. Maybe I can help in that section of the Home Assistant project?

Yeah, it would be great if you can help improve the documentation.
In the upper right corner of any documentation page, you will find “Edit this page on GitHub”.
Follow the link and submit your suggested change.
Demonstrated here: https://youtu.be/dRfk9JAlPJk?t=1h16m17s

Super clear instructions. I’m out tonight but I’ll try to work on it this week.