I am just trying to read a smart meter. Now I want to wake up the ESP32 every 15 mins, read a couple of values, and as soon as all of them are read, I want to send the devide to sleep again.
Is there any option to ensure whether a sensor has transmitted its data to HA successfully within the YAML code? I observe the on_value action simply confirms the value was read - is there any equivalent for the communication using HA’s native API?
I see from the link above you can post a context message log. It would be triggered by a sensor automation. And would be clearly visible
Alternatively use the ESPHome Status component. In HA use a template trigger to check on the binary sensor status and whether your sensor value is received by the next disconnection
@nickrout, @JulianDH : I am sorry, but I am quite new to ESPhome and HA. So I have some issues to understand your hint. Say, I have an sml object and some sensor power of platform type SML - could you help me with a simple example?
In the end I want to send the ESP to deep sleep to save battery power, but I want to be sure a measurement was transferred before the device sleeps. So I tried this
but the switch in the logger is never turned on. As the deep sleep checking function checks for all switches to be positive, the device never goes to sleep.
Is this understandable, or should I post the full code?