Home Assistant URL sensor

I was wondering if there is a sensor or any other way of programmatically tell (in an alert/automation/etc) what the URL of the Home Assistant instance is.
Any ideas?

Internal or external?

Internal is enough for me.

Is this what you’re after ?

Awesome, yes, this is what I was looking for, thanks!!!

One more wish…: I forgot that I also need the port…

Won’t the port always be what you set it on setup ?

Well, probably that’s true, but still, not a portable solution. In case HA moves to a new computer, or to a different user, it might not be the same.
Not a huge problem, but it would be nice to be able to retrieve it programmatically.
The Local IP address could/should have it as well.

The port will stay the same, as it is configured (default 8123) within HA.

Not necessarily: If I make a script/automation/blueprint, make it public and you paste it to your config, it might break, depending if you have the same port set up as I do.

If you publish an automation blueprint, make the port a variable (with 8123 being the default, please).

ok, no prob! :slight_smile: