arthurdent75 / SimpleScheduler

An Home Assistant AddOn to schedule entities on/off on weekly base
183 stars 36 forks source link

Ghost entry in Scheduler dashboard #163

Closed steve-dfw closed 1 month ago

steve-dfw commented 1 month ago

Have had this ghost entry for a while. Not sure what caused it to get created. If you click on the edit button it opens a blank config dialog on the right where all other entries have the config settings for that particular schedule. There is only the <<< button to close the entry. Have noticed that no entry below this ghost entry ever works. They have to be move above it. I tried doing the “rebuild” and uninstalled/reinstalled and the entry remains. I looked on the share and there are 5 json schedule files.

Scheduler_Dashboard

arthurdent75 commented 1 month ago

Hi @steve-dfw, allow me to say that your issue is very odd. You correctly check the presence of another JSON, that would be the only logical explanation.

EDIT: try to delete the sort.dat file

If it doesn't work, try the following:

Let me know if it works.

steve-dfw commented 1 month ago

That fixed it! I had already uninstalling the add-on previously, but did not remove the folder after the uninstall. This time after the install and folder removal, I reinstalled, started service, checked dashboard to confirm empty, copied back just the schedule item JSON files, and refreshed the page. The 5 proper schedule items were there as they should be.
The only thing I noticed that is different is that now in the folder there is no options.json file (only options.dat). Maybe that file was from an earlier version.
Thank you for the help!

arthurdent75 commented 1 month ago

option.dat will be created when you save settings on the configuration page. I'm glad you solved it!