humidity, dewtemp as uint

This commit is contained in:
MichaelDvP
2022-08-09 14:57:18 +02:00
parent a087974acb
commit 70f52ce484
2 changed files with 4 additions and 4 deletions

View File

@@ -3978,8 +3978,8 @@ void Thermostat::register_device_values_hc(std::shared_ptr<Thermostat::HeatingCi
// RC300 remote with humidity, this is also EMS_DEVICE_FLAG_RC100 for set_calinttemp // RC300 remote with humidity, this is also EMS_DEVICE_FLAG_RC100 for set_calinttemp
if (device_id() >= 0x38 && device_id() <= 0x3F) { if (device_id() >= 0x38 && device_id() <= 0x3F) {
register_device_value(tag, &hc->remotetemp, DeviceValueType::SHORT, FL_(div10), FL_(remotetemp), DeviceValueUOM::DEGREES); register_device_value(tag, &hc->remotetemp, DeviceValueType::SHORT, FL_(div10), FL_(remotetemp), DeviceValueUOM::DEGREES);
register_device_value(tag, &hc->dewtemperature, DeviceValueType::INT, nullptr, FL_(dewTemperature), DeviceValueUOM::DEGREES); register_device_value(tag, &hc->dewtemperature, DeviceValueType::UINT, nullptr, FL_(dewTemperature), DeviceValueUOM::DEGREES);
register_device_value(tag, &hc->humidity, DeviceValueType::INT, nullptr, FL_(airHumidity), DeviceValueUOM::PERCENT); register_device_value(tag, &hc->humidity, DeviceValueType::UINT, nullptr, FL_(airHumidity), DeviceValueUOM::PERCENT);
register_device_value( register_device_value(
tag, &ibaCalIntTemperature_, DeviceValueType::INT, FL_(div10), FL_(ibaCalIntTemperature), DeviceValueUOM::DEGREES_R, MAKE_CF_CB(set_calinttemp)); tag, &ibaCalIntTemperature_, DeviceValueType::INT, FL_(div10), FL_(ibaCalIntTemperature), DeviceValueUOM::DEGREES_R, MAKE_CF_CB(set_calinttemp));
return; return;

View File

@@ -84,8 +84,8 @@ class Thermostat : public EMSdevice {
uint8_t climate; uint8_t climate;
uint8_t switchonoptimization; uint8_t switchonoptimization;
uint8_t statusbyte; // from RC300monitor uint8_t statusbyte; // from RC300monitor
int8_t humidity; uint8_t humidity;
int8_t dewtemperature; uint8_t dewtemperature;
// RC 10 // RC 10
uint8_t reducehours; // night reduce duration uint8_t reducehours; // night reduce duration