ESPhomelib, Native API, publish sensor value back

Yes these sensors are one-way only - and that won’t change because Home Assistant doesn’t support anything else.

You were quite close though. You can use the homeassistant.service action:

on_click:
# ...
- homeassistant.service:
    service: input_number.set_value
    data_template:
      entity_id: input_number.temp
      value: "{{ set_point }}"
    variables:
      set_point: 'return id(set_point).state - 1;'
2 Likes