meta data for this page
appdaemon
Components:
-
- AppDaemon version pinning here: https://github.com/hassio-addons/addon-appdaemon/blob/main/appdaemon/requirements.txt
Within release v0.15.0 the appdaemon data folder will migrate/move out of the Home Assistant configuration folder into a dedicated folder for this add-on.
To access new folder from VSCode
, simply open /root
folder. There will be folder /root/addon_configs
.
Admin dashboard is available on http://hassio:5050/
complex mutli-class apps
Direct imports of classes defined in another file doesn't work. Possible solutions:
- put all class in main app file
- use global module app-dependencies
- create more small apps
- make main app depend on them
- get access to other apps using get_app()
create sensors
With first call to set_state
sensor will be created in HA.
weather sensors
Access as sensor
:
wind = self.get_state("sensor.openweathermap_wind_speed") temp = self.get_state("sensor.openweathermap_feels_like_temperature")
Access as weather
:
WEATHER_SENSOR="weather.openweathermap" temp = self.get_state(WEATHER_SENSOR, attribute="temperature") tempa = self.get_state(WEATHER_SENSOR, attribute="apparent_temperature") wind = self.get_state(WEATHER_SENSOR, attribute="wind_speed") forecast = self.get_state(WEATHER_SENSOR, attribute="forecast") for f in forecast: self.log("forecast: %s %s", f["datetime"], f["temperature"])