Home of the Squeezebox™ & Transporter® network music players.
Page 21 of 21 FirstFirst ... 11192021
Results 201 to 209 of 209
  1. #201
    Senior Member
    Join Date
    Sep 2017
    Posts
    134
    Quote Originally Posted by ynot1234567890 View Post
    Thanks you beat me to it. Ynot.

    *** EDIT ***
    GitHub Source has now been updated for this required change. time -> time_pattern; Jan 24, 2019
    I just updated to HA 0.87.1 and I'm getting this error

    Tue Feb 19 2019 11:54:00 GMT-0500 (Eastern Standard Time)
    Error while executing automation automation.lms_gui_update_player_values. Invalid data for call_service at pos 2: expected float for dictionary value @ data['value']

    I downloaded the new lmscontrols.yaml file for the time pattern change. Is there something else I was supposed to do?

  2. #202
    Senior Member
    Join Date
    Feb 2017
    Posts
    131
    Quote Originally Posted by grimmace92 View Post
    I just updated to HA 0.87.1 and I'm getting this error

    Tue Feb 19 2019 11:54:00 GMT-0500 (Eastern Standard Time)
    Error while executing automation automation.lms_gui_update_player_values. Invalid data for call_service at pos 2: expected float for dictionary value @ data['value']

    I downloaded the new lmscontrols.yaml file for the time pattern change. Is there something else I was supposed to do?
    If using that new file, then you would have to make the changes you made in the old lmscontrols.yaml file, or easier still open your existing lmscontrols.yaml file and change the line in the automation section:
    Code:
          - platform: time
    to
    Code:
         - platform: time_pattern
    The above change will ensure the shell script player_stat.sh will run every minute.

    However your error indicates the player_stat.sh script is not returning a proper value for volume. This is usually caused by the player's mac address being incorrect or not formatted properly so the query returns an invalid value. Please ensure your player's mac address is all lower case. Worst case, run the player_stat.sh script in the shell using the mac address a review the returned values for errors.

    Hope that helps. Ynot
    Software - Logitech Media Server Version: 7.9.1, Home Assistant 0.84.6, DialogFlow - V.1 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 4.1.17 - Storage
    Add-ons - Spotty, UPnP / DLNA Bridge, ChromeCast Bridge,
    Players - Sonos, UPNP, PI3 - PI Core Player 3.5.0, Android- SB Player V1.4.0, AirPlay to GoogleHome and Minis
    Hardware - Server - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian - 4.18

  3. #203
    Senior Member
    Join Date
    Sep 2017
    Posts
    134
    Quote Originally Posted by ynot1234567890 View Post
    If using that new file, then you would have to make the changes you made in the old lmscontrols.yaml file, or easier still open your existing lmscontrols.yaml file and change the line in the automation section:
    Code:
          - platform: time
    to
    Code:
         - platform: time_pattern
    The above change will ensure the shell script player_stat.sh will run every minute.

    However your error indicates the player_stat.sh script is not returning a proper value for volume. This is usually caused by the player's mac address being incorrect or not formatted properly so the query returns an invalid value. Please ensure your player's mac address is all lower case. Worst case, run the player_stat.sh script in the shell using the mac address a review the returned values for errors.

    Hope that helps. Ynot
    Thanks. Back in business

  4. #204
    Senior Member
    Join Date
    Mar 2013
    Posts
    653
    This is probably completely wrong...but would this system allow me to use my Home to stream to Squeezelite Players? Basically like I currently do with my Chromecast Audios

  5. #205
    Senior Member
    Join Date
    Feb 2017
    Posts
    131
    Quote Originally Posted by CommanderROR View Post
    This is probably completely wrong...but would this system allow me to use my Home to stream to Squeezelite Players? Basically like I currently do with my Chromecast Audios
    The tool is designed to provide voice control of and a Home Assistant GUI for LMS server. Using the LMS server, you can stream (with the chromecast and UPNP addons) to any Chromecast, Squeezeplayer or UPNP device. To date the following streams are supported: LMS local music database, Spotify and any radio stations or other streamed sources if defined as LMS playlists.

    So strictly speaking while you could not say "Hey Google play Supertramp in the kitchen" you could say "Hey Google ask LMS controls to play Supertramp in the kitchen". Where the kitchen is a chromecast, squeezeplayer or UPNP device. The command will then stream Supertramp either from Spotify or LMS database. See the following link for further details: https://github.com/ynot123/LMS_Controls

    Hope that answers your question.
    Last edited by ynot1234567890; 2019-02-26 at 02:59.
    Software - Logitech Media Server Version: 7.9.1, Home Assistant 0.84.6, DialogFlow - V.1 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 4.1.17 - Storage
    Add-ons - Spotty, UPnP / DLNA Bridge, ChromeCast Bridge,
    Players - Sonos, UPNP, PI3 - PI Core Player 3.5.0, Android- SB Player V1.4.0, AirPlay to GoogleHome and Minis
    Hardware - Server - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian - 4.18

  6. #206
    Senior Member
    Join Date
    Feb 2017
    Posts
    131

    LMS Controls Project Updated - Dialogflow Support for V2 - October 24, 2019

    Dialogflow V1 api will be deprecated on October 23, 2019. If you are still using the V1 API, it is recommended to change your settings in Dialogflow to use the V2 API. No changes to your intents yaml configuration need to take place after upgrading to the V2 API.

    To update the Dialogflow project, in Dialogflow console, simply press the gear icon and change from V1 to V2. Give it a try.
    Software - Logitech Media Server Version: 7.9.1, Home Assistant 0.84.6, DialogFlow - V.1 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 4.1.17 - Storage
    Add-ons - Spotty, UPnP / DLNA Bridge, ChromeCast Bridge,
    Players - Sonos, UPNP, PI3 - PI Core Player 3.5.0, Android- SB Player V1.4.0, AirPlay to GoogleHome and Minis
    Hardware - Server - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian - 4.18

  7. #207
    Junior Member
    Join Date
    Dec 2017
    Posts
    8

    Player activation

    I have a puzzler. When I send the DialogFlow intent, the selected player does not activate. I get no errors. The music plays on whatever the Media Player Name is set to on the Home Assistant overview page.
    Name:  Screenshot 2019-11-21 at 10.29.35 PM.png
Views: 167
Size:  75.5 KB
    Name:  Screenshot 2019-11-21 at 10.33.13 PM.png
Views: 166
Size:  26.4 KB
    Here is the results of the home-assistang.log:
    2019-11-21 22:53:33 DEBUG (MainThread) [homeassistant.components.dialogflow] Received Dialogflow request: {'responseId': '3b32339e-1215-4583-b44d-033380794102-9cc28bb4', 'queryResult': {'queryText': 'play the album breakfast in america by supertramp in the basement', 'action': 'lms_dialog_intent', 'parameters': {'lms_album': 'breakfast in america', 'lms_artist': 'supertramp', 'lms_shuffle': 'off', 'lms_player': 'basement', 'lms_command': 'play album'}, 'allRequiredParamsPresent': True, 'fulfillmentText': 'Playing album breakfast in america by supertramp with shuffle off. Would you like me to follow up?', 'fulfillmentMessages': [{'platform': 'ACTIONS_ON_GOOGLE', 'simpleResponses': {'simpleResponses': [{'textToSpeech': 'Playing album breakfast in america by supertramp with shuffle off. Would you like me to follow up?'}]}}, {'text': {'text': ['Playing album breakfast in america by supertramp with shuffle off. Would you like me to follow up?']}}], 'outputContexts': [{'name': 'projects/squeezebox-nvsyug/agent/sessions/01e77a9f-a077-0fd0-7634-7c13304808bb/contexts/play_album-followup', 'lifespanCount': 2, 'parameters': {'lms_album': 'breakfast in america', 'lms_album.original': 'breakfast in america', 'lms_artist': 'supertramp', 'lms_artist.original': 'supertramp', 'lms_shuffle': 'off', 'lms_player': 'basement', 'lms_player.original': 'the basement', 'lms_command': 'play album', 'lms_shuffle.original': '', 'lms_command.original': ''}}], 'intent': {'name': 'projects/squeezebox-nvsyug/agent/intents/77a1ec6d-0c1e-4449-a5f8-b7b5f6d6cd5e', 'displayName': 'play_album'}, 'intentDetectionConfidence': 0.81215847, 'languageCode': 'en'}, 'originalDetectIntentRequest': {'payload': {}}, 'session': 'projects/squeezebox-nvsyug/agent/sessions/01e77a9f-a077-0fd0-7634-7c13304808bb'}
    2019-11-21 22:53:35 DEBUG (MainThread) [homeassistant.components.shell_command] Stdout of command: `bash /home/hass/homeassistant/config/shell/qry_alb.sh {{text1}} {{text2}}`, return code: 0:
    b'lms_username is: USERNAME\nlogin is: login USERNAME PASSWORD\\n and lms_secure is: 1\nHA Token is: LONG LIVED ACCESS TOKEN\nMy Domain is: MY DOMAIN.duckdns.org\nMy lms_ip: 192.168.100.7\nMy lms_cli_port: 9090\n\n\nArtists are:\nlogin USERNAME bin boot COPYRIGHT dev etc home lib libexec media mnt net proc rescue root sbin srv sys tmp usr var artists 0 20 search%3A_supertramp tags%3Aa id%3A961 artist%3ASupertramp count%3A1\n\nArtist check zero is: 1\n\n\nArtist found so moving on to albums....\n\nAlbum check zero is: 1\n\n\nAlbums are:\nlogin USENAME bin boot COPYRIGHT dev etc home lib libexec media mnt net proc rescue root sbin srv sys tmp usr var albums 0 20 artist_id%3A961 search%3Abreakfast_in_america tags%3Aal id%3A1675 album%3ABreakfast%20in%20America artist%3ASupertramp count%3A1\n\nArtist ID is:961\nAlbum ID is: 1675\nName is: Breakfast in America\nnow Posting results\n\n{"attributes": {}, "context": {"id": "e2ca34f60eaa4d039adcc2e2894d9249", "parent_id": null, "user_id": "537e3ecc6c8641808fffff505f3ca11a"}, "entity_id": "sensor.art_id", "last_changed": "2019-11-22T03:53:35.396256+00:00", "last_updated": "2019-11-22T03:53:35.396256+00:00", "state": "961"}\n{"attributes": {}, "context": {"id": "60673132dd464a7b8536a840a78fd057", "parent_id": null, "user_id": "537e3ecc6c8641808fffff505f3ca11a"}, "entity_id": "sensor.alb_id", "last_changed": "2019-11-22T03:53:35.545391+00:00", "last_updated": "2019-11-22T03:53:35.545391+00:00", "state": "1675"}\n{"attributes": {}, "context": {"id": "2e21896502a344919f3e5f31c5501a15", "parent_id": null, "user_id": "537e3ecc6c8641808fffff505f3ca11a"}, "entity_id": "input_text.lms_qry_result", "last_changed": "2019-11-22T03:53:35.652468+00:00", "last_updated": "2019-11-22T03:53:35.652468+00:00", "state": "Breakfast in America"}\n'
    2019-11-21 22:53:35 DEBUG (MainThread) [homeassistant.components.shell_command] Stderr of command: `bash /home/hass/homeassistant/config/shell/qry_alb.sh {{text1}} {{text2}}`, return code: 0:
    b' % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 304 100 289 100 15 2979 154 --:--:-- --:--:-- --:--:-- 3134\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 306 100 290 100 16 2132 117 --:--:-- --:--:-- --:--:-- 2266\n % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0\r100 350 100 318 100 32 3382 340 --:--:-- --:--:-- --:--:-- 3723\n'
    Below is what plays:
    Name:  Screenshot 2019-11-21 at 10.59.36 PM.jpg
Views: 167
Size:  102.1 KB
    I am using FreeNAS 11.2 with Home Assistant and LMS running in iocage jails.

  8. #208
    Senior Member
    Join Date
    Feb 2017
    Posts
    131
    Quote Originally Posted by bitterroots View Post
    I have a puzzler. When I send the DialogFlow intent, the selected player does not activate. I get no errors. The music plays on whatever the Media Player Name is set to on the Home Assistant overview page.
    Taking a quick look I see your media players are defined as media_player.Kitchen but is return by dialogflow as lowercase "kitchen". In lmscontrols.yaml try using lowercase names for media_player.kitchen, media_player.basement, etc..

    Sorry for the late reply. Ynot
    Software - Logitech Media Server Version: 7.9.1, Home Assistant 0.84.6, DialogFlow - V.1 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 4.1.17 - Storage
    Add-ons - Spotty, UPnP / DLNA Bridge, ChromeCast Bridge,
    Players - Sonos, UPNP, PI3 - PI Core Player 3.5.0, Android- SB Player V1.4.0, AirPlay to GoogleHome and Minis
    Hardware - Server - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian - 4.18

  9. #209
    Senior Member
    Join Date
    Feb 2017
    Posts
    131
    Dec. 12, 2019 Breaking Change - Upgrade of HA to version 0.103 requires Squeezebox service syntax change

    Please note, with the upgrade of HA to Version 0.103 the syntax has change for Squeezebox service calls. In the script lmscontrols.yaml the command media_player.squeezebox_call_method needs to be changed to squeezebox.call_method

    This command appears 41 times in the .yaml file.
    Software - Logitech Media Server Version: 7.9.1, Home Assistant 0.84.6, DialogFlow - V.1 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 4.1.17 - Storage
    Add-ons - Spotty, UPnP / DLNA Bridge, ChromeCast Bridge,
    Players - Sonos, UPNP, PI3 - PI Core Player 3.5.0, Android- SB Player V1.4.0, AirPlay to GoogleHome and Minis
    Hardware - Server - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian - 4.18

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
  •