Non stable sensor get data (via mqtt local HA) and rest via .conf

Hello, and nice new year.

On this Holliday I was programming 2 ESP’s to collect several data:

  1. data from my heated floor, with 6 sensor DS18b20 (rest api)
  2. data from my heater, quantity of diesel using a sr-04. (mqtt)

the first one have a webserver and give json format from IP/json.

# Aquecimento IVAR
  - resource: "http://myip/json"
    sensor:
      - name: "ivar_z0"
        value_template: "{{ value_json.z0 | float}}"
        unit_of_measurement: "ºC"
      - name: "ivar_z1"
        value_template: "{{ value_json.z1 | float}}"
        unit_of_measurement: "ºC"       
      - name: "ivar_z2"
        value_template: "{{ value_json.z2 | float}}"
        unit_of_measurement: "ºC"       
      - name: "ivar_z3"
        value_template: "{{ value_json.z3 | float}}"
        unit_of_measurement: "ºC"       
      - name: "ivar_z4"
        value_template: "{{ value_json.z4 | float}}"
        unit_of_measurement: "ºC"       
      - name: "ivar_z5"
        value_template: "{{ value_json.z5 | float}}"
        unit_of_measurement: "ºC"       
      - name: "ivar_vBat"
        value_template: "{{ value_json.vBat | float}}"
        unit_of_measurement: "V"

What I don’t understand here, is the vBat, is the battery voltage is always reading well and acquired by HA, the temperatures is not, they are all on the same time, here is the mqtt payload:

{"z0":29.375,"z1":27.9375,"z2":27.0625,"z3":24.5625,"z4":28.0625,"z5":28.5625,"vBat":3.642794,"sen_mm":22,"sen_cm":22,"dep_litros":22}

My question is, why battery voltage (vBat is always updated and the rest .z0-.z5 are not, just on reboot ?

the 2nd one is via mqtt, so I have installed pubs client and it publish direct on mosquito installed on HA, funny has similar behaviour.

I publish all next to each other on loop:

  client.publish("Caldeira/litros", String(liter).c_str());
  homeass.publish("Caldeira/Leitura Sensor", String(sncm).c_str());
  homeass.publish("Caldeira/Leitura Sensor mm", String(snmm).c_str());
  homeass.publish("Caldeira/Litros", String(liter).c_str());
  homeass.publish("Caldeira/IP", WiFi.localIP().toString().c_str());

via mqtt explorer, all values are updated every 30 seconds, on HA sensor only the middle one (Caldeira/Leitura Sensor mm, sensor distant is updated has sensor, and the rest not.

I wondering what I’m doing wrong here?

my version of HA is: and its running on a VM inside a promos mini pc.

Core 2024.12.5
Supervisor 2024.12.0
Operating System 14.1
Frontend 20241127.8

Thank you everyone.