serych
(Jakub Šerých)
January 14, 2017, 9:21pm
1
Hi,
I have installed openHAB2 (on Debian) and on the same machine I have mosquitto, which is receiving temperatures from simple ESP8266/DS18B20 board.
Client mosqsub/4230-DebinGway received PUBLISH (d0, q0, r0, m0, 'kotelna/t1', ... (5 bytes)) 50.81
Is there some tutorial for total newbies , how to configure openHAB2 to show the temperature values from such sensor? I have found some for openHAB1, but the locations of the configuration files seems to be different and I didn’t succeded with it.
Thanks in advance for any help
Jakub
watou
(John Cocula)
January 14, 2017, 9:30pm
2
I don’t have such a tutorial, but the general rule is:
For every line in OH1’s openhab.cfg
like this:
someservice:key=value
You would have a file in OH2 services/someservice.cfg
containing the line
key=value
If installed openHABian or the Debian apt-get distribution, this is /etc/openhab2/services/someservice.cfg
.
awsnap
(Brian Leedy)
January 16, 2017, 3:21am
3
If you have the binding installed, you should have an MQTT.cfg file. Do that first.
< = incoming
mosquitto = what you called the broker in MQTT.cfg
garage/temp = your topic
Number GTemperature "Temperature [%.0f]F" <temperature> { mqtt="<[mosquitto:garage/temp:state:default]" }
.sitemap
Text item=GTemperature