Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 106612

ESPHome: button : template : how to pass variables?

$
0
0

I’ve implemented Atlas Scientific EZO ORP and pH sensor boards and its all mostly figured out. Both boards allow calibration and I’d like to have on Home Assistant (HA) dashboard a button to push (with calibration standard) so when I emerse probe into calibration standard just push button and set. Right now I have a button but had to hard code it for a particular standard value. I’d like to pass a value but it looks like ESPHome button/Template doesn’t support passed variables. Is that true or is there a way around it? Thanks in advance.

button:

  • platform: template
    name: “Orp Calibration”
    on_press:
    • logger.log: “Button Pressed”
    • lambda: id(orp_ezo).send_custom(“Cal,225”);

orp cal button press

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 106612

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>