I have an Automation in my HASS (core-2024.9.2), at the end of which, I’d like to tell a ESPHome device to redraw its screen. I think (hope) that I have the basic framework in place with this section of yaml:
api:
services: #
- service: snapshot_ready
variables:
name: string
value: int
then:
- lambda: |-
bool state_return = false;
if (("snapshot_ready" == name) && (value >= 0U) && (value <= 1U)) {
//... I would like to do: componen_update: here...
state_return = true;
}
if (true == state_return) {
ESP_LOGW("Service: Snapshot Ready", "I can download image now");
}
else {
ESP_LOGW("Service: Snapshot Ready", "Error in name or data range");
}
My problem now, is how do I do the equivalent of component_update: within the lambda:?
Regards, Martin