Espresense sensor automations

This is what i find in developer tools, state, under
sensor.tome

distance: 5.65
friendly_name: Tome

Is this what you’re asking?

Yes, that sensor (sensor.tome) reflect the state of the nearest espresense receiver. I’m assuming your comment before

The current state is “batteria”

Is the name of a room or espresense device.

So your automation trigger from earlier should be:

platform: state
entity_id:
  - sensor.tome
id: entrata
for:
  hours: 0
  minutes: 0
  seconds: 4
to: entrata

Assuming entrata is another room/espresense device name.

As soon as i posted the developer status, i got it.
And i feel so dumb.
Now it gives no error, tomorrow I’ll try some automations!

Thank you again!

1 Like