Integrating BrewBlox with Home Assistant?

That would be fantastic. I spent some time digging into it last night and didn’t get very far (I’m new to MQTT) but may have stumbled on a workaround in the meantime. TiltPi > BrewFather > NodeRed > Home Assistant, but very interested in seeing support for this directly in BrewBlox.

Node-RED also can listen to MQTT events from Brewblox, so if you’ve got that running anyway, it’d make for a viable bridge.

I submitted some prerequisite changes to the Tilt service earlier today. After those are reviewed and merged, forwarding data to home assistant should be pretty simple.

@bpascucci @david.medland-slater do you have a Tilt, and would you want it automatically forwarded? The alternative would be to use a command flag to enable tilt forwarding.

1 Like

I have the sensors visible from Brewblox in Home Assistant and would like to add my Tilt to this. How do I use a command flag to make this happen?

This is not yet possible: we’re currently discussing how this would be implemented.

I would be interested in how you connected the brewblox to home assistant. I did not see an integration or addin for Brewblox. Are you using MQTT for this service? If so could you please provide more details? Thanks!

We make use of MQTT discovery in home assistant. Spark services publish block state every 5s. The brewblox-hass service listens for Spark events, and publishes home assistant-compatible events.

For this to work, MQTT must be enabled in home assistant, and the brewblox-hass service must be able to reach the MQTT broker used by home assistant.

1 Like

Thank you for your response and assistance but I am very new to MQTT and Home Assistant so I am still not quite all the way yet. From what I understand in MQTT. I have to have the brewblox-hass advertise/subscribe to the broker in Home Assistant to publish its data? Am I on the mark or still confused. Not sure how to get Brewblox-hass do that or setup up discovery on HA?

Yes, you are.

MQTT discovery is enabled by default in home assistant.

You provide brewblox-hass the address/port/credentials of the home assistant MQTT broker, and the values will automagically appear in home assistant.

1 Like

@Bob_Steers I don’t have a Tilt (yet).

This integration also works with openHab (another smarthome system).

Setup:

  • openhab2 running on brewpi machine (which I cannot recommend, a pi3 quickly runs into memory trouble)
  • mosquitto running on same machine
  • brewpi with hass container (I really dislike this abbreviation, being a German I always think, why all the hate? :wink: )

Configuration:

  • in docker-compose.yml i added:

hass:
command: --hass-mqtt-host=192.168.1.6 --hass-mqtt-port=1883
image: brewblox/brewblox-hass:develop
restart: unless-stopped

It took me a while to figure out that I need to specify the actual IP of my machine to access localhost outside of docker (being a container noob). Also, there’s a typo further up in Bob’s example (it’s “unless-stopped” and not “unless_stopped”).

In openhab I needed to install the MQTT binding and configure the MQTT broker (which I had already done). Furthermore, it needs the JINJA transformation service.

And - done. Brewblox things magically appeared in the inbox. :slight_smile:

Thanks Bob for this additional integration! Even though I’m not sure what to do with it, the nerd in me is quite happy to see the fermentation temperature next to the living room temperature. :slight_smile:

2 Likes

If you’re putting everything on the same host anyway, you could also expose the Brewblox MQTT broker

brewblox-ctl service expose eventbus 1883:1883

This only works if you’re not using a password on your broker, but does cut back on process duplication.
Home assistant and Brewblox have no overlap in used topics, so are happy to share a broker.

Yea, I can see how that would look weird.

172.17.0.1 is also a valid IP address to reach the host machine.

Thanks! I went back and fixed that.

You’re not alone. We’ve long since figured out that many users want to see lots of data in pretty graphs - just because they can.

2 Likes

Thanks for your advice, bob! Good idea to use the existing mosquitto broker, I’ll try that.
If I think of any integration that is actually useful in the future, I’ll post it here. :slight_smile:

Hi @Bob_Steers

I wonder if it’s possible to get brew-blox to be installed as a Home Assistant addon?

Many thanks

Andy

We currently only offer the service discussed in this thread. Further integration is something we’d like to do in the future, but we need to find the time.

To revive this topic - I just finished installing my brand new Tilt in BrewBlox and I’d also be interested to have the Tilt values exposed to MQTT HASS/openHAB.

I think I can do a quick pass to add that. What would you prefer: temp included in both F and C, or omitted?

I’m more a SI-unit kind of guy, but I’ve seen postings about the Tilt with questions about Fahrenheit, so it’s probably nice to just export it all.

Thanks Bob, you’re a wizard!

1 Like

Changes are online. They’ll be included in the next release, but you can also preview them now by editing docker-compose.yml, and replacing {BREWBLOX_RELEASE} with develop for your hass service.

For example:

...
  hass:
    image: brewblox/brewblox-hass:develop
...

Then run

docker-compose pull hass
docker-compose up -d hass

Turns out that home assistant does some auto conversion for temperatures, so there was no need to send both degC and degF.

1 Like

Awesome, I’ll try it out! :slight_smile:

Works like a charm. I expected nothing less. :slight_smile:

Had to move brewblox to another Raspberry though because the tilt didn’t transmit far enough. Also worked like a charm thanks to the snapshot feature. I continue to be amazed how far brewpi has come. :slight_smile:

1 Like