Created
August 3, 2019 20:33
-
-
Save 8cH9azbsFifZ/ddc1a366480da6478fda7b3d60f1d406 to your computer and use it in GitHub Desktop.
Convert OpenHAB JSON Hue 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 hue |sed 's/hue:/ /;s/:/ /;s/:/ /;s/(T.*el=//;s/, .*)//'|awk '{print" "$1,$4,"\""$4"\" @ \"\" [ lightId=\""$3"\” ]"}' > conf/things/hue.things |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment