Mit https://shelly-55-eu.shelly.cloud/device/status/ kann ich den Status ansehen zb state:open
Code
https://shelly-55-eu.shelly.cloud/device/status mit id und authkey
{
"isok": true,
"data": {
"online": true,
"device_status": {
"serial": 1685275020.05,
"v_eve:1": {
"ev": "",
"ttl": -1,
"id": 1
},
"input:1": {
"id": 1,
"state": null
},
"wifi": {
"sta_ip": "192.168.1.71",
"status": "got ip",
"ssid": "HerrschingRouter",
"rssi": -23
},
"v_eve:0": {
"ev": "",
"ttl": -1,
"id": 0
},
"cover:0": {
"id": 0,
"aenergy": {
"by_minute": [
0,
0,
0
],
"minute_ts": 1685275019,
"total": 15.746
},
"source": "limit_switch",
"state": "open",
"apower": 0,
"voltage": 236.9,
"current": 0,
"pf": 0,
"temperature": {
"tC": 51.3,
"tF": 124.4
},
"pos_control": true,
"current_pos": 100
},
"sys": {
"cfg_rev": 39,
"mac": "B8D61A897FFC",
"restart_required": false,
"time": "04:39",
"unixtime": 1685241551,
"uptime": 146105,
"ram_size": 233060,
"ram_free": 152188,
"fs_size": 458752,
"fs_free": 98304,
"kvs_rev": 0,
"schedule_rev": 0,
"webhook_rev": 0,
"available_updates": {
"beta": {
"version": "1.0.0-beta1"
}
}
},
"mqtt": {
"connected": false
},
"ble": [],
"ws": {
"connected": false
},
"cloud": {
"connected": true
},
"id": "b8d61a897ffc",
"input:0": {
"id": 0,
"state": null
},
"_updated": "2023-05-28 11:57:05",
"code": "SNSW-102P16EU"
}
}
}
Alles anzeigen
auf https://shelly-55-eu.shelly.cloud/device/relay/roller/control mit direction: open kommt
this device is not in roller mode.... Der sheyy ist allerdings in cover mode. Roller-Mode war glaube ich in Gen1 richtig.
Der gleiche Control mit cover/controll statt roller/controll wird als methode nicht erkannt.
Code
https://shelly-55-eu.shelly.cloud/device/relay/roller/control mit id, authkey und direction: open
{
"isok": false,
"errors": {
"wrong_mode": "This device is not in roller mode!"
}
}
Weiß jemand den richtigen Parameter für die cloud??
In https://shelly-api-docs.shelly.cloud/cloud-control-api/communication wird es so definiert..