jeatheak / Mitsubishi-WF-RAC-Integration

WF-RAC homeassistant integration
MIT License
101 stars 19 forks source link

climate into scene ->too many options copied into scenes.yaml #43

Closed GittyBaer closed 1 year ago

GittyBaer commented 1 year ago

I think there is something wrong when adding an air conditioning unit into a scene with this integration? It copies then all possible(!) options/states into the scene and not only the parameters the scene has to set.

Here is an example: If I add one of my climate devices to a scene it looks like:

- id: '1675593892961'
  name: Test Scene
  entities:
    climate.klima_kueche:
      hvac_modes:
      - 'off'
      - auto
      - cool
      - dry
      - heat
      - fan_only
      min_temp: 16
      max_temp: 30
      fan_modes:
      - auto
      - 1 Lowest
      - 2 Low
      - 3 High
      - 4 Highest
      swing_modes:
      - Up/Down Auto
      - Highest
      - Middle
      - Normal
      - Lowest
      - 3D Auto
      current_temperature: 22.7
      temperature: 19
      fan_mode: 3 High
      swing_mode: Middle
      friendly_name: Klima-Kueche
      supported_features: 41
      state: heat

But I think this would be enough and what I would expect:

- id: '1675593892961'
  name: Test Scene
  entities:
    climate.klima_kueche:
      temperature: 19
      fan_mode: 3 High
      swing_mode: Middle
      friendly_name: Klima-Kueche  #<- here i'm not sure if it is necessary?
      state: heat

If I shorten my scenes.yaml to this it seems, that this is still working.

(Btw: Thank you so much for your great work and this integration!! 👍 :-) )

jeatheak commented 1 year ago

Hi, as far as I know this is how the scenes work in homeassistant.

If you set them trough the UI it will add the device in the current state (with all the options)

If you want to only set certain options you can (i think) remove all the options from scene.yaml you don't want to set.

I did have the same behavior when I added a light so I think I cannot do anything about this

GittyBaer commented 1 year ago

Hi, ok. I was not sure if this is HA default behavior. I tried with other devices and see only the changeable state. But most of my other devices are sensors (not usable in scenes) and binary switches. I thought it makes no sense to list all possible options/values in the scenes.yaml, because we get this information from the device it self. Only the target state is in interest, I think If it is default behavior may be it is an issue worth in HA itself ... We can close this here, thank you.