Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid config for [mqtt]: [sensor] is an invalid option for [mqtt]. Check: mqtt->mqtt->sensor. (See ?, line ?). #61

Open
HSMarzio opened this issue Dec 14, 2022 · 2 comments

Comments

@HSMarzio
Copy link

Hi Andrea,
i almost completed the integration following the instructions but, after creating the HA entities. and validating the configuration i receive the error:

Invalid config for [mqtt]: [sensor] is an invalid option for [mqtt]. Check: mqtt->mqtt->sensor. (See ?, line ?).

if i comment the line packages: !include_dir_named packages in the configuration.yaml the validation is ok, so, i think the issue is in the code of bticino_x8000.yaml (attached in .txt version)
bticino_x8000.txt

@HSMarzio
Copy link
Author

maybe i have a solution. the issue it seems related to the syntax of mqtt.
i'm currently using (inside my configurations.yaml) the (deprecated) syntax:

binary_sensor:

  • platform: mqtt
    state_topic: "home-assistant/window/contact"

instead of

mqtt:
binary_sensor:
- state_topic: "home-assistant/window/contact"

my installation is using:

Core
Versione
core-2021.12.2

Supervisor
Versione
supervisor-2022.11.2

the point is that if i try to use the new syntax the validation gets anyway error (probably due to my current version ?)

@Wuthoqquan
Copy link

Did you ever receive a response or solved your issue?

I also have problems with configuring this add-on in my Home Assistant (v. 2023.3.2).

Although I went through the process effortlessly, till the point when on the web interface I click "Create HA Entities", after that when I try to restart Home Assistant, I get the following error message:

Impossible to restart Home Assistant

The system cannot restart because the configuration is not valid: Invalid config for [sensor.history_stats]: Entity ID sensor.termostato_mark's_smarther_state is an invalid entity ID for dictionary value @ data['entity_id']. Got "sensor.termostato_mark's_smarther_state". (See ?, line ?). Invalid config for [input_select]: invalid slug mark's_smarther_boost_mode (try mark_s_smarther_boost_mode) for dictionary value @ data['input_select']. Got OrderedDict([("mark's_smarther_boost_mode", OrderedDict([('name', 'Boost Mode'), ('options', ['off', 'Boost 30m', 'Boost 60m', 'Boost 90m']), ('icon', 'mdi:play-speed')])), ("mark's_smarther_program", OrderedDict([('name', 'Program Mode'), ('options', ['Full Week', 'Full Week Spring']), ('icon', 'mdi:calendar-clock')]))]). (See ?, line ?).

I have absolutely no clue why I get those errors, which prevent Home Assistant to restart!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants