When i start it manually, the notification comes as expected. As far as I understand this may not work due to undefined states of the sensor? So how does one resolve this? An on_boot action to let the device do the thing? The ESP device is quite simple: just wakes up from deep sleep by an external trigger signal, connects to wifi and goes to deep sleep again after 10 seconds. No sensors, no actions.
Thanks. Tried this, but it never fires. Even if the device is on for 60s. The device is also allowed to use actions/scripts. Is there something else to consider? API timings? Can't figure out.
triggers:
- trigger: state
entity_id:
- sensor.floor_esp32.wifi
I use just the trigger of state without a from or to so when my esp comes online it triggers. I use MQTT so that may result in a different response than API.