Questions tagged [openhab]

openHAB aims at providing a universal integration platform for all things around home automation. It is a pure Java solution, fully based on OSGi. This software is completely vendor and hardware agnostic and runs on all devices with JDK.

openHAB aims at providing a universal integration platform for all things around home automation. It is a pure Java solution, fully based on OSGi. This software is completely vendor and hardware agnostic and runs on all devices with JDK.

96 questions
6
votes
5 answers

What is the difference between postUpdate and sendCommand in openHAB

In a rules file in openHAB I can execute postUpdate and sendCommand. What is the difference? I noticed, that when I use postUpdate(zwaveLamp1, ON), only its value is changed, no actions are performed - the light stays dark. sendCommand(zwaveLamp1,…
sja
  • 2,064
  • 2
  • 18
  • 22
6
votes
2 answers

How do I set up my own MQTT Server with Mosquitto?

I am setting up a sensor network for my new diy home automation system and am running into a major roadblock. I am using OpenHAB as the "home base" for the system, and since it has an MQTT binding, I figured that would be a good way to have all of…
dsarge
  • 83
  • 1
  • 1
  • 4
5
votes
1 answer

Server Sent Events not working in android by using domain name URL

I am using this URL from Ajax “https://username:password@home.myopenhab.org/rest/events?topics=smarthome/" to get SSE(Server Sent Events) in client side application from server using Cordova. Its working fine on IOS but its not working on…
5
votes
1 answer

OSGI Unresolved requirement: Import-Package: com.pi4j.io.gpio

I want to write an OSGI Bundle (Eclipse SmartHome Binding) for the GPIO's of a Raspberry Pi. For the GPIO's i need to include the Pi4J libraries. I added them into a lib folder in my project folder and added the pi4j-core.jar to my Build Path. This…
Arjuna
  • 91
  • 1
  • 7
3
votes
1 answer

connect docker container to local site

I have services openhab and mosquitto. I have internal network between openhab and mosquitto, it is ok I have in local network 3 computers 192.168.1.16, 192.168.1.17, 192.168.1.18 on 192.168.1.16 run docker and mosquitto container Now I need add…
user2219071
  • 113
  • 10
2
votes
1 answer

Use

I’d like to use Alexa SSML to only play a notification sound via the tag. However that does seem to work only in conjunction with text. In case it is relevant, I am sending the SSML to Alexa via the openHAB home automation software and its Amazon…
2
votes
1 answer

Guzzle + openHAB REST API: "cURL error 61: Unrecognized content encoding type. libcurl understands deflate, gzip content encodings "

I have some problems with Guzzle and the REST API of my openHAB-system. I have a fresh Laravel 7 installation, where I use Guzzle to retrieve Things from the openHAB API. This works fine for a GET-request to the /things endpoint. However, when I try…
preyz
  • 3,029
  • 5
  • 29
  • 36
2
votes
1 answer

Create html table from URL source

It probably the most simple of codes, but I am very new to this and need some help. I am trying to build a dashboard for my smart home via OpenHab2.0. For this dashboard, I'd like to have a widget that shows me the next 5 departures from my tram…
msvdg
  • 21
  • 3
2
votes
1 answer

openHAB rules: Is there an IDE that gives compile-time errors for openHAB rules?

I use Visual Code, when I save the files they are compiled in the running openHAB instance, and if I'm logged in and do log:tail I see the errors. I would prefer having errors appear in an IDE. Is that currently possibly with any IDE?
arberg
  • 4,148
  • 4
  • 31
  • 39
2
votes
0 answers

How can I pass parameters into openhab2 transformations?

I have a openhab 2.1 setup, and I am using the http binding to get the additional data from my hue bridge that is not available in the hue binding (yet). I am mostly interested in the light- and temperature sensors built into the motion sensors, but…
rmalchow
  • 2,689
  • 18
  • 31
2
votes
2 answers

Configure openHAB to run over USB with KNX

I have some problems to establish a connection to my KNX over USB. There is no problem to run the demo-project or even my project. I have configured my rooms on openHAB but can't get a connection, even if the debug log tells my something other. My…
Obl Tobl
  • 5,604
  • 8
  • 41
  • 65
1
vote
1 answer

What is the best way to restart a docker container when another one is updated?

I have an OpenHAB container and a Mosquitto container; what is the best way to restart the OpenHAB if Mosquitto is updated? Upon restarting or updating the Mosquitto, the OpenHAB (and home assistant) do not reconnect to the MQTT
1
vote
1 answer

Solving this simple(?) JSONPath

I am new to this topic, but I hope you can help me. I can't figure out a correct JSON expression for solving my problem. Given JSON structure (coming from zigbee2mqtt): { "message" : "announce", "meta" : { "friendly_name" : "Lamp1" }, …
bearli
  • 73
  • 1
  • 2
  • 6
1
vote
1 answer

I got a 500 error when I use guzzle but with curl I dont get one

I have an Openhab system on a PI and a REST API and I want to display information on a TV-Screen. I have tried to do it with a curl and it worked. So now I want to do the same with Guzzle. First I only installed composer and guzzle in the Project…
Tyr
  • 13
  • 4
1
vote
0 answers

How can I forward detected objects from YOLO-object detection analysed IP-camera livestream to my Smart Home Platform?

I'm using the object detection algorithm YOLOv3 in combination with a Raspberry Pi 3B+ equipped with an IP camera in order to recognize objects in real time. In case of the detection of desired items some kind of note/message is supposed to be…
1
2 3 4 5 6 7