Is there any way to share an input.number to HomeKit?
Solved it for now!
Create generic thermostat with configure.yaml
Climate:
- platform: generic_thermostat
name: “Bedroom Heating”
heater: switch.bedroom_heating_dummy
target_sensor: sensor.aqara_fp300_bedroom_temperature
target_temp: 21
min_temp: 10
max_temp: 30
ac_mode: false
precision: 0.5
Create two automations for sync with UI YAML
alias: “Bedroom Climate → Setpoint Helper”
description: “Sync HomeKit climate target to input_number.bedroom_temperature_setpoint”
trigger:
- platform: state
entity_id: climate.bedroom_heating # Adjust to your climate entity_id
attribute: temperature
mode: single
action: - service: input_number.set_value
target:
entity_id: input_number.bedroom_temperature_setpoint
data:
value: “{{ state_attr(‘climate.bedroom_heating’, ‘temperature’) | float(21) }}”
alias: “Bedroom Setpoint → Climate”
description: “Sync input_number to HomeKit climate target”
trigger:
- platform: state
entity_id: input_number.bedroom_temperature_setpoint
mode: single
action: - service: climate.set_temperature
target:
entity_id: climate.bedroom_heating
data:
temperature: “{{ states(‘input_number.bedroom_temperature_setpoint’) | float(21) }}”
Everything works and sync between HA - HK is instant