How to declare devices RFX?

HI,

I see my sensors in HA devices.
when i configure sensors.yaml like that

- platform: rfxtrx
  automatic_add: True

on Home assistant i see my devices

So i declare like that

- platform: rfxtrx
  automatic_add: True
  devices:
    0a520d05a90100b2380179_temperature:
      name: tempchambre
      data_type:
       - Humidity
       - Temperature

and i received these errors on startup :

16-12-07 14:58:25 homeassistant.bootstrap: Invalid config for [sensor.rfxtrx]: Rfxtrx device 0a520d05a90100b2380179_temperature is invalid: Invalid device id for OrderedDict([('0a520d05a90100b2380179_temperature', OrderedDict([('name', 'tempchambre'), ('data_type', ['Humidity', 'Temperature'])]))]) for dictionary value @ data['devices']. Got OrderedDict([('0a520d05a90100b2380179_temperature', OrderedDict([('name', 'tempchambre'), ('data_type', ['Humidity', 'Temperature'])]))]). (See ?:?). Please check the docs at https://home-assistant.io/components/sensor.rfxtrx/

How can i declare my devices rfxcom ?
Incompatibilities with protocol ?

My devices are temperature/humidity sensors in 433mhz with protocol Rubikon.
I can see my sensors on the page of devices (in Home assistant), but impossible to use it on the frontend :frowning:

Regards.

There seems to be a mistake in the docs, replace 0a520d05a90100b2380179_temperature with 0a520d05a90100b2380179

Thanks @Danielhiversen

But i have these errors now

About

Home Assistant
0.34.4

Path to configuration.yaml: /home/debian/.homeassistant

Developed by a bunch of awesome people.

Published under the MIT license
Source: server — frontend-ui — frontend-core

Built using Python 3, Polymer 1.7.0, NuclearJS 1.4.0
Icons by Google and MaterialDesignIcons.com.

The following errors have been logged this session:

16-12-07 15:53:59 homeassistant.loader: Loaded sensor.rfxtrx from homeassistant.components.sensor.rfxtrx
16-12-07 15:53:59 homeassistant.bootstrap: Invalid config for [sensor.rfxtrx]: value is not allowed @ data[‘devices’][‘data_type’][0]. Got None
value is not allowed @ data[‘devices’][‘data_type’][2]. Got None
value is not allowed @ data[‘devices’][‘data_type’][3]. Got None
value is not allowed @ data[‘devices’][‘data_type’][4]. Got None
value is not allowed @ data[‘devices’][‘data_type’][6]. Got None
value is not allowed @ data[‘devices’][‘data_type’][7]. Got None. (See ?:?). Please check the docs at https://home-assistant.io/components/sensor.rfxtrx/

And now none sensors rfx appears …

Try to run:
hass --script check_config
from the command line.

Or do you have an empty data_type list in your config?
Can you post your current config?

Hi

My config

- platform: rfxtrx
  automatic_add: True
  devices:
    0a520d05a90100b2380179_temperature:
      name: tempchambre
      data_type:
       - Humidity
       - Temperature

And i test with all attributes battery, …

Same errors when my data_type is empty…

replace 0a520d05a90100b2380179_temperature with 0a520d05a90100b2380179

sorry bad copy/paste :blush:

my current config

- platform: rfxtrx
  automatic_add: True
  devices:
    0a520d05a90100b2380179:
      name: tempchambre
      data_type:
       - Battery_numeric
       - Humidity
       - Humidity_status
       - Humidity_status_numeric
       - Rssi_numeric
       - Temperature
       - friendly_name
       - unit_of_measurement

my log

16-12-07 20:18:10 homeassistant.loader: Loaded sensor.yweather from homeassistant.components.sensor.yweather
16-12-07 20:18:10 homeassistant.loader: Loaded sensor.rfxtrx from homeassistant.components.sensor.rfxtrx
16-12-07 20:18:10 homeassistant.bootstrap: Invalid config for [sensor.rfxtrx]: value is not allowed @ data['devices']['data_type'][0]. Got None
value is not allowed @ data['devices']['data_type'][2]. Got None
value is not allowed @ data['devices']['data_type'][3]. Got None
value is not allowed @ data['devices']['data_type'][4]. Got None
value is not allowed @ data['devices']['data_type'][6]. Got None
value is not allowed @ data['devices']['data_type'][7]. Got None. (See ?:?). Please check the docs at https://home-assistant.io/components/sensor.rfxtrx/
16-12-07 20:18:10 homeassistant.loader: Loaded sensor.template from homeassistant.components.sensor.template

none sensor rfx appears

Ok, here is the list of supported sensor types https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/rfxtrx.py#L35

Try:

- platform: rfxtrx
  automatic_add: False
  devices:
    0a520d05a90100b2380179: 
      name: tempchambre
      data_type: 
        - Humidity
        - Temperature

data_type is optional, so can try to remove it also

It works ;p
Thanks bad edit from my config yaml, with your code all is fine !

thanks again.

another question binary sensor works with motion sensor ?

Currently there is no rfxtrx binary sensor. But you can probaly add it as a rfxtrx switch an use template binary sensor.

it would be great if you can help improve the documentation for the rfxtrx component.
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=1h16m17s4

1 Like

ok as soon as i have some time i could help to complete doc !