https://github.com/thkl/hm-soundtouch
a HomematicCCU addon to control bose soundtouch devices
https://github.com/thkl/hm-soundtouch
addon ccu homematic soundtouch
Last synced: 5 months ago
JSON representation
a HomematicCCU addon to control bose soundtouch devices
- Host: GitHub
- URL: https://github.com/thkl/hm-soundtouch
- Owner: thkl
- Created: 2018-08-13T18:18:07.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-15T11:24:23.000Z (about 6 years ago)
- Last Synced: 2025-01-12T09:29:23.033Z (over 1 year ago)
- Topics: addon, ccu, homematic, soundtouch
- Language: Tcl
- Size: 4.71 MB
- Stars: 2
- Watchers: 4
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.MD
Awesome Lists containing this project
README
A simple tcl wrapper to control your Bose SoundTouch devices.
Install this https://github.com/thkl/HM-SoundTouch/raw/master/hm-soundtouch.tar.gz at your ccu and reboot.
_Please note: after the update from 0.0.10 to 0.0.11 you have to add your players again to the system._
Then there is a small readme at http://ccuip/addons/soundtouch/. You may control your SoundTouch devices via system.Exec("/usr/local/addons/soundtouch/state.tcl NAME COMMAND ARGUMENT")
... but please see the readme ...
Sample Scripts:
Add a new Player to config
```
string stdout;string stderr;
system.Exec("/usr/local/addons/soundtouch/add.tcl 192.168.___.___",&stderr,&stdout);
WriteLine(stderr);
```
This will ask the player for its name and add it to the config. See output for any messages.
If a new player was found, this will also create all variables for that device at your ccu.
You may also add new players via the webconfig at http://ccuip/addons/soundtouch/
Switch SoundTouch with name Test off
```
string name = "Test";
string stdout;string stderr;
system.Exec("/usr/local/addons/soundtouch/state.tcl "#name,&stderr,&stdout);
if (dom.GetObject("BOSE_POWER_"#name).State()==true) {
system.Exec("/usr/local/addons/soundtouch/state.tcl "#name#" touch POWER",&stderr,&stdout);
}
```
Switch SoundTouch with name Test on and play Preset 1
```
string name = "Test";
string stdout;string stderr;
system.Exec("/usr/local/addons/soundtouch/state.tcl "#name,&stderr,&stdout);
if (dom.GetObject("BOSE_POWER_"#name).State()==false) {
system.Exec("/usr/local/addons/soundtouch/state.tcl "#name#" touch POWER",&stderr,&stdout);
system.Exec("/usr/local/addons/soundtouch/state.tcl "#name#" volume 20",&stderr,&stdout);
}
system.Exec("/usr/local/addons/soundtouch/state.tcl "#name#" touch PRESET_1",&stderr,&stdout);
system.Exec("/usr/local/addons/soundtouch/state.tcl "#name#" touch PLAY",&stderr,&stdout);
```
Query all known players and update ccu variables
```
string stdout;string stderr;
system.Exec("/usr/local/addons/soundtouch/state.tcl",&stderr,&stdout);
```