OH 2.5.9-1
System: Host: rpi3ohv2 Kernel: 5.4.51-v7+ armv7l bits: 32 Console: tty 1 Distro: Raspbian GNU/Linux 10 (buster)
I happily migrated a bunch of mqtt items from v1 to v2, only to discover my items are not getting any updates.
I stopped the mosquitto service and ran mosquitto -v to see, whether openhab does connect… and it does, but this is what I get:
1603357359: Received PUBLISH from Arduino_TheHub (d0, q0, r0, m0, 'ArgyleCourt/Property/Hub/IrrigationTank/Valve', ... (3 bytes))
1603357359: New client connected from 127.0.0.1 as openhab25 (c1, k60).
1603357359: No will message specified.
1603357359: Sending CONNACK to openhab25 (0, 0)
1603357359: Received SUBSCRIBE from openhab25
1603357359: homeassistant/# (QoS 1)
1603357359: openhab25 1 homeassistant/#
1603357359: Sending SUBACK to openhab25
1603357359: Received SUBSCRIBE from openhab25
1603357359: +/+/$homie (QoS 1)
1603357359: openhab25 1 +/+/$homie
1603357359: Sending SUBACK to openhab25
1603357359: Received SUBSCRIBE from Arduino_TheHub
1603357359: ArgyleCourt/Property/BorePump/Status (QoS 0)
1603357359: Arduino_TheHub 0 ArgyleCourt/Property/BorePump/Status
… it does not connect to #, but rather homie and homeassistant… none of these topics contain anything on my system.
2020-10-22 18:24:42.874 [WARN ] [g.mqtt.handler.AbstractBrokerHandler] - Tried to unsubscribe org.openhab.binding.mqtt.homeassistant.internal.discovery.HomeAssistantDiscovery@17408ac from discovery topic +/+/$homie on broker mqtt:broker:mymosquitto but topic not registered at all. Check discovery logic!
things:
Bridge mqtt:broker:mymosquitto [ host="localhost", secure=false, port=1883, clientID="openhab25" ]
{
Thing topic zevabms "Zeva BMS" @ "Shed"
{
Channels:
Type string : mac "MAC address" [
stateTopic="ArgyleCourt/Shed/Tower/Zeva16/MAC"
]
Type string : notification "Notification" [
stateTopic = "ArgyleCourt/Shed/Tower/Zeva16/Notification"
]
Type string : voltages "Voltages" [
stateTopic = "ArgyleCourt/Shed/Tower/Zeva16/Voltages"
]
Type string : current "Current" [
stateTopic = "ArgyleCourt/Shed/Tower/Zeva16/Current"
]
Type string : status "Status" [
stateTopic = "ArgyleCourt/Shed/Tower/Zeva16/Status"
]
}
Thing topic maingate "Main Gate Controller" @ "Property"
{
Channels:
Type string : mac "MAC address" [
stateTopic = "ArgyleCourt/Property/MainGate/MAC"
]
Type number : temperature "Temperature" [
stateTopic = "ArgyleCourt/Property/MainGate/Temperature"
]
Type string : notification "Notification" [
stateTopic="ArgyleCourt/Property/MainGate/Notification"
]
Type string : doorbell "Door Bell" [
stateTopic="ArgyleCourt/Property/MainGate/DoorBell"
]
}
}
items
String ZevaUNO_MAC "MAC address [%s]" <network> (gZevaStatus) {channel="mqtt:topic:mymosquitto:zevabms:mac"}
String ZevaUNO_Message "SysMsg: [%s]" <settings> (gZevaStatus) {channel="mqtt:topic:mymosquitto:zevabms:notification", expire="12m,Zeva Controller broken"}
String ZevaCellSetRaw "Cell sets raw [%s]" (gZevaStatus) {channel="mqtt:topic:mymosquitto:zevabms:voltages"}
String ZevaCurrentRaw "Current raw [%s]" (gZevaStatus) {channel="mqtt:topic:mymosquitto:zevabms:current"}
String ZevaStatusRaw "Status raw [%s]" (gZevaStatus) {channel="mqtt:topic:mymosquitto:zevabms:status"}
Should all work… all textural config. No v1 action or binding running