Hi All,
My volume is changeable via a dimming item, however I want to use within HabPanel specific up/down buttons for volume
Does anyone know a way to convert this dimming function?
My code currently doesnt work, HTTP Post error as the Up, Down or volume_up,volume_down or +/- do not seem to trigger the volume.
Any thoughts?
<div class="widget" ng-class="{true: 'disabled'}[itemValue('Main_Zone_Power')=='PowerOff']">
<div class="icon off"><svg viewBox="0 0 48 48"><use xlink:href="/static/matrix-theme/squidink.svg#volume"></use></svg></div>
<div class="name">Volume<div class="value">{{itemValue('Zone_1_Volume')}}</div></div>
<div class="controlGroup">
<div class="control" ng-click="sendCmd('Zone_1_Volume', 'Up')"><svg viewBox="0 0 80 80"><use xlink:href="/static/matrix-theme/squidink.svg#top-arrow-2"></use></svg></div>
<div class="control" ng-click="sendCmd('Zone_1_Volume', 'Down')"><svg viewBox="0 0 80 80"><use xlink:href="/static/matrix-theme/squidink.svg#down-arrow-2"></use></svg></div>
items file:
Dimmer Zone_1_Volume "Volume [%.1f %%]" <soundvolume>
Switch Zone_1_Mute "Mute [%s]" <soundvolume_mute>
Number Zone_1_Dialogue_Level "Dialogue Level [%d]" <soundvolume>
String Zone_1_Input "Input [%s]" <video>
String Zone_1_Surround "Surround [%s]" <video>
String Zone_1_Scene "Scene []" <video>