aRest Sensor & HA 0.30.1 configuration.yaml

Hi, thanks for the great HA!

With the new version 0.30.1 I have problems with my configuration.yaml:

sensor:
  platform: arest
  resource: http://IP_ADDRESS
  name: Office
  monitored_variables:
    - name: temperature

It is like in the documentation (with the correct IP!)

When I run hass --script check config, it says:

Testing configuration at /home/pi/.homeassistant
16-10-09 11:54:38 ERROR (Thread-1) [homeassistant.bootstrap] Invalid config for [sensor.arest]: expected a dictionary for dictionary value @ data['monitored_variables']. Got [OrderedDict([('name', 'temperature')])]. Please check the docs at https://home-assistant.io/components/sensor.arest/
Failed config
  sensor.arest:
    platform: arest
    monitored_variables:
      - name: temperature
    name: Office
    resource: http://IP_ADDRESS

Successful config (partial)
  sensor.arest:

What does it mean: “expected a dictionary for dictionary value”
There are some breaking changes in HA with 0.30.1 & aRest, but I don’t understand …
No problems with HA 0.29.7 !

Anyone can help me?

Ralf

The aREST platforms are now checked for configuration errors like the other ones (Release blog post). Sorry I didn’t push the changes to the docs.

  - platform: arest
    resource: http:/IP_ADDRESS
    name: Office
    monitored_variables:
      temperature:
        name: temperature
        unit_of_measurement: '°C'
        value_template: '{{ value | round(1) }}'
      humidity:
        name: humidity
        unit_of_measurement: '%'
    pins:
      A0:
        name: Pin 0 analog
        unit_of_measurement: "ca"
        value_template: '{{ value_json.light }}'
      3:
        name: Pin 3 digital

Apologizes for the inconvenience.

1 Like

Thank you for the fast support!