RFXtrx, add rfxtrx sensor

Hello

I have just started with Home Assistant, and have flashed the hassbian image to my raspberry.

I`m able to boot up my raspberry and get into the local website.

The thing now is that I try to add RFXtrx, and I have done it like this in the configuration file:

#rfxtrx
rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A128MRPU-if00-port0
  debug: True

#Temp
sensor:
  platform: rfxtrx
  automatic_add: True

Nothing is happening, the only thing in my log is this:

Unable to load /home/homeassistant/.homeassistant/known_devices.yaml: Config file not found: /home/homeassistant/.homeassistant/known_devices.yamll

So, any tips on how I can solve this, and get my temperature sensor into Home assistant?

Thanks!

hum. odd. Can you try and create a blank known_devices.yaml in your config folder?

It helped to create a empty known_devices.yaml file, cant see that line anymore in the dev-info.

But, how can I then get my temperature sensor in the home assistant?

I have verified that usb-RFXCOM_RFXtrx433_A128MRPU-if00-port0 is correct. And I have tested this on Windows, and got data from the sensor.

What sensor is it?
I gauge it you tested under Windows worth rfxcom’s own app?
Can you set your log to debug and tell us what you see?

# Logging level
logger:
  default: error
  logs:

    homeassistant.components.rfxtrx: debug

Sorry I’m typing from phone, indentation is probably wrong but your get the idea I hope

Its a FT007TH. I tried to change the channel settings on it and got this now.

2018-03-23 23:22:10 DEBUG (Thread-12) [homeassistant.components.rfxtrx] Receive RFXCOM event from (Device_id: 00000032 Class: RFXtrxDevice Sub: 10, Pkt_id: 08200a000000000649)

So it looks like I have a connection to it.

Below is from my config.
Try and replace the long number with yours and see if it works.

- platform: rfxtrx
  automatic_add: True
  devices:
    0A520700240E00E4360000:
      name: Upstairs
      data_type:
       - Humidity
       - Temperature

Thanks for the help until now. I was finally able to get the temperature into home-assistant. Looks like I haven`t saved the right protocol on the receiver/transmitter box (rfxtrx).

But a few more questions.

In this picture, I have a “blank” temperature that is showing. How can i get rid of this?
And, the part “0a52090” is there any way to rename that part?

temp

My config now is this:

# RFXtrx
rfxtrx:
  device: /dev/serial/by-id/usb-RFXCOM_RFXtrx433_A128MRPU-if00-port0
  debug:
  
#  RFXtrx Sensor
sensor:
- platform: rfxtrx
  automatic_add: True
  devices:
    08200a000000000639:
      name: Temperature
      data_type:
       - Temperature

And, I now try to enable the yr.no plugin, but get this message.

ERROR:homeassistant.util.yaml:YAML file /home/homeassistant/.homeassistant/configuration.yaml contains duplicate key "sensor". Check lines 65 and 77.

How are you dealing with this? Can i simple call it sensor 2?

# Weather prediction
sensor:
 - platform: yr
   name: Weather

Ok let’s take them one at a time :wink:

  1. The blank is probably because you replaced the battery or disconnected power from your sensor. They tend to get a new number each time you take the battery out. the none that starts with 0a52090 is the “live” sensor, the other one has no data so shows a - Replace the serial number in your config with the correct new number
  2. Once you’ve renamed as per 1. the “0a52090” will go and be replaced with what you set for “name” in your config
    You can’t define sensor: more than one, instead you just need to list your other sensors under the first sensor: header:
sensor:
#  RFXtrx Sensor
- platform: rfxtrx
  automatic_add: True
  devices:
    08200a000000000639:
      name: Temperature
      data_type:
       - Temperature

# Weather prediction
 - platform: yr
   name: Weather

Hi all,
I’ve got the same issue but when I add a blank known_devices I get the following errors when I reboot and go to the info page:

Setup failed for default_config: Could not set up all dependencies.

20:50 setup.py (ERROR)

Unable to set up dependencies of default_config. Setup failed for dependencies: mobile_app

20:50 setup.py (ERROR)

Setup failed for mobile_app: Could not set up all dependencies.

20:50 setup.py (ERROR)

Unable to set up dependencies of mobile_app. Setup failed for dependencies: device_tracker

20:50 setup.py (ERROR)

Error during setup of component device_tracker

20:50 util/yaml.py (ERROR)

Anyone knows what this is or what I should do?

Thanks