Platform File not updating sensors

Hi All,

I was postponing the update of Home Assistant core for some time until i couldnt anymore due to a problem a came across when did it. I am currently running the latest (2023.10.4).

I have a File in .json inside /config/File_Sensors folder. After the aforementioned action of updating the values stored there and dynamically being changed (i checked that the file is being updating) the sensors are not changing the values unless Home Assistant is restarted. It seems like there is no “real time” reading of the file anymore.
What is going wrong? Has anyone else faced the same issue?

Some info for assistance:

allowlist_external_dirs:
   - "/config/File_Sensors"

and part of the configuration.yaml when i “read” the data"


sensor:
  - platform: file
    file_path: /config/File_Sensors/PiServer_data.json
    name: "Nord"
    value_template: '{{ value_json.Nord }}'
    
  - platform: file
    file_path: /config/File_Sensors/PiServer_data.json
    name: "NordCE"
    value_template: '{{ value_json.NordCE }}'

And in Developer panel it doesnt read the changes:

Thank you in advance because this thing broke half my smart features,
Jim

Same issue i have. anyone who has the answer??

I dont think anyone might assist, so i decided to go with using API to post my data to the sensors to Hassio.

This one is what you need:

Because i run a python script and it interacts with hassio as an example to my question i added this:

from requests import post
url = "http://localhost:8123/api/states/sensor.nord"
headers = {"Authorization": "Bearer TOKEN", "content-type": "application/json"}
data = {"state": "Home"}}

response = post(url, headers=headers, json=data)print(response.text)