where you use “[MotionLights]” it should say “MotionLights:”
and to make sure (when you get errors you always can put old things between “” because yaml can translate where you dont like it.
so 30 should be “30” in some cases
you see it isnt as hard s you expected most of what you have done is right
Ok, thx. Will try that later this weekend. What about the file location in the first app? Just delete the directory reference (but leave the filename) as I use hassio?
Small update; Got Switch reset and motion_lights working. So great start and this allows me to switch off my ‘old’ pi and switch to hass.io. Thanks for your help so far!
p.s. on the file location for switch_reset: I had to take away any directory reference to get that working.
I had to upgrade Python in my Venv so used that opportunity to switch to hass.io instead (mentioned here) which seems better for amateurs like me. Migration is pretty smooth (also thanks to this forum) and all seems to be working out fine up till now.
My first thinking was a YAML formatting thing for the times but formatting is identical then this post so I doubt its a formatting (times between quotes etc).
you got a character in your yaml thats not unicode.
this happens when you edit with an editor that doesnt translate characters the right way, when saving and you use non unicode characters.
so
start using an other editor or
dont use characters that are not utf-8
about your second question.
the notify sends notifications to 1 of your notification platforms (or all) inside HA.
what and when it sends depends on your settings.
if i remember correctly you need to configure your notify settings in the file global.py
UTF-8
I use virtual studio code on a mac. In the lower right corner I can see a UTF-8 label. It looks like all of my files I changed in appdeamon are UTF-8. Is there a way to point out symbols that are not UTF-8?
notify:
Where can I find the global.py file? I use hass.io, so don’t know I I could change that.
But it seems like not many of use use notify in occusim. I don’t know yet if I want to use it or if I notify myself with an automation (when input_boolean is turned on)
i dont know what in your yaml is creating the error. could be tab sign, or something like ä, Ë, ó or a grad sign.
i was mistaken about the notify (was thinking about some other apps,sorry)
the notify sends messages to every notify platform you have created in home assistant.
and the readme says:
notify set this to any value to make OccuSim send a notification for its scheduled activities
yaml interprets times as datetime objects.
thats why you need to use quotes (i prefer double quotes ") around a time
sunset is already a string, so leave the quotes there away.
if you dont want a notify to all your notify platforms then dont use that option.
Is there a reason why you prefer doubles quotes? I was never sure about which ones I should use. I think I did not use it consistently in my whole config.
So sunset + 00:30:00 should be fine.
There is still the question why I get this error (utf-8).
I commented out the whole code I put in and I still get that error.
I use the newest version of ha 0.86.1 and the newest appdeamon addon.
Maybe a new bug?
like you i never was sure. and i think its hard sometimes.
my prefference comes from the old days i guess.
in general just pick 1 as your main quote type and only use the other when you need to (quotes in quotes)
i think so.
the bug is somewhere in the yaml from appdaemon (or else you wouldnt get an error in the appdaemon logs)
and there have not been any changes in appdaemon for a long time, so it cant be a new bug
it can be a tab on an empty line for instance.
try another editor. try a yaml checker online. there must be a character somewhere in your yaml files that gives you that error.
but it can be in ANY yaml file that you got inside your apps dir