Rfxtrx433e

I am new to HA, I have setup my Raspberry Pi 3b and now am trying to get come cheap motion sensors that I acquired to work via my RXFTRX433E transceiver connected to the pi via USB.

I have enabled debugging in my configuration.yaml and put the RFXCOM in auto add mode:

default_config:
logger:
  default: debug
  logs:
    homeassistant.components.rfxtrx: debug
    homeassistant.components.binary_sensor.rfxtrx: debug

homeassistant:
  name: TheMorgans
  unit_system: imperial
  time_zone: America/Chicago
  
#433Mhz Transcevier
rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A12IVCQJ-if00-port0
  automatic_add: true
  debug: True

I have cheap chinese motion sensors (https://www.amazon.com/gp/product/B073WTR8PW/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1) that I an trying to get to work.
When auto discover mode runs it appears that the sensor is getting detected (I have a ton of neighborhood 433MHz devices found).
The device that is mine has an ID of pt2262_505fc6

2020-10-01 20:06:20 DEBUG (MainThread) [homeassistant.helpers.restore_state] Created cache with ['person.scott_morgan', 'device_tracker.thedarknet_2', 'switch.pt2262_d05fc6', 'switch.pt2262_505fc6', 'binary_sensor.pt2262_505fc6', 'sensor.pt2262_505fc6_rssi_numeric', 'binary_sensor.pt2262_d05fc6', 'sensor.pt2262_d05fc6_rssi_numeric', 'binary_sensor.rm174rf_smoke_detector_3417f1_32', 'sensor.rm174rf_smoke_detector_3417f1_32_battery_numeric', 'sensor.rm174rf_smoke_detector_3417f1_32_sensor_status', 'sensor.rm174rf_smoke_detector_3417f1_32_rssi_numeric']
2020-10-01 20:06:30 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=switch.pt2262_505fc6, old_state=None, new_state=<state switch.pt2262_505fc6=unavailable; restored=True, supported_features=0, friendly_name=PT2262 505fc6 @ 2020-10-01T20:06:30.844410-05:00>>
2020-10-01 20:06:30 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=binary_sensor.pt2262_505fc6, old_state=None, new_state=<state binary_sensor.pt2262_505fc6=unavailable; restored=True, supported_features=0, friendly_name=PT2262 505fc6 @ 2020-10-01T20:06:30.846361-05:00>>
2020-10-01 20:06:30 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: entity_id=sensor.pt2262_505fc6_rssi_numeric, old_state=None, new_state=<state sensor.pt2262_505fc6_rssi_numeric=unavailable; restored=True, supported_features=0, device_class=signal_strength, unit_of_measurement=dBm, friendly_name=PT2262 505fc6 Rssi numeric @ 2020-10-01T20:06:30.847373-05:00>>

When I trigger the device with motion I am seeing this:

2020-10-01 20:06:30 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1811129320] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=switch.pt2262_505fc6, old_state=None, new_state=<state switch.pt2262_505fc6=unavailable; restored=True, supported_features=0, friendly_name=PT2262 505fc6 @ 2020-10-01T20:06:30.844410-05:00>>}
2020-10-01 20:06:30 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1811129320] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=binary_sensor.pt2262_505fc6, old_state=None, new_state=<state binary_sensor.pt2262_505fc6=unavailable; restored=True, supported_features=0, friendly_name=PT2262 505fc6 @ 2020-10-01T20:06:30.846361-05:00>>}
2020-10-01 20:06:30 DEBUG (MainThread) [homeassistant.components.websocket_api.http.connection.1811129320] Sending {'id': 2, 'type': 'event', 'event': <Event state_changed[L]: entity_id=sensor.pt2262_505fc6_rssi_numeric, old_state=None, new_state=<state sensor.pt2262_505fc6_rssi_numeric=unavailable; restored=True, supported_features=0, device_class=signal_strength, unit_of_measurement=dBm, friendly_name=PT2262 505fc6 Rssi numeric @ 2020-10-01T20:06:30.847373-05:00>>}

I tried adding this to the YAML to be able to get rid of the noise with auto discover:

  devices:
 Front Porch Motion
    505fc6:
      device_class: motion
      off_delay:
        seconds: 5

But when I do this the new added device doesn’t become available

Can anyone offer any advice?

That syntax is for ESPHome, not Home Assistant.

So instead of this:

homeassistant:
  name: TheMorgans
  unit_system: imperial
  time_zone: America/Chicago

This?

  name: TheMorgans
  unit_system: imperial
  time_zone: America/Chicago

I tried this:

# Example configuration.yaml entry
# Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
logger:
  default: info
  logs:
    homeassistant.components.rfxtrx: info
    homeassistant.components.binary_sensor.rfxtrx: debug

ESPHome:
  name: TheMorgans
  unit_system: imperial
  time_zone: America/Chicago
  
#433Mhz Transcevier
rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A12IVCQJ-if00-port0
  automatic_add: false
  debug: False  
  devices:
#Front Porch Motion
    505fc6:
      device_class: motion
      off_delay:
        seconds: 5
#Gun Room Motion
    d05fc6:
     device_class: motion
     off_delay:
       seconds: 5    

# Text to speech
tts:
  - platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

And this is the result:

2020-10-01 22:36:38 ERROR (MainThread) [homeassistant.components.rfxtrx.binary_sensor] Invalid device: 505fc6

Okay, so I think I might’ve misunderstood you and vice versa :slight_smile:
When you use esphome.io, it uses a completely different syntax than Home Assistant.
You should keep it as

homeassistant:
  name: TheMorgans
  unit_system: imperial
  time_zone: America/Chicago

It looks like your configuration should be valid, if you remove “Front Porch Motion”, and specify the full device ID. Example config:


(You don’t need the stuff at the start)

What would be the entire device ID?

Actually don’t worry about it, try it out now.