I’m pretty new to HA. I’ve set it up and I keep editing the confirmation and everytime I restart to apply the changes, all the switches, sensors and even the thermostat lose their values. The most annoying is the thermostat (classic thermostat entity) because I have to turn it on selecting heat/cool and set the temperature. Is there a way to keep all these values across restarts?

Edit: I’m using HA OS on Proxmox. All the sensors and switches slowly goes back to “normal” as soon as they publish their state, apart from some entities that have values provided by HA itself and not by the devices (like the thermostat).

  • DeltaTangoLima@reddrefuge.com
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    1 year ago

    When you restart HA, keep an eye on the Summary tab for the Proxmox guest. If you’re seeing CPU or memory spikes going into the red, you might need to assign more resources to the guest. Also take a look at swap and boot disk utilization - do they seem particularly high?

    Also, over what period of time to the “go back to normal”? A few minutes, half an hour, more?

    • peregus@lemmy.worldOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      Nothing like that, the resources are more than enough, no peaks. It “goes back to normal” when all the sensors/switches have sent their status and when I manually turn the heater back on and set a new setpoint for the thermostat

      • DeltaTangoLima@reddrefuge.com
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        How network-savy are you? I’m thinking you could run tcpdump on your HA server and capture network packets while restarting HA, then inspect in Wireshark.

        Most devices don’t actually “send” their status to HA directly. It’ll (usually) be HA querying their status (the exception being devices that publish via intermediate services, like MQTT). Inspecting the network packets might reveal more about what’s going on.

        • peregus@lemmy.worldOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          All the devices (sensors and switches )sends their status via MQTT; I’ve manually configured them all via yaml. The problem is in HA itself since as soon as I reload the config, the thermostat (which is a HA entity by itself), loses the setpoint and the status (heater/cool/off).

            • peregus@lemmy.worldOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              1 year ago

              For MQTT that’s the retain flag, but for HA I don’t know what that is and I really need it!!!

              • DeltaTangoLima@reddrefuge.com
                link
                fedilink
                English
                arrow-up
                0
                ·
                1 year ago

                The retained flag simply tells the MQTT broker to keep the last message published for that topic, so it’s always available (rather than timing out and emptying the topic).

                Like I said, you should probably do a packet capture to see what’s happening when HA queries states (either from devices or MQTT - it doesn’t matter).