Open jnasholm opened 1 year ago
I have tested the following configuration and found no problem. Home Assistant: version 2023.4.2
input_number: #https://www.home-assistant.io/integrations/input_number/
slider_heating_manual_setpoint:
name: 'Slider heating manual setpoint'
min: 0
max: 35
step: 0.5
unit_of_measurement: '°C'
automation:
- alias: 'Set heating manual setpoint by slider'
trigger:
platform: state
entity_id: input_number.slider_heating_manual_setpoint
action:
service: ebus.ebus_write
data:
entity_id: sensor.heatpump_temperature_heating_manual_setpoint
value: "{{states('input_number.slider_heating_manual_setpoint')}}"
When the slider in home assistant is moved, the manual heating temperature in the heat pump is set to the value of the slider.
Managed to get ebus_write to work after a bit of experimenting. Seems like if a sensor fails to initialize due to misconfiguration, wrong circuit or data type for example, it is still on the list of sensors but with an entity_id "NoneType". Maybe some condition could skip such failed sensor entries in the code?
sensor for sensor in sensors if sensor.entity_id in entity_ids
I am trying to get
ebus.write
working in Home Assistant 2023.3.6. Tried both in Developer Tools and in an automation based on the example code provided in the documentation. The service call results in an error and the target sensor remains unchanged. Changing the target sensor command line with theebusctl
works as expected.Any suggestion what to try next is appreciated.
Test in Developer Tools, Services, Call Service:
Test in automation:
Same result from both tests. Error description in Home Assistant Core Logs: