arthurkrupa / gree-hvac-mqtt-bridge

MQTT Bridge for controlling Gree smart air conditioners, e.g. with Home Assistant or OpenHAB
GNU General Public License v3.0
134 stars 63 forks source link

Using an automation, climate always comes on a 20deg auto #28

Closed dragonflyuk closed 5 years ago

dragonflyuk commented 5 years ago

I've been trying to automate the AC to pre-heat our living room in the morning, however, it always come on at 20deg Auto mode hear is my code.

`- alias: Pre-heat Living Room initial_state: 'on' trigger: platform: time at: '05:45:00' action:

Not sure if the issue is mqtt-bride, hassio, or possibly the thermostat control I have on my dashboard.

arthurkrupa commented 5 years ago

Maybe try using quotes on your YAML for the operation mode. Maybe that's why it defaults to Auto:

- alias: 'Pre-heat Living Room'
  initial_state: 'on'
  trigger:
    platform: time
      at: '05:45:00'
      action:
        - service: climate.set_temperature
          data:
            entity_id: climate.living_room_ac
            temperature: 18
            operation_mode: 'Heat'
dragonflyuk commented 5 years ago

Thanks that was part of the problem, but it didn't cure it. It did however lead me to check my syntax throughout, and 'Heat' needed to be 'heat' aswell. Thanks for the nudge in the right direction.