I have a file, for ease of understanding its structure is similar to .shopping_list.json how can I read data from it and put it in a sensor or any other place so that I can easily access it? They do not fit into the status of the sensor (since the status is limited to 255 characters).
what i tried:
via sensor status (lacks size)
through the attributes of the sensor (I did not find a suitable example and code, it did not work out by typing or trial or error)
through the services 1 time did not work because import does not work, I wrote a script without import, f.open does not work …