Heater smart ui button

  • Platform information:
    • Hardware: CPUArchitecture/RAM/storage
    • OS: openhab image
    • Java Runtime Environment: which java platform is used and what version
    • openHAB version: latest

i have a shelly 2.5 that i want to controle

Hello,

I searshed for an answer but still did’net manage to find it. sorry if i missed it.

i want to create a button on UI that has 4 states :

  • on
    -off
    -eco
    -standbye

when i’m on:
“on” status i want the shelly 2.5 to switch the two alimentations on
“off” status i want the shelly 2.5 to switch the two alimentations off
“eco” status i want the shelly 2.5 to switch one alimentations off the other off
“standbye” status i want the shelly 2.5 to switch the other one alimentations off the other on

i tried many things but i don’t really know where to start.

Thanks :sunny:

Create a dummy / proxy item which has the options you want and then have that in the UI. You then create a rule that runs when your dummy / proxy item is changed where you can set the Shelly items to whatever values you want based on the new state of your dummy / proxy item.

Thanks what type name should i use, i don’t see anything like i want :

Type Name
Color
Contact
DateTime
Dimmer
Group
Image
Location
Number
Player
Rollershutter
String
Switch

thanks again

It needs to be a string, since you have multiple states. And then you just show it on a UI as a switch or selection element with mapped buttons.

thanks ! i get it, it’s one big step for me!