I have all entities within HA and I shall just try to set some of those from outside (using rest API I think). I saw some SPA posts and others but somehow I lack the overall picture how this should be done I think.
climate.rask_spa_heater
climate.room_temp_setpoint
climate.warm_water_stop_temp
I have tried for a while but seems like I have not any got the idea of how this should be done. I thought I could just address the entity directly like this:
from requests import post
import json
url = "http://192.168.86.15:8123/api/states/climate.room_temp_setpoint"
token = "token"
mydata = '{"state":"on","attributes":{"hvac_modes":[""],"min_temp":13,"max_temp":29,"target_temp_step":0.1,"current_temperature":16,"temperature":16,"friendly_name":"h60_Room temp setpoint","supported_features":1},"last_changed":"2022-10-12T01:54:02.056103+00:00","last_updated":"2022-10-12T12:42:19.349838+00:00","context":{"id":"01GF63F6AN6WWSMJMESM7S34HN","parent_id":null,"user_id":null}}'
headers = {
"Authorization": "Bearer " + token,
"content-type": "application/json",
}
response = post(url, headers=headers,data =mydata)
But nothing happens.
What have I missed, sorry!
Patrik