#Restful binary sensor noob help pls: Sanremo YOU

1 messages · Page 1 of 1 (latest)

dusk crescent
#

Hi!
I'm trying to control my Sanremo YOU coffee machine via HA.

When I type in it's IP in a browser it shows me some UI so a googled a bit and found what I needed to switch it on/off via a rest_command.

I'd like to be able to see it's state too, though.
Could some kind soul pls give me a hint what id need to set up in what way to make that happen?

#
{
    "key": 150,
    "homeConnection": true,
    "cloudConnection": true,
    "localWeb": true,
    "signal": 3,
    "name": "YOU",
    "mUnitWater": 0,
    "mUnitPress": 0,
    "ver": 0,
    "status": [
        254,
        313,
        65535,
        65535,
        65535,
        65535,
        65535,
        65535,
        65535,
        65535,
        65535,
        65535,
        0,
        0,
        0,
        738,
        937,
        1337,
        190,
        32,
        0,
        0,
        0,
        0,
        1283,
        256,
        0,
        0,
        311,
        0
    ],
    "ssid": "WLAN12956190",
    "mem": 33560,
    "dailyCoffee": 0,
    "machine": [
        0,
        2,
        1
    ],
    "counters": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "clock": [
        5140,
        7685,
        5890
    ],
    "scheduler": [
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "settings": [
        1280,
        930,
        920,
        19,
        23,
        3,
        60,
        5,
        0,
        30,
        7,
        22,
        5,
        0,
        30,
        5,
        50,
        40,
        0,
        1,
        1,
        22863,
        21760,
        0,
        0,
        0,
        0,
        0,
        0
    ],
    "dose": [
        50,
        60,
        90,
        90
    ]
}

is what i see in my browser every second or so, with payload "key=105"

#

and the first 0 after the 65535 changes to a 1 if the machine is on

#

.
other maybe relevant things:
URL: http://192.168.0.103/ajax/post
Status: 200 OK
Quelle: Netzwerk
Adresse: 192.168.0.103:80
Initiator:
main.min.js:3592

Anfrage
POST /ajax/post HTTP/1.1
Accept: application/json, text/javascript, /; q=0.01
Content-Type: application/json; charset=utf-8
Origin: http://192.168.0.103
Cookie: winet_lang=de
Content-Length: 7
Accept-Language: de-DE,de;q=0.9
Host: 192.168.0.103
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.5 Safari/605.1.15
Referer: http://192.168.0.103/you.html
Accept-Encoding: gzip, deflate
Connection: keep-alive

Antwort
HTTP/1.1 200 OK
Content-Type: application/json
Server: NetSoftware-httpd/0.3