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

configuration invalid error #17

Closed
robertomontinaro80 opened this issue Dec 22, 2021 · 2 comments
Closed

configuration invalid error #17

robertomontinaro80 opened this issue Dec 22, 2021 · 2 comments

Comments

@robertomontinaro80
Copy link

Hi all, I have home assistant core installed on my respberry. I've successfully added repository of mi-heater in HACS and installed it. Then I rebooted my HA. Actually I see the folder miheater created in custom_components folder, but when I add this lines:

climate:

  • platform: miheater
    host:
    token:
    name: xiaomi_heater
    model: zhimi.heater.mc2

in my configuration.yaml, I can't restart my HA because the configuration file seems to have errors. Below the logs:

Logger: homeassistant.components.websocket_api.http.connection
Source: components/homeassistant/init.py:170
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 10:51:50 PM (3 occurrences)
Last logged: 10:52:38 PM

[2918542496] The system cannot restart because the configuration is not valid: Platform error climate.miheater - No module named 'miio'
[2918542496] The system cannot restart because the configuration is not valid: Platform error sensor.miheater - No module named 'custom_components.miheater.sensor'
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1495, in async_call
task.result()
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 1530, in _execute_service
await handler.job.target(service_call)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/service.py", line 733, in admin_handler
await result
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/homeassistant/init.py", line 170, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error climate.miheater - No module named 'miio'

Please help me.

@robertomontinaro80
Copy link
Author

@ee02217 please help me :(

@robertomontinaro80
Copy link
Author

Nei guys just solved. I installed the integration. Restarted. Modified the configuration.yaml file adding the climate section and suddenly rebooted homeassistant without checking configuration.yaml file from UI interface. I rebooted HA from SSH. After reboot I was able to see the mi heater integration available to be added to dashboard.

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

1 participant