Manually adding 433mhz sensors

Due to living in a built-up area my RFLink 433 receiver can see lots of other devices that don’t belong to me.

Would it be possible to add my own sensors manually?

In the rflink debug i see -

2020-07-16 23:00:57 DEBUG (MainThread) [homeassistant.components.rflink] unhandled event of type: unknown
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] received data: 20;01;Oregon TempHygro;ID=2DE2;T
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] received data: EMP=00d6;HUM=67;HSTATUS=1;BAT=OK
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] received data: ;
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] got packet: 20;01;Oregon TempHygro;ID=2DE2;TEMP=00d6;HUM=67;HSTATUS=1;BAT=OK;
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'oregon temphygro', 'id': '2de2', 'temperature': 21.4, 'temperature_unit': '°C', 'humidity': 67, 'humidity_unit': '%', 'humidity_status': 'comfortable', 'battery': 'ok'}
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2de2_temp', 'sensor': 'temperature', 'value': 21.4, 'unit': '°C'}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2de2_temp', 'sensor': 'temperature', 'value': 21.4, 'unit': '°C'}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2de2_hum', 'sensor': 'humidity', 'value': 67, 'unit': '%'}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2de2_hum', 'sensor': 'humidity', 'value': 67, 'unit': '%'}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2de2_hstatus', 'sensor': 'humidity_status', 'value': 'comfortable', 'unit': None}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2de2_hstatus', 'sensor': 'humidity_status', 'value': 'comfortable', 'unit': None}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2de2_bat', 'sensor': 'battery', 'value': 'ok', 'unit': None}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2de2_bat', 'sensor': 'battery', 'value': 'ok', 'unit': None}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2020-07-16 23:01:11 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'oregontemphygro_2de2_update_time', 'sensor': 'update_time', 'value': 1594936871, 'unit': 's'}
2020-07-16 23:01:11 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'oregontemphygro_2de2_update_time', 'sensor': 'update_time', 'value': 1594936871, 'unit': 's'}

Here is my current config

rflink:
  port: /dev/ttyUSB0
light:
  - platform: rflink
    automatic_add: false
sensor:
  - platform: rflink
    automatic_add: false
    devices:
      2DE2:
        name: testtemp

my attempting in adding the sensor manually was to add -

“devices:
2de2:
name: testtemp”

but this does not work.

any help would be great

I normally set automatic_add to true to discover the device I’m after, then I turn it off and delete the unwanted entities… I find it much easier this way…

The devices you are after are:

sensor:
  - platform: rflink
    automatic_add: false
    devices:
      oregontemphygro_2de2_temp:
        sensor_type: temperature
      oregontemphygro_2de2_hum:
        sensor_type: humidity
      oregontemphygro_2de2_bat:
        sensor_type: battery


1 Like

Awesome thanks, this works great

Sorry, I’m a bit stuck with adding the owl micro 433 energy monitor.

Ha ends up starting in safe mode -

2020-07-19 05:09:43 ERROR (SyncWorker_1) [homeassistant.util.yaml.loader] while parsing a block mapping
  in "/config/configuration.yaml", line 21, column 5
expected <block end>, but found '<block mapping start>'
  in "/config/configuration.yaml", line 98, column 6
2020-07-19 05:09:43 ERROR (MainThread) [homeassistant.bootstrap] Failed to parse configuration.yaml: while parsing a block mapping
  in "/config/configuration.yaml", line 21, column 5
expected <block end>, but found '<block mapping start>'
  in "/config/configuration.yaml", line 98, column 6. Activating safe mode

when i comment out my owl micro section HA will start fine

     #Owl Micro
     utility_meter:
      daily_energy:
        source: owl_cm180_00b4_kwatt
        cycle: daily
       monthly_energy:
         source: owl_cm180_00b4_kwatt
         cycle: monthly

Here is how HA receives the owl micro data from RFlink

2020-07-18 23:35:55 DEBUG (MainThread) [rflink.protocol] received data: 20;92;OWL_CM180;ID=00B4;WATT=00e
2020-07-18 23:35:55 DEBUG (MainThread) [rflink.protocol] received data: 1;KWATT=00221a8c;
2020-07-18 23:35:55 DEBUG (MainThread) [rflink.protocol] got packet: 20;92;OWL_CM180;ID=00B4;WATT=00e1;KWATT=00221a8c;
2020-07-18 23:35:55 DEBUG (MainThread) [rflink.protocol] decoded packet: {'node': 'gateway', 'protocol': 'owl_cm180', 'id': '00b4', 'watt': 225, 'watt_unit': 'w', 'kilowatt': 2235020, 'kilowatt_unit': 'kW'}
2020-07-18 23:35:55 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'owl_cm180_00b4_watt', 'sensor': 'watt', 'value': 225, 'unit': 'w'}
2020-07-18 23:35:55 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'owl_cm180_00b4_watt', 'sensor': 'watt', 'value': 225, 'unit': 'w'}
2020-07-18 23:35:55 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2020-07-18 23:35:55 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2020-07-18 23:35:55 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'owl_cm180_00b4_kwatt', 'sensor': 'kilowatt', 'value': 2235020, 'unit': 'kW'}
2020-07-18 23:35:55 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'owl_cm180_00b4_kwatt', 'sensor': 'kilowatt', 'value': 2235020, 'unit': 'kW'}
2020-07-18 23:35:55 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []
2020-07-18 23:35:55 DEBUG (MainThread) [homeassistant.components.rflink] device_id not known and automatic add disabled
2020-07-18 23:35:55 DEBUG (MainThread) [rflink.protocol] got event: {'id': 'owl_cm180_00b4_update_time', 'sensor': 'update_time', 'value': 1595111755, 'unit': 's'}
2020-07-18 23:35:55 DEBUG (MainThread) [homeassistant.components.rflink] event of type sensor: {'id': 'owl_cm180_00b4_update_time', 'sensor': 'update_time', 'value': 1595111755, 'unit': 's'}
2020-07-18 23:35:55 DEBUG (MainThread) [homeassistant.components.rflink] entity_ids: []

You must be very carefull with the config format. Take care with number of spaces:

    #Owl Micro
    utility_meter:
      daily_energy:
        source: owl_cm180_00b4_kwatt
        cycle: daily
      monthly_energy:
        source: owl_cm180_00b4_kwatt
        cycle: monthly
2 Likes

Awesome thanks

1 Like