So, I’m new to Homeassistant and having a small problem on configuring my Nilan heatpump fan speed settings with a slider.
Here is the current config:
- id: IlmanvaihdonTeho
alias: Ilmanvaihdon teho
trigger:
platform: state
entity_id: input_number.slider1
action:
service: modbus.write_register
data_template:
hub: nilan
unit: 1
address: 4747
value: "{{ states.input_number.slider1.state|int }}"
And
input_number:
slider1:
name: Ilmanvaihdon teho
initial: 25
min: 20
max: 100
step: 1
It is working fine, but how it is possible to get the current value from modbus register and show that in the initial value? I tried to search and read but I can’t understand how that is possible.
Thanks!