ich hoffe Ihr könnt mir helfen.
Ich möchte eine Lampe schalten, was nicht ganz funktioniert.
Aber zunächst mal was ich habe.
-Openhabian auf Rasperry PI
-Mosquitto ist installiert
- MQTT Binding installiert
- MQTT Action installiert
Dateiinhalt von mqtt.cfg
Code: Alles auswählen
broker.url=tcp://localhost:1883
broker.qos=broker.retain=true
broker.async=true
broker.user=openhabian
broker.pwd=openhabian
Code: Alles auswählen
broker.async="true"
broker.pwd="openhabian"
broker.qos="broker.retain\=true"
broker.url="tcp://localhost:1883"
broker.user="openhabian"
Code: Alles auswählen
Switch WohnzimmerLampe "Lampe" { mqtt=">[broker:cmnd/sonoff-light/POWER:command:*:default], <[broker:stat/sonoff-light/POWER:state:default]", autoupdate="false"}
Code: Alles auswählen
2018-11-18 15:13:52.810 [ome.event.ItemCommandEvent] - Item 'WohnzimmerLampe' received command ON
Vielen Dank
update:
über die Console
sudo mosquitto_pub -h openhabianpi -t cmnd/sonoff-light/POWER -m 1
ebenfalls kein Erfolg