Hi,
I want to configure my Energymeter(esphome) from Lovelace UI with an input_number helper.
I added this service call to my esphome yaml und testet the service call. It is working fine
# Set pulse counter total from home assistant using this service call:
api:
services:
- service: set_pulse_total
variables:
new_pulse_total: float
then:
- pulse_counter.set_total_pulses:
id: pulse_counter_id
value: !lambda 'return new_pulse_total;'
I am now trying to activate this call from a Button in the UI and getting the value from the input helper.
I dont know why, but somehow this is not working in combination with the tap_action.
Instead it is working with a script. This script can be called by a tap_action.
Found the solution here: