Giter VIP home page Giter VIP logo

hass-climate-scheduler's People

Contributors

francislab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hass-climate-scheduler's Issues

Question regarding "update_interval"

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.

InputSelect constructor from yaml config

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)

Switch Not Adding On Restart HASS 2023.6.X

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.

Documentation not clear when not installing via HACS

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

Error Input Selector

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:

  • platform: climate_scheduler
    name: Bad
    default_profile: "Override"
    climate_entities:
    • climate.thermostatic_valve
    • climate.thermostatic_valve_2
      profiles:
    • id: "Test"

Does not start in HA 2022.7.x

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.