From 6992bfeef9e9bbde167cd249203b7b2bbe120f6c Mon Sep 17 00:00:00 2001 From: Stephan Martin Date: Sat, 8 Nov 2025 15:32:59 +0100 Subject: [PATCH] Add global radiation sensor to Zamg component (#155767) --- homeassistant/components/zamg/sensor.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/homeassistant/components/zamg/sensor.py b/homeassistant/components/zamg/sensor.py index fdb9d51185c..6caa0741c1b 100644 --- a/homeassistant/components/zamg/sensor.py +++ b/homeassistant/components/zamg/sensor.py @@ -15,6 +15,7 @@ from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( DEGREE, PERCENTAGE, + UnitOfIrradiance, UnitOfPrecipitationDepth, UnitOfPressure, UnitOfSpeed, @@ -156,6 +157,14 @@ SENSOR_TYPES: tuple[ZamgSensorEntityDescription, ...] = ( state_class=SensorStateClass.MEASUREMENT, para_name="TPAM", ), + ZamgSensorEntityDescription( + key="global_radiation", + name="Global Radiation", + native_unit_of_measurement=UnitOfIrradiance.WATTS_PER_SQUARE_METER, + device_class=SensorDeviceClass.IRRADIANCE, + state_class=SensorStateClass.MEASUREMENT, + para_name="GLOW", + ), ) SENSOR_KEYS: list[str] = [desc.key for desc in SENSOR_TYPES]