pro cteni
curl -X GET \
-H "Authorization: Bearer YOUR_LONG_LIVED_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
http://<YOUR_HOME_ASSISTANT_IP>:8123/api/states/sensor.temperature_living_room
pro zapis do sensoru musis mit nejaky custom/template sensor. nepujde asi psat do sensoru od nejake HA integrace
curl -X POST \
-H "Authorization: Bearer YOUR_LONG_LIVED_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"state": "25.6", "attributes": {"unit_of_measurement": "°C", "friendly_name": "Custom Temperature Sensor"}}' \
http://<YOUR_HOME_ASSISTANT_IP>:8123/api/states/sensor.custom_sensor