#!/bin/bash # # RGB Cycling Script for ioBroker Zigbee Adapter # Author: Michael Haider # Description: This script cycles through RGB colors on an ioBroker device # using a zigbee adapter. # Instructions: Replace 'zigbee.0.04cd15fffee03198.color' with the actual # ioBroker address for controlling the color. # # Colors red="ff0000" green="00ff00" blue="0000ff" # Function to set the color on the ioBroker device set_color() { local color_value=$1 iobroker state set zigbee.0.04cd15fffee03198.color "$color_value" } # Main loop to cycle through colors while true; do # Set the color to green set_color "$green" echo "Color set to green" #sleep 1 # Set the color to red set_color "$red" echo "Color set to red" #sleep 1 # Set the color to blue set_color "$blue" echo "Color set to blue" #sleep 1 done