while parsing a block mapping
in "/config/esphome/pond_control.yaml", line 252, column 15:
lambda: 'return id(water_change_ ...
^
expected <block end>, but found '<scalar>'
in "/config/esphome/pond_control.yaml", line 252, column 70:
... r_change_in_progress).state == 'false';'
I’ve exhausted my current capability with this so am seeking some help.
globals:
- id: defeat
type: bool
restore_value: no
initial_value: "false"
And i get this error:
Compiling .pioenvs/esp32-cam-deepsleep/src/main.cpp.o
/config/esp32-cam-deepsleep.yaml:37:39: warning: multi-character character constant [-Wmultichar]
lambda: "return id(defeat).state == 'true';"
^
/config/esp32-cam-deepsleep.yaml: In lambda function:
/config/esp32-cam-deepsleep.yaml:37:30: error: request for member 'state' in 'defeat->esphome::globals::GlobalsComponent<T>::value<bool>()', which is of non-class type 'bool'
lambda: "return id(defeat).state == 'true';"
^
*** [.pioenvs/esp32-cam-deepsleep/src/main.cpp.o] Error 1