
Gesendet von meinem MI 6 mit Tapatalk
Code: Alles auswählen
#
# Define your MQTT broker connections here for use in the MQTT Binding or MQTT
# Persistence bundles. Replace <broker> with an ID you choose.
#
# URL to the MQTT broker, e.g. tcp://localhost:1883 or ssl://localhost:8883
mosquitto.url=tcp://localhost:1883
# Optional. Client id (max 23 chars) to use when connecting to the broker.
# If not provided a random default is generated.
mosquitto.clientId=smartHome
# Optional. True or false. If set to true, allows the use of clientId values
# up to 65535 characters long. Defaults to false.
# NOTE: clientId values longer than 23 characters may not be supported by all
# MQTT servers. Check the server documentation.
#mosquitto.allowLongerClientIds=false
# Optional. User id to authenticate with the broker.
mosquitto.user=mqttuser
# Optional. Password to authenticate with the broker.
mosquitto.pwd=........
# Optional. Set the quality of service level for sending messages to this broker.
# Possible values are 0 (Deliver at most once),1 (Deliver at least once) or 2
# (Deliver exactly once). Defaults to 0.
#mosquitto.qos=<qos>
# Optional. True or false. Defines if the broker should retain the messages sent to
# it. Defaults to false.
#mosquitto.retain=<retain>
# Optional. True or false. Defines if messages are published asynchronously or
# synchronously. Defaults to true.
#mosquitto.async=<async>
# Optional. Defines the last will and testament that is sent when this client goes offline
# Format: topic:message:qos:retained <br/>
#mosquitto.lwt=<last will definition>
Code: Alles auswählen
Group gABTerrassenlicht "Terrassenlicht (Sonoff Basic)" <light> (gGarten)
Switch ABTerrassenlicht "Terrassenlicht" <light> (gABTerrassenlicht,gLights,gInitializeOff) ["Lighting"] {mqtt=">[mosquitto:sonoff/ABTerrassenlicht/cmnd/POWER:command:*:default], <[mosquitto:sonoff/ABTerrassenlicht/stat/POWER:state:default]"}
Number ABTerrassenlicht_RSSI "Terrassenlicht RSSI [%d %%]" <network> (gABTerrassenlicht,gSysRSSI) {mqtt="<[mosquitto:sonoff/ABTerrassenlicht/tele/STATE:state:JSONPATH($.Wifi.RSSI)]"}
Switch ABTerrassenlicht_Unreach "Terrassenlicht unreachable" <siren> (gABTerrassenlicht,gSysUnreach) {mqtt="<[mosquitto:sonoff/ABTerrassenlicht/tele/LWT:state:MAP(unreach.map)]"}
String ABTerrassenlicht_FW "Terrassenlicht Firmware [%s]" <sonoff_basic> (gABTerrassenlicht,gSysSonoff_Maintenance) {mqtt="<[mosquitto:stat/ABTerrassenlicht/STATUS2:state:JSONPATH($.StatusFWR.Version)"}
Code: Alles auswählen
log:set DEBUG org.openhab.binding.mqtt
Code: Alles auswählen
ssh -p 8101 openhab@localhost
Code: Alles auswählen
log:list
Code: Alles auswählen
log:set DEBUG org.openhab.binding.mqtt
Code: Alles auswählen
log:set INFO org.openhab.binding.mqtt