Hallo zusammen,
ich bin Neuling mit HA, habe einen Akku von Solarwatt und versuche mittels eines request_command einen Wert zu setzen.
# rest_commands.yaml
test_request:
url: "http://xxx.xxx.xxx.xxx/rest/items/sunspecnext_battery_KATEK_Memmingen_GmbH_SolBrid_10_3_2_780593JG009672690003_battery_SoCRsvMin"
method: post
headers:
Authorization: "Bearer passwort"
Content-Type: "application/json"
payload: '{"state": "20 %"}'
Zurück bekomme ich:
content:
exceptionType: javax.ws.rs.NotSupportedException
message: HTTP 415 Unsupported Media Type
stacktrace:
“javax.ws.rs.NotSupportedException: HTTP 415 Unsupported Media Type”:
…
Kann mir jemand auf die Sprünge helfen was ich da falsch mache?
Danke schonmal.
tippe oder füge den Code hier ein