andrea-mattioli / mattiols_hassio_repository

Home Assistant Repository Addons
16 stars 12 forks source link

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

Open HSMarzio opened 1 year ago

HSMarzio commented 1 year ago

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 commented 1 year ago

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:

instead of

mqtt: binary_sensor:

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 commented 1 year ago

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!