Thank you for the quick response. Here is the complete log.
You’re using AppDaemon 4.0.0b1, not the stable 3.x. They seem to have built some kind of sanity check in there that just fails. I don’t know why.
You could switch over to the development version of Schedy, because that particular piece of code has been reworked there. Maybe it’ll work then.
Using the dev-branch didn’t help.
Switched to the stable 3.x version. It’s working now.
thanks again
Yes, expected that. I found what causes the issue and reported it on their project page.
@taste I took your floor heating schedule as base for a new example for the docs. I think that’s even simpler as yours, in case you’re interested: https://hass-apps.readthedocs.io/en/latest/apps/schedy/schedules/expressions/examples.html#conditional-sub-schedules-using-break
Indeed very useful and good to be added to the examples. I will review my other schedules to simplify
@roschi Thanks for your help. Could you please help me how can I evaluate an input_select’s state? I’ve tried this without success:
x: "IncludeSchedule(schedule_snippets['snippet1']) if input_select.my_selector = 'value1' else Skip()"
@denxhun What have you read so far?
Here are all expression helpers related to retrieving entity state.
https://hass-apps.readthedocs.io/en/latest/apps/schedy/schedules/expressions/helpers/state.html
@roschi Thanks again. I’ve read a lot but the one you’ve mentioned somehow skipped. Just for the record (maybe others will seek it again):
x: "IncludeSchedule(schedule_snippets['snippet1']) if state('input_select.my_selector') == 'value1' else Skip()"
Yes, exactly, that should work.
2019-01-10 08:51:47.761685 INFO AppDaemon Version 3.0.2 starting
2019-01-10 08:51:47.762462 INFO Configuration read from: /config/appdaemon/appdaemon.yaml
2019-01-10 08:51:47.767534 INFO AppDaemon: Starting Apps
2019-01-10 08:51:47.777737 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2019-01-10 08:51:48.080374 INFO AppDaemon: HASS: HASS Plugin Initializing
2019-01-10 08:51:48.081945 INFO AppDaemon: HASS: HASS Plugin initialization complete
2019-01-10 08:51:48.083308 INFO Starting Dashboards
2019-01-10 08:51:48.110116 INFO API is disabled
2019-01-10 08:51:48.136970 INFO AppDaemon: HASS: Connected to Home Assistant 0.84.6
2019-01-10 08:51:48.393345 INFO AppDaemon: Got initial state from namespace default
2019-01-10 08:51:50.414678 INFO AppDaemon: Reading config
2019-01-10 08:51:50.660330 INFO AppDaemon: /config/appdaemon/apps/schedy.yaml added or modified
2019-01-10 08:51:50.666843 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2019-01-10 08:51:50.672940 INFO AppDaemon: /config/appdaemon/apps/schedy.yaml added or modified
2019-01-10 08:51:50.674109 INFO AppDaemon: /config/appdaemon/apps/apps.yaml added or modified
2019-01-10 08:51:50.678236 INFO AppDaemon: App 'schedy_heating' added
2019-01-10 08:51:50.679250 INFO AppDaemon: App 'hello_world' added
2019-01-10 08:51:50.692912 INFO AppDaemon: Adding /config/appdaemon/apps to module import path
2019-01-10 08:51:50.715051 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hass_apps_loader.py
2019-01-10 08:51:50.810759 INFO AppDaemon: Loading App Module: /config/appdaemon/apps/hello.py
2019-01-10 08:51:50.850548 INFO AppDaemon: Initializing app schedy_heating using class SchedyAp from module hass_apps_loader
2019-01-10 08:51:50.851583 WARNING AppDaemon: ------------------------------------------------------------
2019-01-10 08:51:50.852378 WARNING AppDaemon: Unexpected error initializing app: schedy_heating:
2019-01-10 08:51:50.853408 WARNING AppDaemon: ------------------------------------------------------------
2019-01-10 08:51:50.903168 WARNING AppDaemon: Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 2051, in check_app_updates
self.init_object(app)
File "/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 1568, in init_object
app_class = getattr(modname, app_args["class"])
AttributeError: module 'hass_apps_loader' has no attribute 'SchedyAp'
2019-01-10 08:51:50.904258 INFO AppDaemon: Initializing app hello_world using class HelloWorld from module hello
2019-01-10 08:51:50.903758 WARNING AppDaemon: ------------------------------------------------------------
2019-01-10 08:51:51.234727 INFO hello_world: Hello from AppDaemon
2019-01-10 08:51:51.239949 INFO hello_world: You are now ready to run Apps!
2019-01-10 08:51:51.242413 INFO AppDaemon: App initialization complete
Hi all.
I installed AppDeamon in hassio and saved the config for schedy in a yaml-file “schedy” in \appdaemon\apps. I have followed the instructions but still get this error after numerious trials and errors. Appreciate any help.
Regards Arne-Olaf
Hi @Arne-Olaf
First, it’s /config/appdaemon/apps/schedy.yaml
, no backslashes, as this is no Microsoft OS.
Second, have you read the error message carefully?
AttributeError: module 'hass_apps_loader' has no attribute 'SchedyAp'
You should do so, because it for sure won’t be the last time something is not working because of a typo like this.
Hi roschi
Thanks for your answer and the time you spend on this project. I much appreciate your effort.
I don’t think it’s the backslashes, I just copied the adress from the adress bar of explorer as I’m using Samba Share. The schedy.yaml is definetily in the right place.
So the ‘hass_apps_loader’ needs an attribute ‘SchedyAp’? Hmm, or is it a typo? I honestly don’t understand. I think I will make sort of a Schedy for dummies if I manage to overcome this and get my heating scheduled.
No, this has nothing to do with the backslashes. I was just mentioning it separately.
Honestly, Schedy for dummies won’t help here… Please double-check the class: ...
line in your schedy.yaml
and compare it to the sample.
No, obviously not - the Schedy for dummies. But a pair of stronger glasses might helped, I have stared at this for hours. Lesson learned.
Everything is working now. Schedy is awesome!
Thanks a million times.
Best Regards
Arne-Olaf
Well, that’s an advantage of having to use a screen reader - you hear when something isn’t spelled correctly and thus doesn’t sound as it should
Brilliant! Nice to hear you got it working without major issues. If you have any suggestion for improving the docs, especially for the chapter about Schedules and the more advanced things, let me know.
Im afraid I need help (again)
After updating to homeassistant 0.85.1 it fails to grab the hass-app. Looks like it cannot access the internet. This is teh error message
Collecting https://github.com/efficiosoft/hass-apps/archive/master.zip Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7f0f4cb73978>: Failed to establish a new connection: [Errno -3] Try again',)': /efficiosoft/hass-apps/archive/master.zip
This is both for the master as for the release version. If I check with wget I can get that file at my server but I do not know how to enter the appdeamon virtual environment.
Is this now ready, available?