diff --git a/include/TinyComponent.h b/include/TinyComponent.h index 725fce1..999d5f7 100644 --- a/include/TinyComponent.h +++ b/include/TinyComponent.h @@ -24,7 +24,7 @@ bool buildSensorJson(unsigned long value, JsonDocument& jsonDoc) { sensor["humidity"] = (float)GET_HUMIDITY(value) / 10; break; case SensorType::CONTACT: - sensor["state"] = GET_STATE(value) ? "on" : "off"; + sensor["state"] = GET_STATE(value) ? "ON" : "OFF"; break; default: return false;