Re: shelly 2 openhab Einbindung per MQTT
Verfasst: 6. Mai 2019 19:36
Hallo,
das wäre auch ganz in meinem Interesse. Eine Erklärung dazu fände ich super!
das wäre auch ganz in meinem Interesse. Eine Erklärung dazu fände ich super!
Code: Alles auswählen
Bridge mqtt:broker:3448a27a [ host="localhost", secure=false ]
{
Thing mqtt:topic:de07756d "Rolladen Flur" @ "DG" {
Channels:
Type rollershutter : Shelly2501Rollershutter "RolladenDGFlur" [ stateTopic="shellies/shellyswitch25-745118/roller/0", commandTopic="shellies/shellyswitch25-745118/roller/0/pos" , transformationPattern="MAP:shelly.map" ]
Type number: Shelly2501Temperature "Shelly2501temp" [ stateTopic="shellies/shellyswitch25-745118/temperature" ]
Type number: Shelly2501energy "Shelly2501energy" [ stateTopic="shellies/shellyswitch25-745118/relay/energy" ]
}
}
Code: Alles auswählen
[INFO ] [el.core.internal.ModelRepositoryImpl] - Validation issues found in configuration model 'mqtt.things', using it anyway:
Provide a thing type ID and a thing ID in this format:
<thingTypeId> <thingId>
Code: Alles auswählen
Bridge mqtt:broker:3448a27a [ host="localhost", secure=false ]
{
Thing topic de07756d "Rolladen Flur" @ "DG" {
Channels:
Type rollershutter : Shelly2501Rollershutter "RolladenDGFlur" [ stateTopic="shellies/shellyswitch25-745118/roller/0", commandTopic="shellies/shellyswitch25-745118/roller/0/pos", transformationPattern="MAP:shelly.map" ]
Type number : Shelly2501Temperature "Shelly2501temp" [ stateTopic="shellies/shellyswitch25-745118/temperature" ]
Type number : Shelly2501energy "Shelly2501energy" [ stateTopic="shellies/shellyswitch25-745118/relay/energy" ]
}
}
Code: Alles auswählen
Bridge mqtt:broker:3448a27a [ host="localhost", secure=false ]
Thing mqtt:topic:3448a27a:de07756d "Rolladen Flur" (mqtt:broker:3448a27a) @ "DG" {
Channels:
Type rollershutter : Shelly2501Rollershutter "RolladenDGFlur" [ stateTopic="shellies/shellyswitch25-745118/roller/0", commandTopic="shellies/shellyswitch25-745118/roller/0/pos", transformationPattern="MAP:shelly.map" ]
Type number : Shelly2501Temperature "Shelly2501temp" [ stateTopic="shellies/shellyswitch25-745118/temperature" ]
Type number : Shelly2501energy "Shelly2501energy" [ stateTopic="shellies/shellyswitch25-745118/relay/energy" ]
}
Code: Alles auswählen
Bridge mqtt:broker:3448a27a [ host="localhost", secure=false ]
{
Thing mqtt:topic:de07756d "Rolladen Flur" @ "DG" {
Channels:
Type rollershutter : Shelly2501Rollershutter "RolladenDGFlur" [ stateTopic="shellies/shellyswitch25-745118/roller/0/pos", commandTopic="shellies/shellyswitch25-745118/roller/0/command/pos" ]
Type number: Shelly2501Temperature "Shelly2501temp" [ stateTopic="shellies/shellyswitch25-745118/temperature" ]
Type number: Shelly2501energy "Shelly2501energy" [ stateTopic="shellies/shellyswitch25-745118/relay/energy" ]
}
}
Code: Alles auswählen
Rollershutter Shelly2501Rollershutter "Rolladen DG Flur" {channel="mqtt:topic:de07756d:Shelly2501Rollershutter"}
Number Shelly2501Temperature "Shelly2501 Temperatur [%.2f °C]" {channel="mqtt:topic:de07756d:Shelly2501temperature"}
Number Shellly2501Energy "Shelly2501 Energie [%.0f kWh]" {channel="mqtt:topic:de07756d:Shelly2501energy"}
Code: Alles auswählen
Default item=Shelly2501Rollershutter
Setpoint item=Shelly2501Rollershutter icon="rollershutter" minValue=0 maxValue=100 step=10
Code: Alles auswählen
Switch icon=blinds item=Shelly2501Rollershutter mappings=[0="close",100="open"]
Setpoint item=Shelly2501Rollershutter icon="rollershutter" minValue=0 maxValue=100 step=10
Selection item=Shelly2501Rollershutter mappings=["100"="100","50"="50","0"="0"]