Skip to content

Commit

Permalink
Adds log to Programmschalter
Browse files Browse the repository at this point in the history
Relates to: #104
  • Loading branch information
kr0ner committed Feb 13, 2025
1 parent 67a040c commit 59098ec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions yaml/wpl13.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ esphome:
- lambda: |-
CallbackHandler::instance().addCallback(std::make_pair(WPM2,Property::kPROGRAMMSCHALTER),[](const SimpleVariant& value){
const auto stringValue{value.get<std::string>()};
ESP_LOGI("PROGRAMMSCHALTER", "mapped value %s", stringValue.c_str());
const auto index = id(PROGRAMMSCHALTER).index_of(stringValue);
if(index.has_value()) {
id(PROGRAMMSCHALTER).publish_state(stringValue);
Expand Down

0 comments on commit 59098ec

Please sign in to comment.