Justihar

Results 35 comments of Justihar

Pretty certain this is happening because of the None value being returned from `get_state()` which indicates, at the time your code is running, AD doesn't have the input_boolean.hello_world entity stored...

Yeah I'm not suggesting your usage of the constraint is incorrect and it's also probably not a bug, depending on how you look at it. I believe the constraint implicitly...

KimHEF, it looks like you're relying on an environment variable to provide the HASS token to AppDaemon in your compose file. If you don't have that environment variable set in...

If that is your config file, try removing it from the environment in your compose file and try again. I don't know the expected behavior from the environment variable when...

It appears that dockerStart.sh will overwrite the settings in appdaemon.yaml with your environment variables.

I suggest the other way around, remove the args for the keys in environment variables but keep it in appdaemon.yaml.

You will want to use one or the other. The password option will password protect the web interface and the API. You will need to pass `x-ad-access` with the password...

Try using a Response object from aiohttp.web. ``` from aiohttp import web class my_app(hass.Hass): def initialize(self): self.set_log_level("DEBUG") self.register_route(self.auth_call, "foobar") async def auth_call(self, request, kwargs): self.log(request) return web.Response(text="test", content_type="text/html") ```

I don’t run my setup like this but I know if multiple docker instances are running on the same docker network, you can access docker containers internally by their name....

You end up with an extra un-needed callback because you have a callback running to determine if you should enable/disable another callback. It is more efficient to have 1 callback...