Comments (8)
In HA 2024.8 ‘service’ was renamed to ’action’.
This is a breaking change (however not communicated as breaking change) done by HA.
I did not have the chance yet to update this integration for the changes, at the moment I cannot give any solution other than to roll back to HA 2024.7.
from scheduler-component.
I just made release 3.3.6 of the scheduler-component which should fix the compatibility with HA 2024.8.
Thanks @nima-1102 @petebanham for your participation in identifying the issue.
I will close the issue (since the issue does not occur for me anymore with the fix), if I'm wrong please let me know.
from scheduler-component.
I have updated my local HA version to 2024.8 to test this issue.
However for me this error does not occur and the schedules are executing the tasks as they should.
Do you experience this issue with all your schedules, or one in particular?
Could you try pinpointing it to one (or more) schedule by turning all schedules off and then turning one on?
from scheduler-component.
I have this issue as well since the latest HA version. I only have one schedule that is controlling climate entities. Happy to test a fix if that helps.
from scheduler-component.
@petebanham
Could you share the contents of your scheduler.storage
file which is located in the .storage
subfolder of the HA configuration directory (the folder which has the configuration.yaml)?
With that I could hopefully reproduce exactly the same scenario.
from scheduler-component.
@petebanham Could you share the contents of your
scheduler.storage
file which is located in the.storage
subfolder of the HA configuration directory (the folder which has the configuration.yaml)? With that I could hopefully reproduce exactly the same scenario.
Here you go:
{
"version": 3,
"minor_version": 1,
"key": "scheduler.storage",
"data": {
"schedules": [
{
"schedule_id": "9e33a2",
"timeslots": [
{
"start": "00:00:00",
"stop": "06:00:00",
"conditions": [],
"condition_type": null,
"track_conditions": false,
"actions": [
{
"service": "climate.set_temperature",
"entity_id": "climate.zone1_climate",
"service_data": {
"hvac_mode": "heat",
"temperature": 18.5
}
}
]
},
{
"start": "06:00:00",
"stop": "12:00:00",
"conditions": [],
"condition_type": null,
"track_conditions": false,
"actions": [
{
"service": "climate.set_temperature",
"entity_id": "climate.zone1_climate",
"service_data": {
"hvac_mode": "heat",
"temperature": 19.5
}
}
]
},
{
"start": "12:00:00",
"stop": "22:10:00",
"conditions": [],
"condition_type": null,
"track_conditions": false,
"actions": [
{
"service": "climate.set_temperature",
"entity_id": "climate.zone1_climate",
"service_data": {
"hvac_mode": "heat",
"temperature": 20
}
}
]
},
{
"start": "22:10:00",
"stop": "00:00:00",
"conditions": [],
"condition_type": null,
"track_conditions": false,
"actions": [
{
"service": "climate.set_temperature",
"entity_id": "climate.zone1_climate",
"service_data": {
"hvac_mode": "heat",
"temperature": 18.5
}
}
]
}
],
"weekdays": [
"daily"
],
"start_date": null,
"end_date": null,
"repeat_type": "repeat",
"name": "Heating",
"enabled": true
}
],
"tags": []
}
}
from scheduler-component.
I have updated my local HA version to 2024.8 to test this issue. However for me this error does not occur and the schedules are executing the tasks as they should. Do you experience this issue with all your schedules, or one in particular? Could you try pinpointing it to one (or more) schedule by turning all schedules off and then turning one on?
I have around 60 schedulers, but was able to narrow it down thanks to the logbook. In my basement I have a temperature sensor that switches a dehumidifier on/off when the humidity is < 76% or > 82%. I have 2 schedules for this. Unfortunately, the WiFi reception is not that good there, so the connection seems to break off from time to time, and the error message always appears.
turned off
06:05:59 - 3 hours ago
became unavailable
06:05:59 - 3 hours ago
turned off
00:56:42 - 8 hours ago
2024-08-10 06:05:59.839 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/scheduler/actions.py", line 396, in async_entity_changed
await self.async_process_queue()
File "/config/custom_components/scheduler/actions.py", line 479, in async_process_queue
if self.queue_busy or not self.is_available():
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/scheduler/actions.py", line 441, in is_available
required_services = [action[CONF_SERVICE] for action in self._queue]
~~~~~~^^^^^^^^^^^^^^
KeyError: 'service'
2024-08-10 06:05:59.839 ERROR (Recorder) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/scheduler/actions.py", line 396, in async_entity_changed
await self.async_process_queue()
File "/config/custom_components/scheduler/actions.py", line 479, in async_process_queue
if self.queue_busy or not self.is_available():
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/scheduler/actions.py", line 441, in is_available
required_services = [action[CONF_SERVICE] for action in self._queue]
~~~~~~^^^^^^^^^^^^^^
KeyError: 'service'
2024-08-10 06:05:59.892 ERROR (SyncWorker_62) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/scheduler/actions.py", line 396, in async_entity_changed
await self.async_process_queue()
File "/config/custom_components/scheduler/actions.py", line 479, in async_process_queue
if self.queue_busy or not self.is_available():
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/scheduler/actions.py", line 441, in is_available
required_services = [action[CONF_SERVICE] for action in self._queue]
~~~~~~^^^^^^^^^^^^^^
KeyError: 'service'
2024-08-10 06:05:59.893 ERROR (SyncWorker_62) [homeassistant] Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/config/custom_components/scheduler/actions.py", line 396, in async_entity_changed
await self.async_process_queue()
File "/config/custom_components/scheduler/actions.py", line 479, in async_process_queue
if self.queue_busy or not self.is_available():
^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/scheduler/actions.py", line 441, in is_available
required_services = [action[CONF_SERVICE] for action in self._queue]
~~~~~~^^^^^^^^^^^^^^
KeyError: 'service'
from scheduler-component.
Many thanks for sorting so fast. Mine seems fine now.
from scheduler-component.
Related Issues (20)
- No load the integration HOT 3
- Scheduler doesn't work after midnight HOT 3
- Deprecation warning that 'scheduler' calls `async_track_state_change` instead of `async_track_state_change_event` HOT 5
- auto repeat HOT 1
- Conditions to allow more entities kinds, not only switch and light. Boolean input would be great. Binary sensors too. HOT 2
- Schedule vacuum with rooms HOT 2
- Schedule scheme with conditions HOT 1
- async_dispatcher_send error HOT 14
- Scheme does not run end state HOT 5
- Warning message when upgrading to 2024.7.0 HOT 1
- Schedule switch error in version 3.3.4 during a script repeat loop HOT 4
- custom integration 'scheduler' calls `async_track_state_change` instead of `async_track_state_change_event - will be removed in Home Assistant 2025.5 HOT 1
- Error in latest release when disabling schedule via service switch.turn_off HOT 1
- "object NoneType can't be used in 'await' expression" HOT 1
- Time to next trigger per task is not shown anymore HOT 2
- Schedule switch not activated when switch toggle target is a label
- Ensure scheduler state (eg. manual run with checking time and conditions) HOT 4
- scheduler doesn't work anymore since last update HOT 1
- Service to enable/disable/run a schedule providing the entity the schedule is related for.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scheduler-component.