Java Runtime Environment: openjdk version “1.8.0_222”
openHAB version: 2
Issue of the topic: Looking for a step by step guide to add a Sonoff Bridge to Open HAB, connect modules to the bridge and control them using Mosquitto
Please post configurations (if applicable):
Items configuration related to the issue - have none
Sitemap configuration related to the issue - have none
Rules code related to the issue - have none
Services configuration related to the issue - have none
If logs where generated please post these here using code fences: - NA
I’m after an idiot’s guide to setting up a Sonoff bridge with whatever devices on OpenHAB 2 - I currently have a PIR and a mag switch.
I have flashed the bridge with the Tasmota firmware and it’s connecting to Mosquitto but it does not seem to advertise the client hardware and I’m not sure how to go about getting it to.
I can alter settings in the bridge’s webpage - if I set it to bridge the WiFi LED is off and the 433 LED flashes when there is an event with the PIR of mag switch but nothing shows up in the Mosquitto log or Open HAB log.
HI, i have sonoff RF bridge with last Tasmota running and I use it only for 1 way communication at the moment (have PIR sensors and doors/windows contacts).
Sonoff bridge is sending data in topic tele/yourBridgeTopicName/RESULT with following ourput:
As PIR is sending only info when its triggered, item associated to this channel is set to ON by PIR but Off is set by rules with timer.
my rule is copy of this design pattern Design Pattern: Motion Sensor Timer
Thanks for the explanation. I will give it a try. Another question - the Sonoff-Tasmota firmware web interface lists various settings for GPIO, do you know where I may find an explanation of these?
My Raspberry Pi stopped working so I loaded Ubuntu on an Intel platform, loaded OH 2.5 and decided to have another go.
I am able to set up MQTT using the embedded Moquette broker but I’m having no luck obtaining data from the bridge.
I followed your instructions, created the bridge thing and added a text (string) channel, but am unclear how JSONPATH is integrated. Do you have to manually set the rules somewhere?
Okay, I figured it out - I tried various commands at the bridge WebUI until I found one that gave the desired result and massaged the syntax to fit. The JSONPATH was an additional hour of trying things but eventually sorted that out with the help of the openhab2 logs.
So now left with one more question, I have a Sonoff PIR and a mag switch, how do I pair these with the bridge?
I’ve setup a PIR motion sensor using your instruction and although I get the mqtt value and “Contact” status changes from “-” to “Open”. I’ve noticed that the logs give me the following errors:
[ab.binding.mqtt.generic.ChannelState] - Command ‘3BDE21’ not supported by type ‘OpenCloseValue’: