Hm, right now i try to migrate my 2.5.12 installation from MQTT1 to MQTT2. More or less the work to do is clear. but i have several issues.
1.) I configured three bridges…but only one is shown in the logs. Why?
but all three are shown ONLINE in paperUI.
2.) I’m lost regarding the structure thing-channel-type
- sometimes Channel: is part of the structure, sometimes not,
- sometimes its Thing topic XXX, but sometimes its mqtt:topic:xxx
in the end right now bridge cloudmqtt and venusgx seem to work, but whatever i do the Tradfri switch does not work as required…
at the moment with all the different styles i tried, the following error is shown - reason seems to be the Thing…structure.
2021-04-22 15:55:51.265 [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>
Bridge mqtt:broker:mosquitto [ host="192.168.1.xxx",port=xxxx,secure=false,clientID="openhab" ] {
Thing mqtt:topic:z2m {
Channels:
Type string : TradfriSwitch02 "TradfriSwitch#02 [%s]" [ stateTopic="/z2m/Tradfri_Switch02/action" ]
}
}
Bridge mqtt:broker:cloudmqtt [ host="farmer.cloudmqtt.com",port=asdf,secure=true,username="xxxxx",password="xxxxxx",clientID="openhab0815" ] {
Thing topic ev {
Channels:
Type number : EVchargePower "Charging Power [%.1f W]" [ stateTopic="/MyMiEV/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Power" ]
Type number : EVchargeVolts "Voltage [%.1f V]" [ stateTopic="/MyMiEV/SENSOR", transformationPattern="JSONPATH:$.ENERGY.Voltage" ]
}
}
Bridge mqtt:broker:mivenusgx [ host="192.168.1.98",port=34543,secure=false,clientID="openhab" ] {
Thing topic victron {
Channels:
Type number : PowerTotal "Power total [%.1f W]" [ stateTopic="N/0c1c57111e38/grid/30/Ac/Power", transformationPattern="JSONPATH:$.value" ]
Type number : VeBatSoc "LiFePo4 SoC [%d %%]" [ stateTopic="N/0c1c57111e38/system/0/Dc/Battery/Soc", transformationPattern="JSONPATH:$.value" ]
Type number : VeBatSocLimit "LiFePo4 SoC Limit [%d %%]" [ stateTopic="N/0c1c57111e38/settings/0/Settings/CGwacs/BatteryLife/SocLimit", transformationPattern="JSONPATH:$.value" ]
Type number : VeBatState "LiFePo4 State [%d]" [ stateTopic="N/0c1c57111e38/settings/0/Settings/CGwacs/BatteryLife/State", transformationPattern="JSONPATH:$.value" ]
}
}