ich habe ein Problem mit der Integration eines Shelly 2.5 in meine Openhab 2.30
Schalten und Statusmeldung der Relais funzen. Nur die Powermessung will einfach nicht:
1. Shelly schalten und Zustand melden:
Code: Alles auswählen
shelly.items
Switch shelly25_1 "shelly25 1" {mqtt=">[localbroker:shellies/shellyswitch25-688D1C/relay/0/command:command:on:on],>[localbroker:shellies/shellyswitch25-688D1C/relay/0/command:command:off:off],<[localbroker:shellies/shellyswitch25-688D1C/relay/0:state:ON:on],<[localbroker:shellies/shellyswitch25-688D1C/relay/0:state:OFF:off]"}
Switch shelly25_2 "shelly25 2" {mqtt=">[localbroker:shellies/shellyswitch25-688D1C/relay/1/command:command:on:on],>[localbroker:shellies/shellyswitch25-688D1C/relay/1/command:command:off:off],<[localbroker:shellies/shellyswitch25-688D1C/relay/1:state:ON:on],<[localbroker:shellies/shellyswitch25-688D1C/relay/1:state:OFF:off]"}
Number shelly25_1_P "shelly25 1 [%.1f W] " {mqtt="<[localbroker:shellies/shellyswitch25-688D1C/relay/0/power:state:default)]" }
Number shelly25_2_P "shelly25 2 [%.1f W] " {mqtt="<[localbroker:shellies/shellyswitch25-688D1C/relay/1/power:state:default)]" }
sitemap Einträge
Frame label="Shelly2.5" {
Switch item=shelly25_1 label="shelly25_1"
Switch item=shelly25_2 label="shelly25_2"
Text item=shelly25_1_P label="Leistung [%.1f W]"
Text item=shelly25_2_P label="Leistung [%.1f W]"
}
Auszug aus event.log
2019-09-30 17:21:12.972 [WARN ] [b.core.events.EventPublisherDelegate] - given new state is NULL, couldn't post update for 'shelly25_1_P'
2019-09-30 17:21:43.084 [WARN ] [b.core.events.EventPublisherDelegate] - given new state is NULL, couldn't post update for 'shelly25_2_P'
gerade selbst gesehen.... "Klammer zu" gehören nicht in Zeile 3 und 4 der shelly.items