Aircon control for dumb ac

I have a dumb AC I can use IR to control

  • power
  • fan
  • mode
  • +/-
    But it’s a bit stupid, apart from power, the others take 1 beep to wake up, then they take effect.
    The IR is also a bit iffy, sometimes (20%) it doesn’t take and I have to do it another time.

There is also no feedback from the air con and no way to know whether it’s on.

I have a temperature sensor.

I have a sensor for the house full power usage.

When the AC is running

  • compressor on, house uses 6-7kw
  • off, uses 1-3kw (including other house appliances)

The built in AC “sensor” is totally stupid. Eg if I set to 23C, the room is 24C. If I set to 22C, the room goes to 20C. It doesn’t match.


I wanted to make automation to turn it on/off instead. But how?

I got this so far

alias: Aircon Off
description: ""
trigger:
  - platform: numeric_state
    entity_id: sensor.main_bedroom_temperature
    attribute: temperature
    below: 21.7
  - platform: numeric_state
    entity_id: sensor.main_bedroom_temperature
    attribute: temperature
    below: 22.1
condition:
  - condition: numeric_state
    entity_id: sensor.sa_consumption_power
    above: 5000
  - condition: time
    before: "00:00:00"
    after: "22:00:00"
action:
  - service: script.aircon_power
    data: {}
mode: single

I have 2 temp settings, because if the compressor is off when the temp sensor updates, the power wouldn’t reach 5kw. Without this, the ac may be OFF and this turns it on.

Still, sometimes it doesn’t turn off and I freeze and wake up.

  1. I want to since the trigger to the change in temperature thought they got, and then put the temperature in the condition instead. I can’t find a way to do that, everything needs me to put in a number?
  2. I want to do sth to turn ON when hotter than say 23C. I don’t know how to do this w/o being stuck in a state where I can’t stop the automation. (I’d done that b4 in the tuya app)