Closed taugusti closed 5 years ago
Ok - a fairly simple fix as it turns out...
from homeassistant.components.climate import (
ClimateDevice,
SUPPORT_TARGET_TEMPERATURE, SUPPORT_FAN_MODE,
SUPPORT_OPERATION_MODE, SUPPORT_SWING_MODE,
SUPPORT_ON_OFF, PLATFORM_SCHEMA)
to
from homeassistant.components.climate import (
ClimateDevice,
PLATFORM_SCHEMA)
from homeassistant.components.climate.const import (
SUPPORT_TARGET_TEMPERATURE,
SUPPORT_FAN_MODE, SUPPORT_OPERATION_MODE,
SUPPORT_SWING_MODE, SUPPORT_ON_OFF)
The reason for this change is that constants have been moved to const.py in the climate component. See here: https://github.com/home-assistant/home-assistant/pull/20945
I will try to get a pull-request to work - but I have to admit that my git skills are not that good...
Ok - I think I managed to make a pullrequest... :-)
I have merged this to master
Awesome - I will close the issue!
Great stuff you guys 👍 What should I do to get this to work now?
Hi @follox Just delete the old /config/custom_components/climate folder and copy the downloaded project to /config/custom_components/verisureclimate.
The guide on the front page is also updated.
Alright, I got it to work. Thanks for that! But hass.io is complaining with the following: Your configuration contains extra key that the platform does not support (but were silently acceptet before 0.88). Please find and remove the followin. This will become a breaking change.
[uername], [password] Line 109
I am using the Verisure component as well so the configuration looks like this: verisure: username: xxxx password: !secret verisure_pw locks: 1 smartplugs: 1 alarm: 1 hygrometers: 1 thermometers: 1 door_window: 1
Then line 109: climate:
Hi I am not able to access my configuration at the moment - I will send you how mine looks next weekend /th
I am working on a pull request to add this to Home Assistant as a part of the Verisure component. If anyone wants to test it it let me know
Hi I would like to help - I have to admit that I have no clue on how to test a complete Hass component :-) But lets find out :-) /th
Thanks to both of you. It will be great to have it integrated within the Verisure component. Please give me a heads up when it is ready. I can also help out testing, but not sure what I should do?
It is ready, but you need access to the home assistant installation files to do this, not sure where this is located on eg hassio. It is here: https://github.com/jamiewalters/home-assistant/tree/dev/homeassistant/components/verisure
Copy init and climate to your verisure folder in your home assistant installation. No more config is needed.
I just need to complete some more steps in order to finish the pull request.
Pull request completed:
https://github.com/home-assistant/home-assistant/pull/22555
Waiting for review.
After updating home assistant (RPI / HASS.IO) to version 0.89.1, the verisure component stopped working.
In the log: Unable to find platform verisureclimate.
I tried to rename the folder and .py file as described here:
When I do that I get this in the log:
The core seems to be some sort of change in the home assiatant climate component...?