akasma74 / Hass-Custom-Alarm

It is a fork of "Yet another take on a home assistant custom alarm" that will exist until its author is back to our Earth
80 stars 31 forks source link

mqtt: True is an invalid option #8

Closed danobot closed 5 years ago

danobot commented 5 years ago

Describe the bug Guide mentions mqtt: True, adding this under mqtt: results in a config validation error.

Invalid config for [alarm_control_panel.bwalarm]: [mqtt] is an invalid option for [alarm_control_panel.bwalarm]. Check: alarm_control_panel.bwalarm->mqtt->mqtt. (See ?, line ?). Please check the docs at https://home-assistant.io/components/alarm_control_panel.bwalarm/

akasma74 commented 5 years ago

Guide mentions mqtt: True, adding this under mqtt: results in a config validation error.

could you be more specific and provide a link to the guide and an appropriate snippet of your alarm.yaml?

danobot commented 5 years ago

In the configuration guide: https://github.com/akasma74/Hass-Custom-Alarm/blob/master/guidance/configuration.md#mqtt-related

mqtt:
    mqtt: True

tried the following too:

mqtt: True
akasma74 commented 5 years ago

Oh, I see. It's just typo, should be enable_mqtt inside top-level mqtt section, something like this:

mqtt:
  enable_mqtt: false
  payload_arm_away: ARM_AWAY
  payload_arm_night: ARM_NIGHT
  override_code: false
  state_topic: home/alarm
  payload_disarm: DISARM
  command_topic: home/alarm/set
  qos: 0
  pending_on_warning: false
  payload_arm_home: ARM_HOME

Fixed in docs