-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix XML-RPC re-init after a timeout
- maintain a topicPrefix/connected boolean topic
- Loading branch information
Showing
6 changed files
with
71 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2014 Oliver Wagner <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
hm2mqtt | ||
======= | ||
|
||
Written and (C) 2014 Oliver Wagner <[email protected]> | ||
|
||
Provided under the terms of the MIT license. | ||
|
||
Overview | ||
-------- | ||
|
||
|
@@ -25,6 +29,19 @@ hm2mqtt will try to read device and channel names from the specified HM hosts us | |
on port 8181. If this succeeds, channel names will be resolved into symbolic names before publishing. | ||
|
||
|
||
Topic structure | ||
--------------- | ||
The topics generated and accepted are of the form | ||
|
||
`prefix/channel/datapoint` | ||
|
||
The *channel* is either the raw address or a name resolved by querying a possibly running ReGaHSS instance | ||
on a CCU1 or CCU2. | ||
|
||
A special topic is *prefix/connected*. It holds a boolean value which denotes whether the adapter is | ||
currently running. It's set to false on disconnect using a MQTT will. | ||
|
||
|
||
MQTT Message format | ||
-------------------- | ||
|
||
|
@@ -35,7 +52,9 @@ The message format accepted and generated is a JSON encoded object with the foll | |
are ignored, to avoid loops. | ||
* hm_addr - source HM device address and channel number | ||
|
||
PRESS\_SHORT and PRESS\_LONG items are sent with the MQTT retain flag set to _false_, all others with retain set to _true_. | ||
Items which start with PRESS\_ (as of now, PRESS\_SHORT, PRESS\_LONG, PRESS\_CONT) are sent with the MQTT retain | ||
flag set to _false_, all others with retain set to _true_. | ||
|
||
|
||
Usage | ||
----- | ||
|
@@ -75,7 +94,8 @@ Examples: | |
See also | ||
-------- | ||
- knm2mqtt - similiar tool for KNX integration | ||
- hmcompanion - where most of the HM-side code was taken from | ||
- hmcompanion - where most of the HM-side code originates from | ||
|
||
|
||
Changelog | ||
--------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters