Home of the Squeezebox™ & Transporter® network music players.
Page 1 of 3 123 LastLast
Results 1 to 10 of 30
  1. #1
    Senior Member
    Join Date
    May 2008
    Posts
    306

    Anyone using Google Home, IFTTT and Home Assistant to control LMS?

    I've been trying to use the example here to control LMS via Google Home/IFTTT/Home Assistant, but Home Assistant doesn't like the request that I'm throwing at it:
    https://home-assistant.io/components...er.squeezebox/

    Has anyone tried this successfully?

  2. #2
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    949
    Not one that I have tried - but since it did not work first them then I suggest trying it in stages.
    e.g. find a way to invoke the HA->LMS integration without having to use Google->IFTTT->HA
    and check the logs for each stage.
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  3. #3
    Senior Member
    Join Date
    May 2008
    Posts
    306
    Quote Originally Posted by Paul Webster View Post
    Not one that I have tried - but since it did not work first them then I suggest trying it in stages.
    e.g. find a way to invoke the HA->LMS integration without having to use Google->IFTTT->HA
    and check the logs for each stage.
    Thanks for the suggestion. It's tricky as the only way to invoke the integration is with a JSON post query, and an IFTTT webhook seemed like the easiest way of constructing such a query!

  4. #4
    Senior Member
    Join Date
    May 2008
    Posts
    306
    So I finally cracked it, and have Google Home controlling my LMS server/players. If anyone else should try this, here's an example of the type of IFTTT request that you need to send to home-assistant - this one plays the track that you specify:
    URL: "https://yourdyndnsoripaddress:8123/api/services/media_player/squeezebox_call_method?api_password=yourHomeAssist antAPIpassword"
    Method: POST
    Content Type: application/json
    { "entity_id": "media_player.yourmediaplayername", "command": "playlist", "parameters": ["loadtracks", "track.titlesearch={{TextField}}"] }

    It's not the easiest thing in the world to set up, but it's great to finally control my music with only my voice :0)

  5. #5
    Senior Member ModelCitizen's Avatar
    Join Date
    May 2005
    Location
    Sussex UK
    Posts
    3,144
    Hi itm.

    I would dearly love to use my GH to voice control my Squeezebox stuff. I have IFTTT installed on my handheld devices but don't have any clue how to implement the info from your post above. Can you provide any pointers to where I might get more info?

    Thanks for any help
    Somewhere, something incredible is waiting to be known
    Last.fm/user/ModelCitizen

  6. #6
    Senior Member
    Join Date
    May 2008
    Posts
    306
    Quote Originally Posted by ModelCitizen View Post
    Hi itm.

    I would dearly love to use my GH to voice control my Squeezebox stuff. I have IFTTT installed on my handheld devices but don't have any clue how to implement the info from your post above. Can you provide any pointers to where I might get more info?

    Thanks for any help
    I needed to install Home Assistant (https://home-assistant.io/) on a PC at home to enable this (it will run on Windows, Linux and also Raspberry Pi). Basically I've got Google Home talking to IFTTT, and IFTTT sending requests to my Home Assistant server (using the format above).
    A brief overview of Home Assistant's Squeezebox platform can be found here:
    https://home-assistant.io/components...er.squeezebox/

  7. #7
    Senior Member
    Join Date
    Apr 2005
    Location
    UK/London
    Posts
    949
    and you HA installation needs to be reachable from the outside world (so that IFTTT can reach it).
    The HA piece explains more.
    https://home-assistant.io/components/ifttt/
    It does not explain how it is secured (and I have not looked - I don't use HA) so take care.
    Paul Webster
    http://dabdig.blogspot.com
    Author Radio France (FIP etc) plugin

  8. #8
    Senior Member
    Join Date
    May 2008
    Posts
    306
    Quote Originally Posted by Paul Webster View Post
    and you HA installation needs to be reachable from the outside world (so that IFTTT can reach it).
    The HA piece explains more.
    https://home-assistant.io/components/ifttt/
    It does not explain how it is secured (and I have not looked - I don't use HA) so take care.
    Security isn't ideal TBH. I've set up an SSL endpoint on my HA server but I can't find a way to avoid embedding the HA API password in the URL that you specify to IFTTT.

  9. #9
    formerly known as Fletch
    Join Date
    May 2005
    Posts
    2,246
    Quote Originally Posted by itm View Post
    So I finally cracked it, and have Google Home controlling my LMS server/players.
    Very cool - thanks for documenting this. I'm looking forward to trying this when I have time to set it up.

  10. #10
    Senior Member
    Join Date
    Aug 2008
    Location
    Norway
    Posts
    355

    Home Assistant and LMS

    Hi All,

    I have configured my LMS in the HA config file, and run the config check : no errors, and then restarted HA: no errors.
    But then what?
    What should I expect?
    No GUI element for LMS shows up, and the HA Overview Page, and my LMS doesn't show up anywhere in the HA States List.

    So where do I go from here?
    QNAP TS-453Mini 4x3TB RAID5 QTS 4.3.4
    LMS 7.9.1 running in Docker
    Madsonic 6.2 running in Docker
    Plex running in Docker

    QNAP HS-251 2x2TB RAID0, QTS 4.3.4
    Kodi 16.1 Jarvis

    QNAP TS-119 1TB Single, QTS 4.3.3
    Almost Retired

Posting Permissions

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