litinoveweedle / SmartIR

⏻ Control Home Assistant climate, fan, media_player and light devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome, ZHA)
MIT License
85 stars 28 forks source link

Climate Entity not working as expected #40

Closed LZXCorp closed 3 months ago

LZXCorp commented 3 months ago

Home Assistant version 2024.6.1

SmartIR version v1.17.6

SmartIR configuration

climate:
  - platform: smartir
    name: <some valid name>
    unique_id: <some valid UID>
    device_code: 1133
    controller_data: <some valid remote>
    power_sensor: <some valid input_boolean>
    power_sensor_restore_state: true

Describe the bug

When I use a service to turn on the climate device,

EXPECTED: The input_boolean also turns on BUG: The input_boolean did not change state and remains in the off state.

Both turned on the physical climate device, but the input_boolean state itself did not change.

Debug log

Can't find any logs at all

Additional context

After a few months of using SmartIR, it suddenly completely stopped working, so I went ahead and found this alternative fork and decided to use it.

I have removed the smartir: from the configuration.yaml file.

litinoveweedle commented 3 months ago

I am afraid, that you are confused by what power_sensor is. It is and independent sensor, which monitors if the real life device (AC unit for example) is on of off. This could be power meter, door sensor placed on fan fins to monitor if those are open etc. So the state IS NOT SET by the integration. Integration take this sensor as an INPUT to validate if the real life device is on. It is not an OUTPUT which is being set by this integration base on the command.