-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- MQTT creates items in HABApp only for messages with persist. Events still get created, even if the item does not exist. This shouldn't be but could be a braking change. - Removed many deprecated functions - HABApp will now use the openhab log folder as a log-default when started for the first time on a openhabian installation - Reworked MQTT connection so it is now a module, too (Item/Rule interface stays the same) - Better error message when rule files are executed outside of HABApp - Added lots of documentation
- Loading branch information
1 parent
42da4ad
commit de5f8f5
Showing
29 changed files
with
456 additions
and
390 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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = '0.18.1' | ||
__version__ = '0.19.0' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from pathlib import Path | ||
from typing import Optional | ||
|
||
|
||
def get_log_folder(default: Optional[Path] = None) -> Optional[Path]: | ||
# As a default we log into the openhab folder | ||
choices = ('/var/log/openhab', '/opt/openhab/userdata/logs') | ||
for choice in choices: | ||
path = Path(choice) | ||
if path.is_dir(): | ||
return path | ||
|
||
return default |
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,5 +1,4 @@ | ||
from . import events | ||
from . import items | ||
|
||
from .mqtt_interface import MqttInterface | ||
from .mqtt_interface import MqttConnection | ||
from .interface import subscribe, unsubscribe, publish |
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 @@ | ||
from .mqtt_interface import subscribe, unsubscribe, publish # noqa: F401 |
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
Oops, something went wrong.