curl -X 'GET' \ 'https://192.168.178.36/api/v2/robot/capabilities/ConsumableMonitoringCapability' \ -H 'accept: application/json'
[B]Response body[/B]
Download[
{
"__class": "ConsumableStateAttribute",
"metaData": {},
"type": "brush",
"subType": "main",
"remaining": {
"value": 18000,
"unit": "minutes"
}
},
{
"__class": "ConsumableStateAttribute",
"metaData": {},
"type": "brush",
"subType": "side_right",
"remaining": {
"value": 12000,
"unit": "minutes"
}
},
{
"__class": "ConsumableStateAttribute",
"metaData": {},
"type": "filter",
"subType": "main",
"remaining": {
"value": 9000,
"unit": "minutes"
}
},
{
"__class": "ConsumableStateAttribute",
"metaData": {},
"type": "sensor",
"subType": "all",
"remaining": {
"value": 1800,
"unit": "minutes"
}
}
]
so what is the correct Loxone ´command recognition´ at ´virtual HTTP input command´ if I want to get the value of "type": "brush", "subType": "side_right",?
Das müsste die Lösung sein:
\iConsumableStateAttribute\i\ibrush\i\iside_right\i\ivalue\i\i:\i\v
UPDATE: Wow, seems to work. Great! Thank you!
UPDATE 2
What is the correct command recognition to get the ´time stamp´ (time of last cleaning)?
[{"__class":"ValetudoDataPoint","metaData":{},"time stamp":"2024-01-02T20:39:17.301Z","type":"time","value":5},{"__cla ss":"ValetudoDataPoint","metaData":{},"timestamp": "2024-01-02T20:39:17.301Z","type":"area","value":0}]
UPDATE 3
And what is the correct command recognition to get the first character of ´idle´
And what is the correct command recognition to get the second character of ´idle´
And what is the correct command recognition to get the third character of ´idle´
{"__class":"RobotState","metaData":{"version":1 }," attributes":[{"__class":"StatusStateAttribute","metaData":{} ,"v alue":"idle","flag":"none"},
\iStatusStateAttribute\i\ivalue":"\i\1 \iStatusStateAttribute\i\ivalue":"\i\s1\1 \iStatusStateAttribute\i\ivalue":"\i\s2\1
UPDATE 4
Und hat irgend jemand schon die aktuelle URL und die aktuelle zugehörige Kennung der früheren Befehlserkennung
\iStatusStateAttribute\i\ierror_code:\i\v
Einen Kommentar schreiben: