I have this sensor value in a picture element that shows the current pump speed percentage. I like to be able to change the pump speed by clicking on the sensor value. Ideally a popup should appear showing a number helper with a slider or input field to set the new percentage.
The input number helper is there and attached to an automation to actually change the pump speed (modbus based in this case). Adding the number entity in a entities card and moving the slider works fine and correclty calls the automation to change the pump speed.
The automation looks as follows:
alias: WP Set CV pump speed
description: ""
trigger:
- platform: state
entity_id:
- input_number.wp_cv_pump_speed
action:
- service: modbus.write_register
data:
address: 221
value: "{{ states.input_number.wp_cv_pump_speed.state }}"
hub: NIBE S1155
slave: 1
mode: single
But I can’t get the tab_action to show a popop. I tried this in picture elements card:
- type: state-label
entity: sensor.heating_pump_speed
tap_action:
action: call-service
service: input_number.select_value
service_data:
entity_id: input_number.wp_cv_pump_speed
value: '{{ states.input_number.wp_cv_pump_speed.state }}'
But it just changes the value to what input_number already is…
What can I do get a popup with the input_number helper and be able to change the number there so that the automation starts running?
Thanks