Morning!
I’m been playing with HabPanel and got a few cool pages. One of the things I’ve put on my homepage is a button to open the garage. I’ve got a WeMo maker which has items for a relay which toggles movement and a sensor which reports if they are open or not via a reed switch.
At the moment I’ve got these set up as two separate ‘squares’ in HabPanel, but I’d really like to have one square which if you tap it triggers the door moving and is red/green depending on if the sensor is triggered or not. I’m sure this ought to be simple but I can’t work it out! Can anyone help?
items are set up as:
Switch GarageBikesSwitch "Garage Bikes [%s]"(gGarage) { channel="wemo:Maker:Maker-1_0-221529S0000246:relay", autoupdate="false"}
Switch GarageBikesSensor "Garage Bikes [%s]" { channel="wemo:Maker:Maker-1_0-221529S0000246:sensor"}
Switch GarageCarSwitch "Garage Car [%s]" (gGarage) { channel="wemo:Maker:Maker-1_0-221529S000018B:relay", autoupdate="false"}
Switch GarageCarSensor "Garage Car [%s]" { channel="wemo:Maker:Maker-1_0-221529S000018B:sensor"}
And the sitemap as follows. As you can see one or the other is hidden by the sensor through the visibility but this isn’t possible with HabPanel
Switch item=GarageCarSwitch label="Garage Car" mappings=[ON=Open] icon="carclosed" visibility=[GarageCarSensor=="ON"]
Switch item=GarageCarSwitch label="Garage Car" mappings=[ON=Close] icon="caropen" visibility=[GarageCarSensor!="ON"]
Switch item=GarageBikesSwitch label="Garage Bike" mappings=[ON=Open] icon="bikeclosed" visibility=[GarageBikesSensor=="ON"]
Switch item=GarageBikesSwitch label="Garage Bike" mappings=[ON=Close] icon="bikeopen" visibility=[GarageBikesSensor!="ON"]
Screenshot of my homepage with the current garage setup (NB the sensor widgets in the lower two do usually work, sorry!)