Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
feat: Autodiscovery & Complex light type (#14)
Browse files Browse the repository at this point in the history
* Integrate the "switch" entity

* Autodiscover for simple lights, switches and blinds

* Added autodiscover for media players

* Added color lights

* Add OpenHAB group to force a switch to be a light
  • Loading branch information
mros123 committed May 25, 2020
1 parent 78dd418 commit e84b6b0
Show file tree
Hide file tree
Showing 6 changed files with 445 additions and 93 deletions.
6 changes: 4 additions & 2 deletions openhab.pro
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,10 @@ unix {
QMAKE_SUBSTITUTES += openhab.json.in version.txt.in
# output path must be included for the output file from QMAKE_SUBSTITUTES
INCLUDEPATH += $$OUT_PWD
HEADERS += src/openhab.h
SOURCES += src/openhab.cpp
HEADERS += src/openhab.h \
src/openhab_channelmappings.h
SOURCES += src/openhab.cpp \
src/openhab_channelmappings.cpp
TARGET = openhab

# Configure destination path. DESTDIR is set in qmake-destination-path.pri
Expand Down
24 changes: 24 additions & 0 deletions setup-schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "http://json-schema.org",
"$id": "http://yio-remote.com/openhab.json",
"type": "object",
"title": "YIO Integration OpenHAB Schema",
"description": "Required data points to set up a OpenHAB integrations.",
"default": {},
"additionalProperties": true,
"required": [
"url"
],
"properties": {
"url": {
"$id": "#/properties/url",
"type": "string",
"title": "IP address or hostname and port",
"description": "The IP address or hostname and port of your OpenHAB server.",
"default": "",
"examples": [
"192.168.100.2:8123", "yourdomain.com:8123"
]
}
}
}
Loading

0 comments on commit e84b6b0

Please sign in to comment.