This file contains hidden or 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
| blueprint: | |
| name: ZHA - Moes Tuya Smart Knob (TS004F) controller for lights | |
| description: Control lights with a Moes Tuya smart knob (the spinny ones). You can set functions for single press, and rotating left/right will change the brightness smoothly of the selected light. | |
| domain: automation | |
| source_url: https://gist.github.com/rantanlan/84c91cdc781192f41efff0f4ac275065 | |
| input: | |
| remote: | |
| name: Remote | |
| description: Moes Tuya Smart Knob Device to use | |
| selector: |
This file contains hidden or 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
| adb shell content query --uri content://settings/secure --where "name=\'android_id\'" | |
| adb shell content delete --uri content://settings/secure --where "name=\'android_id\'" | |
| adb shell content insert --uri content://settings/secure --bind name:s:android_id --bind value:s:7373de1e9e9670c2 |
This file contains hidden or 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
| def get_wantedlist_from_couch(couchurl) | |
| api_call = "movie.list/?status=active" | |
| couchurl = couchurl + api_call | |
| puts "talking to couch using this call: " + couchurl.to_s | |
| urlresponse = RestClient.get(couchurl) | |
| puts "couch reponse code: " + urlresponse.code.to_s | |
| wanted_response = Hashie::Mash.new (JSON.parse(urlresponse.body)) | |
| return wanted_response | |
| end |