diff --git a/README.md b/README.md index bfe553c..2b769c1 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ script: then: - if: condition: - lambda: 'return id(status).state == "OFF";' + lambda: 'return id(status).state == "Off";' then: - switch.turn_on: power - wait_until: diff --git a/components/philips_series_2200/text_sensor/status_sensor.h b/components/philips_series_2200/text_sensor/status_sensor.h index eba3d8b..6061244 100644 --- a/components/philips_series_2200/text_sensor/status_sensor.h +++ b/components/philips_series_2200/text_sensor/status_sensor.h @@ -30,12 +30,12 @@ namespace esphome void update_status(uint8_t *data, size_t len); /** - * @brief Sets the status to OFF + * @brief Sets the status to Off */ void set_state_off() { - if (state != "OFF") - publish_state("OFF"); + if (state != "Off") + publish_state("Off"); }; /**