Docker image for controlling SKYDANCE switches using WIFI-RF relay
10K+
Docker image for controlling SKYDANCE switch using WIFI-RF relay. Switch can be controlled via MQTT or via shell command. The container is started using the following command:
docker run -d --name="skydance" -v ~/docker/skydance:/etc/skydance sgaluf/skydance
After that, in your homedir a folder named /docker/skydance will appear with the following files:
Start by entering the parameters in the "configuration.conf" file. You must enter the IP and the port of the WIFI-RF relay controller. The rest is optional. After that, run the "get_devices.sh" script. If all goes well, it should find your WIFI-RF relay controller and collect the code. The file "devices.dev" is created, where the code is written to. In the same file you can also find the MQTT topic or shell command example. If all goes well and the "devices.dev" is successfully created, you're ready to go. Restart the docker container if necessary.
You can manually set the light by running the "script.sh" file with correct arguments, e.g.: ~/docker/skydance/script.sh /skydance/DEVICE/command DIM_VALUE ... where DEVICE is the device name you entered in the "devices.dev" file and DIM_VALUE is brightness between 0-100. Sometimes the command is not accepted by the controller, so you have to repeat it. Alternatively, you can publish DIM_VALUE to an MQTT topic, named in the "devices.dev" file and the "daemon.sh" file will pick it up and call "script.sh" automatically.
"daemon.sh" file is running in the background to pick MQTT publishes. You can inspect and edit it to fit your needs. For more information, visit:
https://community.home-assistant.io/t/skydance-2-4g-rf/99399
http://dokuwiki.espaiweb.net/doku.php?id=skydance_wifi_rf_relay
Content type
Image
Digest
Size
4.7 MB
Last updated
about 6 years ago
docker pull sgaluf/skydance