Scheduler card/custom component

Hi neliss,

Thanks for your responce, i’m getting the following error message in the console :


scheduler-card.js:287 Uncaught (in promise) TypeError: Cannot read property 'filter' of undefined
    at Bi (scheduler-card.js:287)
    at Zi (scheduler-card.js:287)
    at Ki (scheduler-card.js:287)
    at scheduler-card.js:1437
    at Array.filter (<anonymous>)
    at HTMLElement.getDomainSwitches (scheduler-card.js:1437)
    at HTMLElement.render (scheduler-card.js:1435)
    at HTMLElement.update (scheduler-card.js:186)
    at HTMLElement.performUpdate (scheduler-card.js:148)
    at HTMLElement._enqueueUpdate (scheduler-card.js:148)
Bi @ scheduler-card.js:287
Zi @ scheduler-card.js:287
Ki @ scheduler-card.js:287
(anonymous) @ scheduler-card.js:1437
getDomainSwitches @ scheduler-card.js:1437
render @ scheduler-card.js:1435
update @ scheduler-card.js:186
performUpdate @ scheduler-card.js:148
_enqueueUpdate @ scheduler-card.js:148
async function (async)
_enqueueUpdate @ scheduler-card.js:148
requestUpdateInternal @ scheduler-card.js:148
set @ scheduler-card.js:148
value @ chunk.1ea6ef6c0d2b8e9fc07f.js:981
performUpdate @ app.e45b0549.js:10297
_enqueueUpdate @ app.e45b0549.js:10297
async function (async)
_enqueueUpdate @ app.e45b0549.js:10297
requestUpdateInternal @ app.e45b0549.js:10297
set @ app.e45b0549.js:10297
commit @ app.e45b0549.js:10297
commit @ app.e45b0549.js:10297
update @ app.e45b0549.js:10297
__commitTemplateResult @ app.e45b0549.js:10297
commit @ app.e45b0549.js:10297
update @ app.e45b0549.js:10297
__commitTemplateResult @ app.e45b0549.js:10297
commit @ app.e45b0549.js:10297
a @ app.e45b0549.js:10297
H.render @ app.e45b0549.js:10297
update @ app.e45b0549.js:10297
performUpdate @ app.e45b0549.js:10297
_enqueueUpdate @ app.e45b0549.js:10297
async function (async)
_enqueueUpdate @ app.e45b0549.js:10297
requestUpdateInternal @ app.e45b0549.js:10297
set @ app.e45b0549.js:10297
value @ chunk.1ea6ef6c0d2b8e9fc07f.js:981
performUpdate @ app.e45b0549.js:10297
_enqueueUpdate @ app.e45b0549.js:10297
async function (async)
_enqueueUpdate @ app.e45b0549.js:10297
requestUpdateInternal @ app.e45b0549.js:10297
set @ app.e45b0549.js:10297
commit @ app.e45b0549.js:10297
commit @ app.e45b0549.js:10297
update @ app.e45b0549.js:10297
__commitTemplateResult @ app.e45b0549.js:10297
commit @ app.e45b0549.js:10297
a @ app.e45b0549.js:10297
H.render @ app.e45b0549.js:10297
update @ app.e45b0549.js:10297
performUpdate @ app.e45b0549.js:10297
_enqueueUpdate @ app.e45b0549.js:10297
async function (async)
_enqueueUpdate @ app.e45b0549.js:10297
requestUpdateInternal @ app.e45b0549.js:10297
set @ app.e45b0549.js:10297
(anonymous) @ app.e45b0549.js:41607
value @ app.e45b0549.js:41607
value @ app.e45b0549.js:44533
performUpdate @ app.e45b0549.js:10297
_enqueueUpdate @ app.e45b0549.js:10297
async function (async)
_enqueueUpdate @ app.e45b0549.js:10297
requestUpdateInternal @ app.e45b0549.js:10297
set @ app.e45b0549.js:10297
value @ app.e45b0549.js:41607
(anonymous) @ app.e45b0549.js:41607
s @ core.87e3602e.js:1
(anonymous) @ core.87e3602e.js:1
(anonymous) @ core.87e3602e.js:1
_handleMessage @ core.87e3602e.js:1
(anonymous) @ core.87e3602e.js:1

This is probably caused by an entity in your HA config that the card is unable to process.
I changed some things in the v2.0.1 release, that will make the card robust for such entities.
Please update to this version.

With the new version, you can check the browser log for information about which entity gives the problem.

If it helps to understand any errors: I just upgraded to version 2.01 and everything works like a gem.
Sorry if I repeat myself: great job!

I’ve updated also to 2.0.1, everything is working perfectly now.
Thanks for all the hard work! And maybe I repeat others, but this integration makes Hass usefull (using it since the beginning in august 2020!

Thanks for all your great work.
I have a feature request and am off traveling for holiday so no easy github access so sorry I am posting it here using my phone.

A vacation mode schedule that randomly turn things on and off. I currently use an appdeamon app called occupsim. I tell it the number of times I want the light turned on and it creates a random schedule for that many on/offs. Is this something the Scheduler could do?
Thanks

Would it be just easier to have an automation do it?

Thanks for the ideas. My appdaemon does the same thing. Just thought that random and repeat functionality would be a great addition.

Hello!

appdaemon…
For a long time it scared me a little. Then I used for ControlerX… And yesterday I spent hours on Schedy which is really a very well done scheduller ! Alas he doesn’t have a GUI!

I am a happy user of this integration, but all of a sudden those two unknown programs that make my card ugly have appeared and I can’t find a way to eliminate them. Can you help me? thanks.
Captura

I got the same:

Defective schedule entity
switch.schedule_timer_kinderzimmer

Any idea how to get rid of those?

Clear your whole storage by opening .storage and deleting the scheduler.storage file. If you’re using Samba, then check “Show hidden files and folders” under View on Windows Explorer to show the .storage folder. If you’re using Configurator, then remove .storage from hidden files/folders in the addon’s config.

Will this remove ALL schedules? Or just the defective one?

All the scheduler…

The error indicates that a schedule is defective, in other words: for some reason the timer is not running.
Such schedule can still be modified by clicking on it.
Deleting your schedules storage file is not a good idea.

I would like to know when such problem occurs (I’ve never seen it), so I can solve this issue.
Please report it on Github if you experience this, and try to share as many details as possible.

i’m getting the error and what i se in log is

Logger: homeassistant.components.websocket_api.http.connection
Source: components/websocket_api/connection.py:84
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 2:54:16 AM (3 occurrences)
Last logged: 2:56:17 AM

[139842568859504] Received invalid command: scheduler

This is because you didn’t update the scheduler-component.

it is updated and new installed yesterday

Try rebooting HA as well?

more than once

another reboot when doing some other stuff seems to fixed it… and made no changes to schedule