noxx
(Ralf B.)
December 28, 2017, 12:15pm
1
Hello
ive installed 1.4 today. i ve experience with FHEM and ioBroker, but new
in OH.
i want try it, but have problem to add my Sonoff with Tasmota.
i think mqtt is necessary, like in fhem. mqtt is installed (addins /binding), but
i find no settings for mqtt. configuration/bindings is empty.
the 2nd: how can i add a rflink device?
regard
rlkoshak
(Rich Koshak)
December 28, 2017, 5:25pm
2
https://docs.openhab.org/addons/bindings/mqtt1/readme.html
After countless threads regarding initial configuration issues, here is a short guide on how to get started with MQTT, the MQTT binding and openHAB.
This thread is a wiki article and can be improved by everyone. Please do!
MQTT is a machine-to-machine (M2M)/“Internet of Things” connectivity protocol.
It was designed as an extremely lightweight publish/subscribe messaging transport.
A few resources first:
Read all you ever need to know about MQTT in the MQTT Essentials
The openHAB MQT…
ITEAD Smart Home Products
https://www.itead.cc/wiki/Sonoff_Smart_Home_Solution
[image][image][image]
These very cheap modules come with their special smartphone app but are all actually based on the famous ESP8266. It didn’t take long till the tinkerer community got a hold of that and started hacking. After opening up the cases, all you need to do is solder a few header pins and connect your FTDI breakout programmer. Alternative firmwares are ready to provide nice MQTT based Wifi SmartHome end…
Since MQTT is a 1.x version binding, you will not find anything to configure or edit in PaperUI. You will have to edit text file configs.
I don’t know anything about RFLink
noxx
(Ralf B.)
December 28, 2017, 7:16pm
3
thx, i will read and try this.
nice day
noxx
(Ralf B.)
December 28, 2017, 7:18pm
4
RFLINK:
http://www.rflink.nl/blog2/
somethink like rfxcom, but better.
noxx
(Ralf B.)
December 29, 2017, 10:51am
5
Hello, my Sonoff will not work
ssh-console:
mosquitto_sub -h localhost -t "+/huehnerstall/#" -v
tasmota/huehnerstall/tele/LWT Online
tasmota/huehnerstall/stat/RESULT {"POWER1":"ON"}
tasmota/huehnerstall/stat/POWER1 ON
tasmota/huehnerstall/stat/RESULT {"POWER1":"OFF"}
tasmota/huehnerstall/stat/POWER1 OFF
tasmota/huehnerstall/stat/RESULT {"POWER2":"ON"}
tasmota/huehnerstall/stat/POWER2 ON
tasmota/huehnerstall/stat/RESULT {"POWER2":"OFF"}
tasmota/huehnerstall/stat/POWER2 OFF
tasmota/huehnerstall/stat/RESULT {"POWER3":"ON"}
tasmota/huehnerstall/stat/POWER3 ON
tasmota/huehnerstall/stat/RESULT {"POWER3":"OFF"}
tasmota/huehnerstall/stat/POWER3 OFF
tasmota/huehnerstall/stat/RESULT {"POWER4":"ON"}
tasmota/huehnerstall/stat/POWER4 ON
tasmota/huehnerstall/stat/RESULT {"POWER4":"OFF"}
tasmota/huehnerstall/stat/POWER4 OFF
*.items:
Switch Sonoff_CH1 "Innenlicht" <light> (LR,gLight)
{ mqtt=">[broker:tasmota/huehnerstall/stat/POWER1:command:*:default],
<[broker:tasmota/huehnerstall/stat/POWER1:state:default]" }
OH2 Log
2017-12-29 11:45:48.699 [INFO ] [t.mqtt.internal.MqttBrokerConnection] - Starting MQTT broker connection 'broker'
noxx
(Ralf B.)
December 29, 2017, 12:37pm
6
need really help…
i read, read and read but found no solution.
[13:35:40] openhabian@openHABianPi:~$ mosquitto_sub -d -v -t \#
Client mosqsub/6632-openHABian sending CONNECT
Client mosqsub/6632-openHABian received CONNACK
Client mosqsub/6632-openHABian sending SUBSCRIBE (Mid: 1, Topic: #, QoS: 0)
Client mosqsub/6632-openHABian received SUBACK
Subscribed (mid: 1): 0
Client mosqsub/6632-openHABian received PUBLISH (d0, q0, r1, m0, 'tasmota/huehnerstall/tele/LWT', ... (6 bytes))
tasmota/huehnerstall/tele/LWT Online
Client mosqsub/6632-openHABian received PUBLISH (d0, q0, r0, m0, 'tasmota/huehnerstall/stat/RESULT', ... (15 bytes))
tasmota/huehnerstall/stat/RESULT {"POWER1":"ON"}
Client mosqsub/6632-openHABian received PUBLISH (d0, q0, r0, m0, 'tasmota/huehnerstall/stat/POWER1', ... (2 bytes))
tasmota/huehnerstall/stat/POWER1 ON
Client mosqsub/6632-openHABian received PUBLISH (d0, q0, r0, m0, 'tasmota/huehnerstall/stat/RESULT', ... (16 bytes))
tasmota/huehnerstall/stat/RESULT {"POWER1":"OFF"}
Client mosqsub/6632-openHABian received PUBLISH (d0, q0, r0, m0, 'tasmota/huehnerstall/stat/POWER1', ... (3 bytes))
tasmota/huehnerstall/stat/POWER1 OFF
^C
[13:36:16] openhabian@openHABianPi:~$
noxx
(Ralf B.)
December 29, 2017, 2:01pm
7
this works via console:
[14:55:25] openhabian@openHABianPi:~$ mosquitto_pub -h localhost -t "cmnd/huehnerstall/POWER1" -m ON
[14:55:49] openhabian@openHABianPi:~$ mosquitto_pub -h localhost -t "cmnd/huehnerstall/POWER1" -m OFF
in OH i try this:
Switch Sonoff_CH1 "Living Room Light" <light> (LR,gLight)
{ mqtt=">[broker:cmnd/huehnerstall/POWER1:command:*:default],
<[broker:stat/huehnerstall/POWER1:state:default]" }
this doesnt works