简体   繁体   English

OpenHAB缺少绑定

[英]OpenHAB Missing Binding

I installed mosquitto on my Raspberry Pi. 我在Raspberry Pi上安装了mosquitto。
I installed the MQTT Binding, MQTT Binding (1.x) using PaperUI. 我使用PaperUI安装了MQTT绑定,MQTT绑定(1.x)。
I created an item: 我创建了一个项目:
Number mqtt_kitchen_gas "Gas Level [%.1f]" {mqtt="<[mosquitto:Home/Floor1/Kitchen/Gas_Sensor:state:default]"} 编号mqtt_kitchen_gas“气体浓度[%.1f]” {mqtt =“ <[mosquitto:Home / Floor1 / Kitchen / Gas_Sensor:state:default]”}
I opened a terminal window and sent: mosquitto_pub -u openhabian --pw xxxx -t "Home/Floor1/Kitchen/Gas_Sensor" -m 10 我打开了一个终端窗口并发送:mosquitto_pub -u openhabian --pw xxxx -t“家庭/地板1 /厨房/气体传感器” -m 10

The value "10" appeared in the Gas Level field. 值“ 10”出现在“气体水平”字段中。
I could change "10" to any number and that would appear in the field. 我可以将“ 10”更改为任何数字,该数字将出现在该字段中。
All was good with the world. 世界一切都很好。

Then I rebooted and looked for the binding MQTT. 然后,我重新启动并查找了绑定MQTT。 It is not listed under Configuration, Bindings. 它未在“配置”,“绑定”下列出。 (GPIO, another binding I installed is listed.) Also, if I search the Add-ons for MQTT it shows MQTT Binding (1.x) is installed (can be uninstalled) and I can still change the Gas Level field using the above mosquitto_pub. (GPIO,列出了我安装的另一个绑定。)此外,如果我在附件中搜索MQTT,它会显示MQTT绑定(1.x)已安装(可以卸载),并且我仍然可以使用上面的命令更改Gas Level字段mosquitto_pub。

Maybe I shouldn't worry about it since it works but maybe I have something wrong with my installation and it will come back to bite me. 也许我不担心它,因为它可以工作,但是也许我的安装有问题,它会再次咬住我。
Any opinions? 有什么意见吗?

I am not completely sure (about 75% :D), but i think that the MQTT 1.x Binding simply doesn't provide any configuration that could be done in paper ui. 我不确定(大约75%:D),但是我认为MQTT 1.x绑定根本没有提供任何可以在纸质ui中完成的配置。 That could be the reason why it isn't displayed in the config section. 这可能就是为什么它不显示在配置部分的原因。

Since it appears in the addons section and works, everything should be fine. 由于它出现在插件部分中并且可以正常工作,因此一切都很好。 I am using this binding too and it works properly for ages. 我也在使用此绑定,并且它可以正常工作了很长时间。 Of course i checked my configuration area in paper ui and it isn't shown there for me too. 当然,我在纸质用户界面中检查了我的配置区域,该区域也没有为我显示。

Anyways its always fine to check the logs regularly for problems. 无论如何,定期检查日志总是有问题的。 If there are none, installation is fine. 如果没有,则安装正常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM