Greetings all,
If someone could point me in the right direction here it would be much appreciated.
I’m struggling with concept of the .items file and the .sitemap and how the two link together.
In my Basic UI the lights don’t respond. The lights work fine from the Paper UI. Here’s my setup:
From my .items file:
Dimmer Light_Studio_Ceiling "Studio Ceiling [%d %%]" <selfSlider> (MainHouse, Lights) { dimmer="wemo:MZ100:Bridge-1_0-231441B0100BB8:94103EA2B277FB48:brightness" }
Switch Light_Studio_Ceiling "Studio Ceiling [%d %%]" <SelfLight> (MainHouse, Lights) { switch="wemo:MZ100:Bridge-1_0-231441B0100BB8:94103EA2B277FB48:state" }
Dimmer Light_Studio_Ambient "Studio Ambient [%d %%]" <selfSlider> (MainHouse, Lights) { dimmer="zwave:device:e4fd8d25:node2:switch_dimmer" }
And my .sitemaps:
Frame label="Lights" icon="SelfLight-on.png"{
Switch item=Light_Studio_Ceiling label="Studio Ceiling Light"
Switch item=Light_Studio_Ambient label="Studio Ambient Light"
The screen looks like this…
So I have two issues:
What’s wrong with the definitions?
In the Basic UI panel, how come the switch and dimmer slider don’t show up for the Wemo?
Thanks in advance for any advice
royw51
(Roy W)
August 20, 2016, 10:08am
2
In your items file try changing dimmer= and switch= to channel=
Thanks a million Roy, that was it
If I may ask one more thing…
In my definition for the Wemo light, there are two channels available - switch and dimmer.
These appear to conflict. I.e. When I adjust the slider then switch goes off, when I toggle the switch to iff the the slider bar remains on etc…
Initial state
Adjust slider - The on/off switch is set to on so it works fine at this stage
From here though it falls apart. If I adjust the slider then the switch is set to off even though the light is on
When I toggle the switch on and off several times, the behaviour is erratic. Some times it’s out of sync like the image below, sometimes it works and sometimes it sets the slider to 100%
When I hit the ‘All off’ switch for the group if sets the switch to off and the slider remains lit, but the light is correctly switched off. Pressing it repeatedly also produces erratic and inconsistent nehaviour (light putting the values to ‘On’ while the light remains off.
Would anyone have an idea about this?
Here’s my updated .items setup for it:
/* Lights */
Group:Switch:OR(ON, OFF) Lights "All Lights [%d]" <selfLight> (All)
Group:Switch:OR(ON, OFF) Lights_Indoor "Indoor Lights [%d]" <selfLight> (Lights)
Group:Switch:OR(ON, OFF) Lights_Outdoor "Outdoor Lights [%d]" <selfLight> (Lights)
Group:Switch:OR(ON, OFF) Lights_Outbuildings "Outbuilding Lights [%d]" <selfLight> (Lights)
Dimmer Light_Studio_Ceiling "Studio Ceiling [%d %%]" <selfSlider> (MainHouse, Lights) { channel="wemo:MZ100:Bridge-1_0-231441B0100BB8:94103EA2B277FB48:brightness" }
Switch Light_Studio_Ceiling "Studio Ceiling [%d %%]" <SelfLight> (MainHouse, Lights) { channel="wemo:MZ100:Bridge-1_0-231441B0100BB8:94103EA2B277FB48:state" }
Dimmer Light_Studio_Ambient "Studio Ambient [%d %%]" <selfSlider> (MainHouse, Lights) { channel="zwave:device:e4fd8d25:node2:switch_dimmer" }