M4RCCR4FT
M4RCCR4FT
``` headers = {"Authorization": f"Bearer {bearertoken}", "content-type": "application/json"} url = f"http://{ip}:{port}/api/states/{tempsensor}" data = {"state": dhttemp, "attributes": {"unit_of_measurement": "C", "icon": "mdi:thermometer"}} response = post(url, headers=headers, json=data) url = f"http://{ip}:{port}/api/states/{vochtsensor}" data =...
> I think that one of the attributes you have to send is the state class as well, can you maybe give that a shot to add as well? Thank...
Thank you, it's indeed working with that change! I agree to close this ticket.
(maybe the API documentation should be updated...)