I am using on a windows server the OH 4.1.0.M1 and the Squeezecontrol widget. Everything is working and i can control the Squeezeboxplayer except the powerbutton on the widget.
When I press it I get an error message “comunication failed”.
The widget powerbutton is:
default:
- component: oh-button
config:
action: command
actionCommand: toggle
actionFeedback: Power
actionItem: =props.prefix+items[props.selected].state+props.power
class:
- margin-top
color: red
fill: true
iconF7: power
text: POWER
Here I have selected my switch item which calls a rule and turn on the player. When pressing the switch manually it works fine.
I don’t know the squeeze control widget, your item configuration, or your rule, but that button configuration makes no sense for Switch type Item. That button is sending the command toggle to the item and toggle is not a recognized command for that kind of item.
Why are you calling a rule with that Power Switch? If you link the Power Channel of the Squeezeplayer Thing with the Power item of the widget it works…
So first… The widget allows to control more squeezebox players… If you doing this you have to change your Player in the top Area of the widget.
All other control-items are generated like “NameOfPlayer + control-item” like
Livingroom-power
Livingroom-volume
etc
If you set a different ‘power’ Button just use one of your prop items.
actionItem: =props.powerItem
Or
actionItem: =props.playerControlItem
Or give it a fixed item:
actionItem: =items.yourrealswitchitem
In the widget the Power Button is then only for this rule.
So check your propitem names and your selected items in the widget prop list
Or set the item direct in the widget…