dwainscheeren / dwains-dashboard-addons

Dwains Dashboard Community Addons
118 stars 75 forks source link

Convert Sonos to a More Page #65

Closed Flight777 closed 1 year ago

Flight777 commented 3 years ago

I'm having trouble to still deduct the construct of the page.yaml of the different add-ons (there seems to be very limited documentation so far).

Could anyone give me some guidance how I would be able to convert the excellent Sonos add-on for Rooms, to a More Page add-on? I'd like to have on central page to control all Sonos devices in the house :)

Very eager to lear how to do it myself in the future, so any links to good documentation will help greatly.

Thanks for the outstanding job on the interface!!

Klumpke commented 3 years ago

You can do the following to get it as a More page.

      - name: Sonos
        icon: mdi:speaker
        path: 'dwains-dashboard/addons/more_page/sonos/page.yaml'
        data:
          platform: sonos
          speakers:
            - entity: media_player.sonos_livingroom
              name: Living Room
            - entity: media_player.sonos_kitchen
              name: Kitchen
            - entity: media_player.sonos_diningroom
              name: Diningroom
            - entity: media_player.sonos_garden
              name: Garden
          buttons:
            - name: Radio 538
              type: source
              id: Radio 538
            - name: 100% NL
              type: source
              id: 100% NL
            - name: Qmusic
              type: source
              id: Qmusic
            - name: TV
              icon: mdi:television
              type: source
              id: TV