Are there any ways to get home assistant url in AppDaemon app?
you have the HA url set in the appdaemon yaml.
to get the info from the (hass) plugin you can use the function
self.get_plugin_config()
I have tried, I donât see ha_url here:
{âcomponentsâ: [âswitch.command_lineâ, âlockâ, âsensor.yweatherâ, âzoneâ, âowntracksâ, âconfig.groupâ, âsensor.systemmonit
orâ, âconfig.entity_registryâ, âconfig.scriptâ, âlovelaceâ, âsensor.templateâ, âmedia_player.ps4â, âhttpâ, âonboardingâ, â
light.groupâ, âbinary_sensor.templateâ, âttsâ, âauthâ, âbinary_sensorâ, âmedia_playerâ, âcamera.synologyâ, âdevice_tracker
â, âupdaterâ, âxiaomi_aqaraâ, âconfig.customizeâ, ânotify.groupâ, âfanâ, âtelegram_botâ, âswitch.templateâ, âscriptâ, âswi
tch.xiaomi_aqaraâ, âshell_commandâ, âinput_textâ, âconfig.device_registryâ, âgoogle_assistantâ, âlogbookâ, âinput_numberâ,
âwebsocket_apiâ, âgroupâ, âsystem_logâ, âsunâ, âconfigâ, ânotify.telegramâ, ânotify.lametricâ, âmedia_player.plexâ, âlame
tricâ, âcastâ, âcover.xiaomi_aqaraâ, âconversationâ, âalarm_control_panel.manualâ, âfrontendâ, ânotifyâ, âconfig.authâ, âs
witchâ, âapiâ, âcameraâ, âdiscoveryâ, âbinary_sensor.pingâ, âlock.xiaomi_aqaraâ, âsceneâ, âscene.homeassistantâ, âhistoryâ
, âconfig.auth_provider_homeassistantâ, âclimateâ, âconfig.coreâ, âsensor.mqttâ, âcoverâ, âsensor.xiaomi_aqaraâ, âsensor.m
in_maxâ, âalarm_control_panelâ, ânotify.html5â, âlock.templateâ, âbinary_sensor.xiaomi_aqaraâ, âsensor.gh_alarm_and_timerâ
, âsensorâ, âbinary_sensor.internetâ, âwebhookâ, ârecorderâ, âffmpegâ, âmqttâ, âswitch.wake_on_lanâ, âlight.xiaomi_aqaraâ,
âconfig.config_entriesâ, âautomationâ, âremote.xiaomi_miioâ, âlightâ, âmedia_player.castâ, âlight.xiaomi_miioâ, âpython_s
criptâ, âremoteâ, âinput_booleanâ, âconfig.automationâ, âfan.xiaomi_miioâ], âconfig_dirâ: â/configâ, âelevationâ: 210, âla
titudeâ: 1, âlocation_nameâ: â1â, âlongitudeâ: 1, âtime_zoneâ: â1â, âunit_systemâ: {âle
ngthâ: âkmâ, âmassâ: âgâ, âtemperatureâ: â°Câ, âvolumeâ: âLâ}, âversionâ: â0.84.1â, âwhitelist_external_dirsâ: [â/config/w
wwâ]}
sorry i did get it wrong (happens with stuff that i never use )
you can use
self.config[âpluginsâ][âHASSâ][âha_urlâ]
unless you named your plugin with a different name.
Thanks this worked