Created
August 3, 2019 16:10
-
-
Save 8cH9azbsFifZ/98e0c4fbd433fc9859949af090d17bee to your computer and use it in GitHub Desktop.
Convert OpenHAB JSON Homematic to .things format
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
./runtime/bin/client things list |grep homematic|grep -v VIR|grep -v "Type=Bridge"|sed 's/homematic:/ Thing /;s/:/ /;s/ [A-Z0-9]*:/ /;s/(.*Label=/"/;s/,.*/" @ ""/' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment