New in OpenHAB - Tasmota and RFLINK


(Ralf B.) #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


(Rich Koshak) #2

https://docs.openhab.org/addons/bindings/mqtt1/readme.html

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


(Ralf B.) #3

thx, i will read and try this.

nice day


(Ralf B.) #4

RFLINK:

http://www.rflink.nl/blog2/

somethink like rfxcom, but better.


(Ralf B.) #5

Hello, my Sonoff will not work :frowning:

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'


(Ralf B.) #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:~$

(Ralf B.) #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