jaroschek / home-assistant-myuplink

Custom Home Assistant integration for devices and sensors in myUplink account.
44 stars 10 forks source link

No Controls #83

Open AlexZ1402 opened 10 months ago

AlexZ1402 commented 10 months ago

Hello, I have a problem that only 2 adjustable values appear for me premium account is available I can read values via Swagger

how can I solve the problem? anyone an idea?

Greetings Alex Screenshot 2024-02-01 000639

jaroschek commented 10 months ago

Hello, if you can read the values via swagger, then you should be able to see which parameter points are provides as writable in /v2/devices/{deviceId}/points. Only these parameters are translated into adjustable entities:

AlexZ1402 commented 10 months ago

here as an example set the temperature to 23°C and the temperature is also set in the nibe heat pump without any problems

Curl

curl -X 'PATCH' \ 'https://api.myuplink.com/v2/devices/xxxxxxxxxxxxxxxxxx/points' \ -H 'accept: text/plain' \ -H 'Authorization: Bearer xxxxxxxxxxxxxxxxx -d '{ "47398": "23" }'

Server response Code Details 200 Response body Download { "status": 200, "payload": { "47398": "modified" } }

AlexZ1402 commented 9 months ago

I think Nibe has a problem with the API, I have just connected to Google Home and the control is exactly the same, only these 2 can I control like in the Home Assistant and Alexa only has these 2 control options

willew commented 8 months ago

I think Nibe has a problem with the API

Agree, when I requested the device points using myUpLilnk Swagger (https://api.myuplink.com/swagger/index.html), the writeable device points are the same as in the HASS UI. For example the fan mode is read-only. I have Nibe F370.

But in myUplink Web UI, I can control the fan speed. When checking the network requests in the developer view, I can see that the fan speed is not requested with the documented API

Invoke-WebRequest -UseBasicParsing -Uri "https://internalapi.myuplink.com/v2/devices/emmy-r-191911-20240319-06605623192008-d8-47-8f-53-a0-30/points/47260" `
-Method "PUT" `

-ContentType "application/json" `
-Body "{`"value`":`"2`",`"unit`":`"`"}"

I could find any support service for the API, anyone seen?

elden1337 commented 1 month ago

Control is a service call. Only for boost true false. Should work with turning on the switch manually also. Mine is called:

switch.[redacted]_increased_ventilation

image

arossmann commented 4 weeks ago

Control is a service call. Only for boost true false. Should work with turning on the switch manually also. Mine is called:

switch.[redacted]_increased_ventilation

image

That was helping me, too