StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
621 stars 112 forks source link

[FR] shelly 2.5 roller % widget/controller #451

Closed avol-io closed 4 years ago

avol-io commented 4 years ago

It's possibile have roller % percent to use in widget and maybe change it from the widget? like it's possibile to do with light brightness ? Or dinamic name (like: "kitchen roller 30%") with arrow/stop icons?

quammy commented 4 years ago

Do you mean something like this: image

avol-io commented 4 years ago

like the first one. But also the "shortcut %" it's nice :)

quammy commented 4 years ago

The first one is a standard HA loavelace set of a cover entity. The second one is a simple HA service execution. Here is the lovelace code:

      - entity: cover.shelly_roller_boys
        name: Boys
        secondary_info: 'Poistion: [[ {entity}.attributes.current_position ]]'
        type: 'custom:secondaryinfo-entity-row'
      - action_name: Execute
        icon: 'mdi:window-open'
        name: ...Set 20%
        service: cover.set_cover_position
        service_data:
          entity_id: cover.shelly_roller_boys
          position: '20'
        type: call-service
avol-io commented 4 years ago

thank i'm new of HASS and i never tried custom widget. Thanks for share your configuration. I will try soon

hakana commented 4 years ago

I think you can use this lovelace plugin for that: https://github.com/thomasloven/lovelace-slider-entity-row