ScratMan / HASmartThermostat

Smart Thermostat with PID controller for HomeAssistant
338 stars 49 forks source link

heater: Referenced entities are missing or not currently available #225

Closed chungalunga closed 2 weeks ago

chungalunga commented 2 weeks ago

Describe the bug Whatever I input in the "heater" section is reported as "missing or not currently available", as a result the thermostat is always in "idle" mode. Temperature sensor is picked up fine and works as expected.

To Reproduce Enter any entity in the "heater" section.

Expected behavior It should work?:)

Desktop (please complete the following information):

Additional context I tried with input_boolean as well as a switch with the same result. I can access these entites without problems via automations / script.

ScratMan commented 2 weeks ago

Hello, could you please provide Smart Thermostat integration version and configuration file ?

chungalunga commented 2 weeks ago

Hello, thanks for such a quick help!

Smart Thermostat integration version: 2024.6.1

Configuration file:

# Loads default set of integrations. Do not remove.
default_config:

# Load frontend themes from the themes folder
frontend:
  themes: !include_dir_merge_named themes

automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

climate:
  - platform: smart_thermostat
    name: Termostat living room
    unique_id: termostat_living_room
    heater: input_boolean.on_off_heater
    target_sensor: sensor.temp_senzor_temperature
    min_temp: 7
    max_temp: 28
    initial_hvac_mode: "heat"
    ac_mode: False
    target_temp: 19
    keep_alive:
      seconds: 60
    away_temp: 14
    kp: 5
    ki: 0.01
    kd: 500
    pwm: 0

I ommited http section from the config, I suppose it should be irrelevant.

Helper: helper

ScratMan commented 2 weeks ago

If your heater is an input boolean, you must specify a pwm value, pwm: 0 must be used with "analog" devices like valves or other devices requiring a float or integer value as input.

chungalunga commented 2 weeks ago

Yes, now it's working.. RTFM

Thanks again, buying you a coffee

ScratMan commented 2 weeks ago

You're welcome