Hello,
I want to understand the strategy or idea of using ESPhome.
I just used ESPhome as "update" from my own programmed ESP32-CAM module using MQTT and OTA in the NodeRed environment.
As ESP modules are sometimes not reachable or may produce errors I normally expect in programming environments (programming functions, NodeRed,...) response values about success or error.
Examples are switch Flash-LED
action: light.turn_on
metadata: {}
data:
brightness_pct: 50
target:
entity_id: light.esp32_cam_box_led_flash
or
make snapshot
action: camera.snapshot
metadata: {}
target:
entity_id: camera.esp32_cam_box_cam
data:
filename: /config/www/cam_captures/box_content.jpg
enabled: true
But so far I started an ESPhome action and could not be sure, if it was successful. E.g. was the new snapshot done?
Is the snapshot file usable or from an older task?
Yes, you can check ESPhome module availability or file timestamps afterwards, but this is not state of the art polling....
Do I have a misunderstanding or what is ESPhome usage idea?
start e.g. camera.snapshot and this is always "success", independent if the module is reachable or has an internal error?
Can somebody enlighten me or give me a reference to understand ESPhome usage?