I’m attempting use a button on the UI to record an input_number value to the database through the recorder.
I created the input_number and then configured a template sensor to read that value…but now I’m trying to only get it to read that value when I press the button.
Here’s my yaml:
- trigger:
- platform: event
event_type: call_service
service_data: <----- this doesn't seem to work per the error notification I get.
entity_id: script.test_number
sensor:
- name: Test Number
state: "{{ states.input_number.test_number.state}}"
What’s the correct method to watch the call_service for a specific script to be run?