Home of the Squeezebox™ & Transporter® network music players.
Results 1 to 4 of 4
  1. #1
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    Location
    The Netherlands
    Posts
    268

    ANNOUNCE: Alexicz (free) now controls Squeezeboxes via Domoticz

    I have modified the development branch of the free Alexa skill 'dz_smarthome' (nicknamed Alexicz) to provide native control of audio and transport commands for all Squeezeboxes connected to Domoticz. To set up this skill, you need to have a (free) Amazon developer account and install the lambda as your own (free) personal dev-skill. There's an excellent how-to in the git repo that explains this in detail. Be warned though, it's not for the faint-hearted !

    The skill uses Alexa.StepSpeaker, Alexa.PlaybackController and Alexa.PowerController from the Smart Home API to do its magic. When enabled, you have the following command groups available:

    • *Mute/Unmute
      *Volume increase/decrease
      *Play/Resume
      *Pause
      *Skip/Next
      *Previous
      *Stop
      *Power ON/OFF


    There's no need for an invocation name like, "Alexa, ask squeezeme to play on bathroom" - you just say 'Alexa, next track on livingroom', 'Alexa, mute bedroom' etc. In fact, there's in-built persistence of the player name so once you name a specific player (e.g. 'Alexa, volume up by 20 on kitchen') you can now just say 'Alexa, pause', 'Alexa, louder', 'Alexa skip' and the player named 'kitchen' (the last-mentioned squeezebox called-out via the echo device in question) is automatically targeted unless you specify differently. Here are some more examples:

    • Alexa, pause [player]
      Alexa, next track on [player]
      Alexa, skip track on [player]
      Alexa, previous track on [player]
      Alexa, resume [player]
      Alexa, play [player]
      Alexa, stop [player]
      Alexa, mute [player]
      Alexa, unmute [player]
      Alexa, lower the volume on [player]
      Alexa, decrease the volume on [player] by 20
      Alexa, raise the volume on [player]
      Alexa, increase the volume on [player] by 40
      Alexa, louder
      Alexa, quieter
      Alexa, turn it up
      Alexa, pump it up
      Alexa, tone it down


    Note that you cannot ask for a particular playlist, artist, track, genre, favorties, etc - it's just transport and audio controls for now. You also cannot say 'Set volume TO 60' but can only specify a delta such as raise/lower volume BY 30. Alexicz also works if your material-source is Spotify instead of a local library.

    Domoticz effectively acts as a HTTPS-savvy web-server/proxy/tunnel that tunnels requests from the Amazon cloud through to your non-HTTPS LMS server securely. No need for nginx, Apache, ngrok or stunnel to achieve this. You do need to have port 443 open in your router, allowing inbound traffic to Domoticz (you likely need this to control Domoticz remotely anyway).

    Phil
    Last edited by philchillbill; 2019-02-04 at 13:08.

  2. #2
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    Location
    The Netherlands
    Posts
    268

    Skill github link

    As a new forum member, I could not post a link in my very first post above, so here's a link to the skill-code in question

    https://github.com/rimram31/dz_smarthome

    There's a discussion about it on the Domoticz forum at

    https://www.domoticz.com/forum/viewt...p?f=69&t=25946

  3. #3
    Junior Member
    Join Date
    Dec 2019
    Posts
    9
    Hello Phil,

    do you have by any chance a link to some "how to" to use this, i switched my account to FR in order to use alexciz but now i can't have access to your mediaserver skill anymore :/

  4. #4
    Senior Member philchillbill's Avatar
    Join Date
    Jan 2019
    Location
    The Netherlands
    Posts
    268
    This is just access to LMS via the smart home paradigm, so only transport and volume commands. As such, thereĺs no explanation needed - itĺs all built-in Alexa commands. All I did was add the discovery code for it to Alexicz. In the Alexa app, your LMS devices show up in your smart home device list.

    If you want to use both skills, Alexicz works in English and then MediaServer would be available too. With MediaServer you have stream to Echo and a *lot* more commands.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •