Amazing, great job haha it is so over the top I love it
I use âkegbotâ to track how much beer is in my beer kegs. It uses flow meters in the beer lines and an arduino to report to a webserver. There is a webhook feature that will post to a URL.
I was polling the kegbot API for changes in keg volume but worked out how to create a node server to receive the json POST and then parse that and send it to the openhab API. One of my items is my amazon Alexa in the garage near by beer taps so now I take the parsed POST from kegbot and send it to the alexa item. When I pour a beer Alexa says âenjoy your (beer name) (username)â
totally unnecessary but has a nice bling factor for unsuspecting guests
lmao
Please, please provide some pics.
As you wish
Flow meters in the beer lines:
Kegbot interface that send it off to the webserver:
Node server below:
var express = require(âexpressâ)
var bodyParser = require(âbody-parserâ)
var port = 8081
require(âutilâ).inspect.defaultOptions.depth = null;
var request = require(ârequestâ);
var app = express()
var headers = {
âContent-Typeâ: âtext/plainâ,
âAcceptâ: âapplication/jsonâ
};// parse application/json
app.use(express.json({extended: true}))app.use(function (req, res, next) {
console.log(req.body) // populated!
var beer=req.body.data.drink.keg.beverage.name
var user=req.body.data.user_id
console.log(beer)
var options = {
url: âhttp://192.168.1.21:8079/rest/items/Garage_Speakâ,
method: âPOSTâ,
headers: headers,
body: "enjoy " + beer + " " + user
};
next(request(options, callback))
})console.log(âWeb server listening on port: %sâ, port);
//Start the server and make it listen for connections on port
app.listen(port);function callback(error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
}
}
edit: I have been off the tools as a sysadmin for some time so please excuse my dirty code, it was a first for me!
Nice, it would be even better if you put in a micro hydro generator in the beer lines - that way you feel good about drinking beer, coz youâre generating electricity (albeit tiny) as you drink
Hi
Iâm working on a range of addressable downlights, which will be controllable from openHAB2, via an Art-NET / sACN adapter, using the DMX binding.
Theyâll be in a Par16 (what people think of as GU10, but thatâs actually the name of the connector, like MR15 / GU5.3 etc) housing or an all-in-one type.
This video shows the lamps being controlled with Jinx! when I get back from my holiday, Iâll create a thread with the .item & .things files.
Have you been able to integrate the Ikea blinds with openHAB - if yes, how ? Do I need the Tradfri gateway or do they work with a Hue bridge, too?
Hey @mstormi
Yes I did get it to work with OpenHab2. But it was not that easy. I found go code that could do some basic Ikea stuff and added a really messy. And made a http endpoint to control the blinds. But there are still some bugs I have to fix. I can share it when I get it to work right
Iâm using the Ikea gateway for now. I donât have a HUE hub. But I tried to see if I could use my Xiaomi gateway. But no luck so far, maybe time will tell
Just a few side nodes.
- On a fully charge battery, the blind can move up and down 784 times. and there was still 10% left in the battery (I made a small script to test it)
- If you set the max length to a wrong position. I was not able to reset it without resetting the blind and after that it was hit or miss if you have to pair it again. And at one point I had to remove all devices and pair them again.
- The Ikea app is really as in really really bad. I was able to rename 2 out of 4 blinds. The gateway, repeater and buttons I was not able to rename. The change did not get saved. You canât see the battery level in the app.
- One of my blinds started to reset it self doing the night and moved to 50% out of total length 100%. And I had to press the buttons on the blind just to get it moving again. And after I got it to 0% (top) I could set the max length again. But after a few days it stopped. And now it works as it should. There was no firmware update. It just fixed it self�
Hope this helps
Hi if anyone wants zigbee, that is working and for cheap
see mat video ⌠with an old RPI and this 4$ CC adpter
i was able to install zigbee2MQTT,
ok so since i am in OH, i wanted to get grafna working
finnaly i am there !!!
here is one useless dashboard but you got to love it!!!
this is all my zigbee sensors (for now , i am going to buy allot )
i switched my home to zigbee from RF, i starting to like zigbee
Attached my 20 year old garage door motor to OpenHAB this week. Using a SR-201 Ethernet Relay connected with a PoE Converter.
It can be controlled by OpenHAB WebUI or even a KNX Switch
In OH 3 the nature of Rules and what is supported, how, and what is the default may be different. Beyond that I canât say. If you are just getting started with OH, I would recommend starting with Python or JavaScript over Rules DSL. But if you are already using Rules DSL, Iâd wait and see what OH 3 brings.
My little Garden Watering Project
Based on an
ESP32
Relais Board (old one, originaly from a spark core)
4 Hunter valves
BME280 for temp, hum, pressure
and a waterproof (way to big) housing
Communication: ESP32 <â> MQTT <â> OpenHAB
The boxes that we find and steal for these projects only come in two sizes. Too big and too small
wow this SR-201 looks real nice, can you tell us more about it?
MQTT?
POE? what kind?
No, it has no fancy MQTT API.
You can talk to it over UDP or TCP. Docs are here: GitHub - cryxli/sr201: Protocol example for SR-201 Series network relay
It has no PoE, but I used a PoE Adapter, that does the trick.
It was cheap (aprox. 10âŹ) at aliexpress.
For my case it works fine and has been available without an error since 3 months now.
wired is always better ⌠i am looking for somthing like that
but i dont want to go off MQTT, i find one protocol is hard enough to âŚ
it will be really cool to have POE realy, at least for low volatges, that can do MQTT OOB
Not strictly an openHAB2 project, but the whole building has an openHAB2 setup, so it will probably get incorporated at some point.
These are ESP32 based M5StickC units, that Iâve programmed to be controlled with MQTT and Node-RED.
(Built in battery, RTC, 6 axis accelerometer, IR blaster, Grove port & io ports)
Weâre clipping them onto lecterns, desks, comfort monitors, cameras and even using the wrist straps for people who are mobile during events.
Over MQTT you can
- Set the LED (On / Off / Flashing)
- Set the text colour
- Set the background colour
- Set the text (which shows in a different size depending on length)
Depending on a unique topic per unit, or from a global topic.
And the two buttons update a topic per unit.
If anyone can find a use for it, Iâm happy to share the Arduino script & Node-RED flows.
Shown here with an ESP8266 controlled Tally light thatâs going onto a lectern
Nice! As wearable a little geeky
We are using the M5 Stack with Display as basic Alarm Clock for Diabetes Monitoring.