Code: Alles auswählen
transformationPattern: JSONPATH:$.params.switch:0.temperature.tCModerator: seppy
Code: Alles auswählen
transformationPattern: JSONPATH:$.params.switch:0.temperature.tCDanke! Der Routinier weiss, auf was er achten muss
Danke Udo! Habe das alles gelesen und die wichtigsten Status-Nachrichten in das Thing als Channel übernommen.udo1toni hat geschrieben: 25. Jan 2022 20:23 Die API des Shelly ist vom Hersteller dokumentiert (die sind echt vorbildlich...)
Code: Alles auswählen
http://192.168.33.1/rpc/Switch.Set?id=0&on=trueCode: Alles auswählen
http://192.168.33.1/rpc/Switch.Set?id=0&on=falseCode: Alles auswählen
UID: mqtt:topic:01144906ea:shellyplus1pm-7c87ce637f30
label: Shelly Plus 1PM
thingTypeUID: mqtt:topic
configuration: {}
bridgeUID: mqtt:broker:01144906ea
location: Test
channels:
- id: test_switch
channelTypeUID: mqtt:switch
label: Schalter
description: null
configuration:
stateTopic: shellyplus1pm-7c87ce637f30/events/rpc
transformationPattern: JSONPATH:$.params.switch:0.output
off: "false"
on: "true"Code: Alles auswählen
shellyplus1pm-7c87ce637f30/rpc
{
"id": 0,
"src": "shellyplus1pm-7c87ce637f30",
"method":"Switch.Set", "params":{"id":0,"on":true}
}
{
"id": 0,
"src": "shellyplus1pm-7c87ce637f30",
"method":"Switch.Set", "params":{"id":0,"on":false}
}MQTT ist aktiviert.
Nicht nur das, das CoAP-basierende Protokoll, mit dem das Shelly-Binding arbeitet, scheint auch nicht mehr dabei zu sein.udo1toni hat geschrieben: 26. Jan 2022 22:36 Scheint, als ob die Shelly Entwickler mqtt auf dem Shelly kaputt machen, was eine Grütze...
Schalten kann ich über OH3. Der JSON-Code (Command-Topic) für EIN:
Code: Alles auswählen
{
"id": 0,
"src": "shellyplus1pm-7c87ce637f30",
"method":"Switch.Set", "params":{"id":0,"on":true}
}Code: Alles auswählen
{
"id": 0,
"src": "shellyplus1pm-7c87ce637f30",
"method":"Switch.Set", "params":{"id":0,"on":false}
}Code: Alles auswählen
%sIch leider noch nicht im vollen Umfang.