Skip to content

Commit

Permalink
import switch
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Oct 17, 2023
1 parent 1988cdf commit dc73e1c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/BalboaGL/ESPBalboaGL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ void BalboaGL::update() {
// if(status.rawData != lastRaw) {
ESP_LOGD(TAG, "Raw: %s", status.rawData.c_str());
lastRaw = status.rawData;

this->lightSwitch->publish_state(status.light);

this->publish_state();
// }

Expand Down
2 changes: 2 additions & 0 deletions components/BalboaGL/ESPBalboaGL.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
// #include "esphome/components/sensor/sensor.h"
// #include "esphome/components/text_sensor/text_sensor.h"
#include "esphome/components/climate/climate.h"
#include "esphome/components/switch/switch.h"

#include "esphome/core/log.h"
#include "esp_log.h"

Expand Down

0 comments on commit dc73e1c

Please sign in to comment.