Real world use case: I want to use the state of this
binary_sensor:
- platform: template
name: DFPlayer State
lambda: |-
return id(dfplayerState).is_playing();
esphome sensor in the condition of an Esphome on_press event - is it possible please?
Basically I want the on_press to do something ONLY if the binary_sensor is not βonβ
make sense?!
thanks!