Modify attributes of an entity

Dear Home Assistant Comunity,

I am a new smart-homer and really pumped :smiley: Bought a NAS with N100 CPU and everything works like a charm (HA OS is running in a virtual mashine on my linux OS).

I integrated a lot of devices I have, including 2 Air-Conditioner. The most important is the Panasonic VZ9 I have for heating, and its connected via the Panasonic Comfort Cloud Integration. (yeah I learned in the hours of videos I saw, that cloud is not a elegant solution, but I have a small child and no time for a direct adapter solution at the moment).

The Entity is also in the system, but I have the strange situation that the attributes for the mode of the AC (hvac_modes: off, cool, dry, fan_only) is incomplete. The AC is running on “heat” mode, but I cannot SET the heat mode. Cause its not part of the list of the attributes. When I go into the developer-tool menu and open the entity, I can see the attributes. I add the “Heat” attribute manually to the config and click “SET”. For some seconds also the “heat” option appears in the menu, I can chose it, but then it disapears from the list and therefore from the menu.

That is unfortune because I want to make an automation that sets the AC to different states (also heat) under certain conditions. But the heat hvac_mode is not selectable.

I will continue watch videos and tutorials, but It is sooo many hours of videos and I thought I got the solution with this configuration, but it seems as I cannot save the attribute :frowning:

The list of hvac_modes is set by the Panasonic Comfort Cloud integration. You cannot manually modify this list (as you have already discovered).

If the list is incomplete for the VZ9 model you have, I recommend you report the problem to the integration’s author.

When creating your automation use the set HVAC mode action

Hello. Setting it manually in the automation works great.

description: “”
mode: single
triggers:

  • trigger: time
    at: “11:00:00”
    conditions:
    actions:
  • device_id: d6692ee6ee7ea93c5cdc51121832e8be
    domain: climate
    entity_id: 169487094b26e85168963f4b1979a702
    type: set_hvac_mode
    hvac_mode: heat

Thank you! I directly run into the next issue that is pretty much related: I want to change also the temperature (and I think my problem will apply to any further change like fanspeed etc.). I use the Code of the HVAC automation, copy it and modify just the hvac mode. If I do it in the YAML mode in the automation-workspace, i get an error. So I directly modified it in the editor in the automation config, but there the same error appears: “Message malformed: not a valid value for dictionary value @ data[‘type’]”

I take the working automation for the hvac mode (based on what Home Assistant Creates in the YAML Code when I use the visual editor as base):

  • id: ‘1729426082891’
    alias: Temp Test
    description: ‘’
    triggers:
    • trigger: time
      at: ‘11:00:00’
      conditions:
      actions:
    • device_id: d6692ee6ee7ea93c5cdc51121832e8be
      domain: climate
      entity_id: 169487094b26e85168963f4b1979a702
      type: set_hvac_mode
      hvac_mode: heat
      mode: single

and I modify it like this:

  • id: ‘1729426082891’
    alias: Temp Test
    description: ‘’
    triggers:
    • trigger: time
      at: ‘11:00:00’
      conditions:
      actions:
    • device_id: d6692ee6ee7ea93c5cdc51121832e8be
      domain: climate
      entity_id: 169487094b26e85168963f4b1979a702
      type: set_temperature
      temperature: 21
      mode: single

The automation “Temp Test” (automation.temp_test) is not active because its actions could not be set up.

Error:extra keys not allowed @ data['temperature']. Got None not a valid value for dictionary value @ data['type']. Got None required key not provided @ data['hvac_mode']. Got None

What makes this so strange for me is: HOW does Home Assistant knows that it was “hvac_mode”? I mean I changed the code and evereything hvac related is deleted and interchanged with the temperature.

Where is my error? I mean I CAN change the temp with the action mode. Just dont know how to translate action-mode code into automation code. I tried to exchange the part in the YAML COde of the automation fron the “actions” part on with my code that works in actions, but that doesnt work at all :smiley:

action: climate.set_temperature
target:
entity_id: climate.llwp_wohnzimmer
data:
temperature: 23

Would you please correct your post to properly quote your yaml.

Three back ticks ``` on their own line before and after your code.

Also your action should look something like this

action: climate.set_hvac_mode
metadata: {}
data:
  hvac_mode: heat
target:
  entity_id: climate.kitchen