What did you build/automated today (with pictures)?

Amazing, great job haha it is so over the top I love it

1 Like

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 :slight_smile:

lmao
Please, please provide some pics.

1 Like

As you wish :slight_smile:

Flow meters in the beer lines:

Google Photos

Kegbot interface that send it off to the webserver:

Google Photos

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!

6 Likes

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 :laughing:

2 Likes

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.

9 Likes

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 :slight_smile:

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 :wink:

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) :slight_smile:
  • 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 :slight_smile:

1 Like

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,

2 Likes

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 :slight_smile: )
i switched my home to zigbee from RF, i starting to like zigbee

1 Like

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

image

6 Likes

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





5 Likes

The boxes that we find and steal for these projects only come in two sizes. Too big and too small :wink:

6 Likes

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

6 Likes

Nice! As wearable a little geeky :wink:
We are using the M5 Stack with Display as basic Alarm Clock for Diabetes Monitoring.

3 Likes