francislab / hass-climate-scheduler Goto Github PK
View Code? Open in Web Editor NEWA Home Assistant component to define climate profiles and facilitate automation of climate entities.
License: MIT License
A Home Assistant component to define climate profiles and facilitate automation of climate entities.
License: MIT License
Hi,
I just installed and configured climate_scheduler on my Home Assistant installation and so far it is working fine.
However, I have an "issue" with my AC unit. Every 30 minutes (more or less), my AC unit emit three consecutive beeps, as if she received some command.
Is it related to the "update_interval" configuration parameter ? Does climate_scheduler resend the same command depending on the update_interval configured ?
Thanks for your response.
Following update to homeassistant core to InputSelect class (home-assistant/core@b0d033e)
self._profile_selector = InputSelect(selector_config) in switch.py line 389 gives this error:
File "/usr/src/homeassistant/homeassistant/components/input_select/init.py", line 296, in extra_state_attributes
return {ATTR_EDITABLE: self.editable}
AttributeError: 'InputSelect' object has no attribute 'editable'
Fixed it by calling
self._profile_selector = InputSelect.from_yaml(selector_config)
Saw what appears to be a similar python-related issue with a feedparser integration. Recently upgraded to 2023.6.1 which is when this issue started and no other significant changes were made, so this appears to be a 2023.6.X issue.
Log Error:
Logger: homeassistant.components.switch
Source: custom_components/climate_scheduler/switch.py:504
Integration: Switch (documentation, issues)
First occurred: 09:36:55 (1 occurrences)
Last logged: 09:36:55
Error adding entities for domain switch with platform climate_scheduler
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 471, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 749, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 849, in add_to_platform_finish
await self.async_added_to_hass()
File "/config/custom_components/climate_scheduler/switch.py", line 416, in async_added_to_hass
await self._async_update_profile(previous_attributes[ATTR_PROFILE])
File "/config/custom_components/climate_scheduler/switch.py", line 442, in _async_update_profile
await self.async_update_climate()
File "/config/custom_components/climate_scheduler/switch.py", line 504, in async_update_climate
await asyncio.wait(update_tasks)
File "/usr/local/lib/python3.11/asyncio/tasks.py", line 415, in wait
raise TypeError("Passing coroutines is forbidden, use tasks explicitly.")
TypeError: Passing coroutines is forbidden, use tasks explicitly.
I'm trying to make this work but installing by hand.
One I've downloaded and copied files to the relvant directory and restarted homeassistant I can't find neither the integration nor the lovelace card.
Would you be so kind to make a better documentatin for those that have no access to HACS ?
Thanks
Hi, this is Frank
i have created the configuration as describet but i get an error during creating the input selector:
Logger: homeassistant.core
Source: components/input_select/init.py:296
First occurred: 11:56:52 (1 occurrences)
Last logged: 11:56:52
Error executing service: <ServiceCall input_select.select_option (c:01GK6NA1F6S7BAFJ9FBGQ3K1Z1): entity_id=['input_select.bad_climate_profile_selector_2'], option=Test>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1762, in catch_exceptions
await coro_or_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1781, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 208, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 678, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 943, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 715, in _handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/input_select/init.py", line 308, in async_select_option
self.async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 545, in async_write_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 586, in _async_write_ha_state
attr.update(self.extra_state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/input_select/init.py", line 296, in extra_state_attributes
return {ATTR_EDITABLE: self.editable}
AttributeError: 'InputSelect' object has no attribute 'editable'
My configuration are:
climate_scheduler:
update_interval: "00:10:00"
switch:
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Setup failed for custom integration climate_scheduler: Integration 'climate_scheduler' did not return boolean if setup was successful. Disabling component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
2022-07-26 14:54:07 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform climate_scheduler.switch: Unable to set up component.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.