/r/openhab
This subReddit is for DIY home automation enthusiasts, specifically those using the openHAB project (www.openhab.org), to ask questions related to setup & configuration, post demos and examples of their own solutions, and discuss features, home automation equipment and other openHAB/HA related topics.
openHAB is an open source, DIY home automation system bus, developed by Kai Kreuze, and used by thousands of home automation enthusiasts. It provides a cloud-free, local, and extremely reliable home automation system, can run on multiple platforms (including RPI, Linux, Windows, Docker, etc..), and is constantly updated with new features and support for additional devices.
/r/openhab
I tried the new GOOGLEAI to see how much it knows about OpenHAB.
I shared my screen where the OpenHAB admin interface was and asked GEMINI to help me configure a rule.
Good, but not great! But it was fun
OPENHAB 4: How I integrated my SAMSUNG air conditioners with SMARTTHINGS APIs
With this new video I show you how I achieved the total integration of my SAMSUNG air conditioners, using the SMARTTHINGS API.
The control of the air conditioners is complete, thanks to the use of HTTP API calls that allow complete integration.
Let's start by seeing which items I created and how they are used via MAIN UI and SITEMAP.
Let's then take a quick look at the configuration that we will explore with technical details in a subsequent video
Hi all. I just published a tutorial for beginners to install openHAB on Raspberry PI. I preferred the Docker installation method as this makes it simpler to deal with updates, OS upgrade, and migrations. Opinions are welcome! Here's the link: https://peppe8o.com/openhab-raspberry-pi/
Hello everyone, and happy new year for those with whom I haven’t exchanged yet!
Quick update, the patch 4.3.2 is now out and it brings a host of bug fixes, go check it out right here:
https://github.com/openhab/openhab-distro/releases/tag/4.3.2
As always, feel free to discuss below but if you need any support, or want to report something, please head over to the official openHAB forum, here:
https://community.openhab.org/t/openhab-4-3-release-discussion/160888
Bye for now!
Hi everyone,
I opened two of my #daikin #stylish air conditioner machines in an attempt to figure out the problem.
One of them is working and the another not.
I switch the cards (see image) and could see the problem is in the card.
Does anyone know if it's possible to #flash the #software to put it work back?
Thank you in advance.
Basically, the title.
So, I am using openhab 4.3.1 (recently upgraded) with zigbee2mqtt (1.42) and mosquitto broker. Everything runs on the same machine (ubuntu 22.04). My network is in fact a mesh made out of cca 100+ zigbee things, few tens zwave and some wifi things. Things were relatively OK, but the zigbee items were all provisioned manually, via files in `items` and `things` directory. This is not very efficient as every time I add a new device, I had to create the files, check if they have the right channels - basically, a lot of (my 2c) unneeded manual work. Therefore, I decided to try to switch to device discovery. Openhab sees all zigbee2mqtt devices, I add them as things in openhab but when I check the channels - to link them to items - they are all missing the `switch` channel.
I have the following configuration on my zigbee2mqtt:
homeassistant: true
permit_join: true
mqtt:
base_topic: s01
server: mqtt://localhost
bind: 0.0.0.0
client_id: s01
serial:
port: /dev/ttyZigbee
frontend:
port: 8081
host: 0.0.0.0
experimental:
new_api: true
advanced:
pan_id: 0
network_key:
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
- 0
adapter_concurrent: 16
ikea_ota_use_test_url: true
log_syslog:
app_name: Zigbee2MQTT
eol: /n
host: localhost
localhost: localhost
path: /dev/log
pid: process.pid
port: 123
protocol: tcp4
type: '5424'
last_seen: ISO_8601
availability:
active:
timeout: 30
pasive:
timeout: 360
devices:
I can confirm openhab is able to reach mqtt broker as if I create items for those (sensor-)channels (power, voltage, linkquality) and actually plug something in, I can see the values displayed in openhab.
When I check `org.openhab.core.thing.Thing.json` from jsondb dir, I can confirm the `switch` channels are missing. I tried to add it manually for one give item (just to test) and I managed it to make it work to some extent (see it in openhab, have the switch item linked to it, the button would 'send' json message to command topic, etc). However, given the number of the items, the purpose of this exercise (automate device creation) and the volatile nature of this file, I don't think it's a good idea.
I also noticed in the logs (openhab.log) a lot of messages like this one:
2025-01-05 01:25:43.753 [WARN ] [transport.mqtt.internal.Subscription] - A subscriber of type 'class org.openhab.binding.mqtt.homeassistant.internal.DiscoverComponents' failed to process message '7B22617661696C6162696C697479223A5B7B22746F706963223A227330312F6272696467652F7374617465227D2C7B22746F706963223A227330312F506C756742617468726F6F6D4769726C732F617661696C6162696C697479227D5D2C22617661696C6162696C6974795F6D6F6465223A22616C6C222C22636F6D6D616E645F746F706963223A227330312F506C756742617468726F6F6D4769726C732F736574222C22646576696365223A7B226964656E74696669657273223A5B227A6967626565326D7174745F307830383662643766666665656532326332225D2C226D616E756661637475726572223A224E696B6F222C226D6F64656C223A22436F6E6E656374656420736F636B6574206F75746C657420283137302D33333530352F3137302D333436303529222C226E616D65223A22506C756742617468726F6F6D4769726C73222C2273775F76657273696F6E223A223331332D3238362D3030222C227669615F646576696365223A227A6967626565326D7174745F6272696467655F307830303132346230303163613162323565227D2C226A736F6E5F617474726962757465735F746F706963223A227330312F506C756742617468726F6F6D4769726C73222C226E616D65223A6E756C6C2C226F626A6563745F6964223A22706C756762617468726F6F6D6769726C73222C226F726967696E223A7B226E616D65223A225A6967626565324D515454222C227377223A22312E34322E30222C2275726C223A2268747470733A2F2F7777772E7A6967626565326D7174742E696F227D2C227061796C6F61645F6F6666223A224F4646222C227061796C6F61645F6F6E223A224F4E222C2273746174655F746F706963223A227330312F506C756742617468726F6F6D4769726C73222C22756E697175655F6964223A223078303836626437666666656565323263325F7377697463685F733031222C2276616C75655F74656D706C617465223A227B7B2076616C75655F6A736F6E2E7374617465207D7D227D' to topic 'homeassistant/switch/0x086bd7fffeee22c2/switch/config'.
2025-01-05 01:25:43.753 [WARN ] [transport.mqtt.internal.Subscription] - A subscriber of type 'class org.openhab.binding.mqtt.homeassistant.internal.DiscoverComponents' failed to process message '7B22617661696C6162696C697479223A5B7B22746F706963223A227330312F6272696467652F7374617465227D2C7B22746F706963223A227330312F506C756742617468726F6F6D4769726C732F617661696C6162696C697479227D5D2C22617661696C6162696C6974795F6D6F6465223A22616C6C222C22636F6D6D616E645F746F706963223A227330312F506C756742617468726F6F6D4769726C732F736574222C22646576696365223A7B226964656E74696669657273223A5B227A6967626565326D7174745F307830383662643766666665656532326332225D2C226D616E756661637475726572223A224E696B6F222C226D6F64656C223A22436F6E6E656374656420736F636B6574206F75746C657420283137302D33333530352F3137302D333436303529222C226E616D65223A22506C756742617468726F6F6D4769726C73222C2273775F76657273696F6E223A223331332D3238362D3030222C227669615F646576696365223A227A6967626565326D7174745F6272696467655F307830303132346230303163613162323565227D2C226A736F6E5F617474726962757465735F746F706963223A227330312F506C756742617468726F6F6D4769726C73222C226E616D65223A6E756C6C2C226F626A6563745F6964223A22706C756762617468726F6F6D6769726C73222C226F726967696E223A7B226E616D65223A225A6967626565324D515454222C227377223A22312E34322E30222C2275726C223A2268747470733A2F2F7777772E7A6967626565326D7174742E696F227D2C227061796C6F61645F6F6666223A224F4646222C227061796C6F61645F6F6E223A224F4E222C2273746174655F746F706963223A227330312F506C756742617468726F6F6D4769726C73222C22756E697175655F6964223A223078303836626437666666656565323263325F7377697463685F733031222C2276616C75655F74656D706C617465223A227B7B2076616C75655F6A736F6E2E7374617465207D7D227D' to topic 'homeassistant/switch/0x086bd7fffeee22c2/switch/config'.
Decoding the payload, would result into something like this:
{
"availability": [
{ "topic": "s01/bridge/state" },
{ "topic": "s01/PlugDummy/availability" }
],
"availability_mode": "all",
"command_topic": "s01/PlugDummy/set",
"device": {
"identifiers": ["zigbee2mqtt_0x086bd7fffeee22c2"],
"manufacturer": "Niko",
"model": "Connected socket outlet (170-33505/170-34605)",
"name": "PlugDummy",
"sw_version": "313-286-00",
"via_device": "zigbee2mqtt_bridge_0x00124b001ca1b25e"
},
"json_attributes_topic": "s01/PlugDummy",
"name": "State",
"object_id": "PlugDummy_state",
"origin": {
"name": "Zigbee2MQTT",
"sw": "1.42.0",
"url": "https://www.zigbee2mqtt.io"
},
"payload_off": "OFF",
"payload_on": "ON",
"state_topic": "s01/PlugDummy",
"unique_id": "0x086bd7fffeee22c2_switch_s01",
"value_template": "{{ value_json.state }}"
}
Which may be exactly the reason why I don't see the switch channel in thing's channels list.
I also posted this question in openhab forum without much luck so far - so I am trying here as well, maybe I'll be able to progress. I am planning to dig later on in the code as well, but given the fact I am not very experienced with their huge code base, it may take a while until I may be able to figure this out.
So, my question is - has anyone experienced a similar issue in the past and if yes, were you able to fix it and how?
So I’m trying desperately just to make my Yamaha amp switch to Input 2 after every time the tv turns off. Right now, when I turn the tv off manually, it turns off the amp but leaves it on Input 1. I want it to always default back to Input 2 so that it is prepared for Sonos output.
I have no idea how to program in Openhab but it sounds like my only hope.
I am willing to Venmo anyone that could help me or offer advice. Please?
Today I published the first versions of sys2mqtt. Sys2Mqtt gathers some information about the machine it runs on and sends them to the setup MQTT broker.
It works surprisingly well and allows for instance controlling your lighting whenever the user is active or idle. Written is Rust, it has a very low footprint. It has been developed and tested on MacOS and runs as an Agent so once installed, you never need to bother again.
Today I added an install script to make it easier to install (since a simple cargo install will not get you far regarding running as an Agent.).
https://community.openhab.org/t/sys2mqtt-send-system-metrics-from-your-computer-to-mqtt/161010
I’m struggling to follow all of the news! This is a good difficulty to have :D
Be sure to check the release and all of the news about it: https://www.openhab.org/blog/2024-12-15-openhab-4-3-release.html
Hey everyone!
I missed the previous release but I’m back with the 4.3.0 release candidate 1!
You can head over directly to the GitHub and check the detailed information as usual:
https://github.com/openhab/openhab-distro/releases/tag/4.3.0.RC1
This release brings over some more additional fixes so it should be quite stable.
As usual don’t miss the discussion on the official forum:
https://community.openhab.org/t/openhab-4-3-milestone-discussion/158139
What are you guys looking forward to the most?
Hello everyone,
I would like to introduce my youtube channel mainly focused on OPENHAB
So I just upgraded my OpenHAB install to 4.2.2 on my raspberry pi 4 and I noticed that my time-based conditions were firing at the wrong times. I checked the frontal log viewer and found that the timestamps are all 7 hours ahead! I double-checked and even reset the timezones and then rebooted. I checked and confirmed that the time on the Raspberry Pi is correct, but the timestamps are still 7 hours ahead, and my conditions are still applying at the wrong times! Is this a known issue? Is there a way to fix this? Any ideas where else to check?
Hi All
I'm looking for a way to add or define a custom stylesheet for layout pages created in openhab.
I'm trying to create a interface that renders on a raspberry pi touch screen (720x480), with a complete custom design.
So far I've created a few custom widgets, but because everything is based on the framework7 components, a lot of styling is added to these elements that I don't need.
Is there a way to add a css file to the page, which would allow me to reset or overwrite a lot of the framework 7 styling (background colors, borders, spacings, shaders, ...) as well as define some custom variables (like for colors) to be used in different widgets etc.
Template:
Current state:
There's also quite some difference in the design view (below), and the actual result (above):
Thx for any advice.
Hello everyone!
Here we are with yet another milestone for the openHAB 4.3.0!
GitHub release:
https://github.com/openhab/openhab-distro/releases/tag/4.3.0.M4
Community communication and discussion:
https://community.openhab.org/t/openhab-4-3-milestone-builds/158138/3
Make sure to check out the release details, there’s tons of binding updates, from mqtt. Homeassistant , Shelly, unify, hue, mikrotik and many others!
Hope this is of interest :)
Runs on esphome, fully local, sensor is working too though it looks like unless the fan is spinning it won’t keep polling data. (Which is fair. If you can’t ensure air is moving how can you be sure that the data is correct.) and the channels are fully recognized by the esphome binding too!
https://community.openhab.org/t/levoit-air-purifiers-killing-the-vesync-app-and-going-local/160037
Hello
I'm looking for advice on how to integrate two 10 year old SMA-38000 inverters into OpenHAB. The inverters only do RS-485. I've read folks doing some stuff with RS-485 usb adapters. I've also seen talk about "speedwire". Which seems to be SMA's trademarked word for Ethernet.
I've seen a SMA COMGW-US-10 Communications Gateway. That proxies for lack of a better term RS-485 data to "Speedwire".
I've also seen Modbus is an option. If the SMA COMGW-US-10 Communications Gateway did Modbus I'd buy it and be done as its a few hundred bucks. However reading the SMA docs it's not very obvious if it does.
Thanks for any help
Update: Well, it looks like something is borked on the rs-485 bus. I was gonna disable one inverter at a time and see what was reporting but, sunpower monitoring is down for me. So, rather than trying to replace cards in older inverters I'm just gonna buy some zigbee clamp meters and call it a day
Hey there, so im working with this system that has sensors and an hmi. Usually, when it comes to sensors, id define them in my things, then items, and then go from there, but this time, we took out the HMI because were catering to a specific client. The original code would look like below where all of the sensors and relay have an id of 1, then the HMI would assign the sensors their respective id's. But now, when theres no hmi to assign the id's, how do I alter this so that I can still get a reading?
Hell yeah! Updates to Bosch smart home binding, MQTT home assistant discovery a pi-hole binding and much more! Let’s go!!
For more information you can check out the GitHub project right here:
https://github.com/openhab/openhab-distro/releases/tag/4.3.0.M1
And for discussion about the 4.3.0 release please head over to the oficial forums:
https://community.openhab.org/t/openhab-4-3-milestone-builds/158138
If you find any bugs or if you have any comments, that’s the place to go!
Let’s go!!!
Another milestone just in time for my birthday :D. And I think this is the last one for 4.2 too, so exciting!
We get a bunch of addons, including whisper speech to text, river and energy information (for Germany and France respectively), lots of bug fixes and more. Be sure to check the release notes below! And if you find any bugs be sure to check out the community link below, and report your findings.
More info here:
https://x.com/openhab/status/1807172293929381958?s=46
Release notes:
https://github.com/openhab/openhab-distro/releases/tag/4.2.0.M4
Community discussion page:
https://community.openhab.org/t/openhab-4-2-milestone-discussion/154316
Hey all,
I'm pretty new to openHAB, but managed to get it installed on a rpi4, and got everything configured and running how I want it. I'm using it for an exhibit, and now need to change the wifi settings.
I've tried openhabian-config, but there's no wi-fi setting - I saw elsewhere online that it should be option 36.
No wi-fi settings at option 36
I've also tried directly editing wpa_supplicant.conf, but it doesn't include any wifi settings at all.
Contents of wpa_supplicant.conf
Any suggestions on what I should try next?
Hello,
I need some basic dependencies like "requests" but they are not included in the environment.
How can I add these deps ?
Thanks
PSA:
Changes to the Google assistant interface with OpenHAB are live. There are breaking changes coming (of the top of my head: light groups and fan speeds) so please review them and update your setup if needed. I believe that for now the old and new coexist but eventually they will stop working.
More info here:
https://community.openhab.org/t/openhab-google-assistant-v4-release-scheduled/156228/
If you have fans or air purifiers, check them out again, we’re getting sensor state information (pm readings ?) and also the ability to add modes to purifiers. Pretty darn cool!
Hello everyone! Latest milestone is out!
Check out the release notes right here:
https://github.com/openhab/openhab-distro/releases/tag/4.2.0.M3
If you’d like to participate in the 4.2 milestone discussion, head over to the openHAB oficial forum right here:
https://community.openhab.org/t/openhab-4-2-milestone-discussion/154316/120
Stay safe out there!
Hi, I’m a HA user currently. I’m very concerned about the long term plan to effectively phase out text config and go UI only.
OH looks really promising, but I’m wondering about the long term direction and if it’s clear what role non-UI configurations will have.
Hi, I bought a Raspberry 4 and wanna try to Install openhab for showing the Output of my Huawei PV (incl. Luna Battery), my Growatt Micro Inverter and to use with my Home Automation ( Shelly, Homematic IP and Hue).
Are there any good Guides or starter Tipps for me?
Thanks in advance