@@ -894,13 +894,21 @@ class temperature_type(Enum):
894894 FRIDGE = 1
895895 GENERIC = 2
896896
897+ class temperature_status (Enum ):
898+ OK = 0
899+ DISCONNECTED = 1
900+ SHORT_CIRCUITED = 2
901+ REVERSE_POLARITY = 3
902+ UNKNOWN = 4
903+ LOW_BATTERY = 5
904+
897905temperature_registers = {
898906 "temperature_productid" : RegisterInfo (3300 , UINT16 ),
899907 "temperature_scale" : RegisterInfo (3301 , UINT16 , "" , 100 ),
900908 "temperature_offset" : RegisterInfo (3302 , INT16 , "" ,100 ),
901909 "temperature_type" : RegisterInfo (register = 3303 , dataType = UINT16 , entityType = TextReadEntityType (temperature_type )),
902910 "temperature_temperature" : RegisterInfo (3304 , INT16 , UnitOfTemperature .CELSIUS , 100 ),
903- "temperature_status" : RegisterInfo (register = 3305 , dataType = UINT16 , entityType = TextReadEntityType (generic_status )),
911+ "temperature_status" : RegisterInfo (register = 3305 , dataType = UINT16 , entityType = TextReadEntityType (temperature_status )),
904912 "temperature_humidity" : RegisterInfo (3306 , UINT16 , PERCENTAGE , 10 ),
905913 "temperature_batteryvoltage" : RegisterInfo (3307 , UINT16 , UnitOfElectricPotential .VOLT , 100 ),
906914 "temperature_pressure" : RegisterInfo (3308 , UINT16 , UnitOfPressure .HPA )
0 commit comments