Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save 8cH9azbsFifZ/98e0c4fbd433fc9859949af090d17bee to your computer and use it in GitHub Desktop.
Save 8cH9azbsFifZ/98e0c4fbd433fc9859949af090d17bee to your computer and use it in GitHub Desktop.
Convert OpenHAB JSON Homematic to .things format
./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