atxbyea / samsungrac

Home Assistant Climate Device for controlling (not only) Samsung AC
61 stars 19 forks source link

Show Auto Clean #112

Open icolombi opened 3 months ago

icolombi commented 3 months ago

Hi there,

I'm using the old generation device integration on port 2878.

My device supports auto clean, but I can't find a switch on Home Assistant to enable this feature.

How can I be able to control the auto clean feature with HA?

Thanks.

image

GSzabados commented 1 day ago

To your configuration.yaml.

switch:
  - platform: template
      auto_clean:
        friendly_name: "AC Auto Clean"
        value_template: "{{ is_state_attr('climate.YOUR_AC_NAME', 'auto_clean', 'on') }}"
        turn_on:
          service: climate.climate_ip_set_property
          data:
            entity_id: climate.YOUR_AC_NAME
            auto_clean: 'on'
        turn_off:
          service: climate.climate_ip_set_property
          data:
            entity_id: climate.YOUR_AC_NAME
            auto_clean: 'off'