AlarmDecoder AD2PI "invalid option" Hass.io 0.50.0

Trying to configure AD2PI with the “AlarmDecoder Alarm” component using this format:

alarmdecoder:
  device:
    type: socket
    host: 192.168.1.20
    port: 10000
  panel_display: On
  zones:
    01:
      name: 'Smoke Detector'
      type: 'smoke'
    02:
      name: 'Front Door'
      type: 'opening'

(Copied from the component page)

When I check the configuration, I get this error:

Configuration invalid…ERROR (MainThread) [homeassistant.config]
Invalid config for [alarmdecoder]: [platform] is an invalid option for [alarmdecoder].
Check: alarmdecoder->alarmdecoder->zones->platform.
(See /config/configuration.yaml, line 61).
Please check the docs at home-assistant-io/components/alarmdecoder/

I’m not sure what the problem is. (The same configuration parameters were working with Hassbian just a few days ago, but I’ve decided to switch to Hass-io before I get into this too deep.)

Any help would be greatly appreciated!

This is still a problem with hassio 0.50.2

I’m not using hass.io but I am using an ad2pi over the network on 50.2 without any trouble. Can you point out which line is line 61 in your configuration.yaml?

Here’s a screen shot:

23 AM

It is essentially a copy/paste from the alarmdecoder component page.

And here’s the current error:

51 PM

I’m still not clear on what’s throwing this error - any chance you could expand a bit on that config sample you shared? I’m specifically interested in the section just above and below your alarmdecoder. The message is suggesting it’s having an issue with a “platform” statement. If possible, it’d be most helpful if you could sanitize your config and dump the entire thing on hastebin. This looks like an issue either with the block just above the image you pasted, or a duplicate alarmdecoder section somewhere else in the config.

Thanks for the tip. It was the block directly below alarmdecoder. I had commented out only the first line of a device_tracker section, but failed to comment out the remaining line, the next of which was “platform: bluetooth_tracker”. All good now!

1 Like