Squeezebox-Binding for OpenHAB

Forum about OpenHAB open Source Home Automation.

Moderator: raymonvdm

Squeezebox-Binding for OpenHAB

Postby raymonvdm » Sat Jan 03, 2015 6:37 pm

Today i tested the Squeezebox binding for OpenHab and some basic functions are working

Openhab.cfg

Code: Select all

squeeze:server.host=lms.domain.nl
squeeze:server.cliport=9090
squeeze:server.webport=9001
squeeze:language=nl
squeeze:zolder.id=00:1c:c4:d6:bb:xx
squeeze:woonkamer.id=b8:27:eb:2b:ef:xx
squeeze:slaapkamer.id=00:22:15:d5:2c:xx
squeeze:kantoor.id=b8:27:eb:33:96:xx
squeeze:ubuntu_laptop.id=ec:f4:bb:1c:05:xx



items/squeeze.items

Code: Select all

/* SqueezePlayer */

Switch Light_GF_Woonkamer_SqueezePause "Squeeze Pause" (GF_Woonkamer)  {squeeze="woonkamer:pause"}
Switch Light_GF_Woonkamer_SqueezeOn "Squeeze Power" (GF_Woonkamer)  {squeeze="woonkamer:power"}
Dimmer Light_GF_Woonkamer_volume      "Volume [%.1f %%]" (GF_Woonkamer)   { squeeze="woonkamer:volume" }
String Light_GF_Woonkamer_title       "Title [%s]" (GF_Woonkamer)     { squeeze="woonkamer:title" }

Switch Light_FF_Kantoor_SqueezePause "Squeeze Pause" (FF_Kantoor)  {squeeze="kantoor:pause"}
Switch Light_FF_Kantoor_SqueezeOn "Squeeze Power" (FF_Kantoor)  {squeeze="kantoor:power"}
Dimmer Light_FF_Kantoor_volume      "Volume [%.1f %%]" (FF_Kantoor)   {squeeze="kantoor:volume"}
String Light_FF_Kantoor_title       "Title [%s]" (FF_Kantoor)     {squeeze="kantoor:title"}

Switch Light_FF_Slaapkamer_SqueezePause "Squeeze Pause" (FF_Slaapkamer)  {squeeze="slaapkamer:pause"}
Switch Light_FF_Slaapkamer_SqueezeOn "Squeeze Power" (FF_Slaapkamer)  {squeeze="slaapkamer:power"}
Dimmer Light_FF_Slaapkamer_volume      "Volume [%.1f %%]" (FF_Slaapkamer)   {squeeze="slaapkamer:volume"}
String Light_FF_Slaapkamer_title       "Title [%s]" (FF_Slaapkamer)     {squeeze="slaapkamer:title"}

Switch Light_SF_Zolder_SqueezePause "Squeeze Pause" (SF_Zolder)  {squeeze="zolder:pause"}
Switch Light_SF_Zolder_SqueezeOn "Squeeze Power" (SF_Zolder)  {squeeze="zolder:power"}
Dimmer Light_SF_Zolder_volume      "Volume [%.1f %%]" (SF_Zolder)   {squeeze="zolder:volume"}
String Light_SF_Zolder_title       "Title [%s]" (SF_Zolder)     {squeeze="zolder:title"}

Switch Light_Buiten_SqueezePause "Squeeze Pause" (gWerk)  {squeeze="ubuntu_laptop:pause"}
Switch Light_Buitenr_SqueezeOn "Squeeze Power" (gWerk)  {squeeze="ubuntu_laptop:power"}
Dimmer Light_Buiten_volume      "Volume [%.1f %%]" (gWerk)   {squeeze="ubuntu_laptop:volume"}
String Light_Buiten_title       "Title [%s]" (gWerk)     {squeeze="ubuntu_laptop:title"}




I would like to know how to add the following to my sitemap file to change the on/off butten to play/pause. It is working using the Demo example but only on the homescreen no the room where my Squeezelite player is.

domo.sitemap

Code: Select all

       Frame label="Squeeze"
        Text label="Group Demo" icon="1stfloor" {
                Switch item=Light_FF_Kantoor_SqueezePause mappings=[ON="Pause", OFF="Play"]
                Switch item=Light_FF_Kantoor_SqueezeOn mappings=[ON="Aan", OFF="Uit"]
        }



Source: https://github.com/openhab/openhab/wiki ... ox-Binding
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
 
Posts: 1128
Joined: December 2011

Return to OpenHAB Forum

Who is online

Users browsing this forum: No registered users and 1 guest