diff --git a/src/data/entity_attributes.ts b/src/data/entity_attributes.ts index d7782e1dbfb2..bb1582b5d1bb 100644 --- a/src/data/entity_attributes.ts +++ b/src/data/entity_attributes.ts @@ -70,6 +70,7 @@ export const DOMAIN_ATTRIBUTES_UNITS = { brightness: "%", }, sun: { + azimuth: "°", elevation: "°", }, vacuum: { diff --git a/src/dialogs/more-info/controls/more-info-sun.ts b/src/dialogs/more-info/controls/more-info-sun.ts index fb3da7108c9b..ede4d9386746 100644 --- a/src/dialogs/more-info/controls/more-info-sun.ts +++ b/src/dialogs/more-info/controls/more-info-sun.ts @@ -58,6 +58,14 @@ class MoreInfoSun extends LitElement { ${this.hass.formatEntityAttributeValue(this.stateObj, "elevation")} +
+
+ ${this.hass.localize("ui.dialogs.more_info_control.sun.azimuth")} +
+
+ ${this.hass.formatEntityAttributeValue(this.stateObj, "azimuth")} +
+
`; } diff --git a/src/translations/en.json b/src/translations/en.json index 6438749b16e8..10c485ad4a25 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -1038,6 +1038,7 @@ "last_triggered": "Last triggered" }, "sun": { + "azimuth": "Azimuth", "elevation": "Elevation", "rising": "Rising", "setting": "Setting"