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?
Results 201 to 210 of 225
-
2019-02-19, 09:56 #201
- Join Date
- Sep 2017
- Posts
- 144
-
2019-02-19, 13:20 #202
- Join Date
- Feb 2017
- Posts
- 141
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
Code:- platform: time_pattern
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. YnotSoftware - Logitech Media Server Version: 8.0 (Docker), Home Assistant 0.105.5, DialogFlow - V.2 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 5.2
Add-ons - Spotty, UPnP / DLNA Bridge, Cast Bridge,
Players - Sonos, UPnP, PI3 - PI Core Player 3.5.0 with IQAudio TopHat, Android- SB Player with Viper4Android Convolution Engine, GoogleHome and Google Minis
Hardware - HP Desktop - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian
-
2019-02-19, 19:01 #203
- Join Date
- Sep 2017
- Posts
- 144
-
2019-02-23, 05:08 #204
- 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
-
2019-02-24, 11:59 #205
- Join Date
- Feb 2017
- Posts
- 141
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: 8.0 (Docker), Home Assistant 0.105.5, DialogFlow - V.2 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 5.2
Add-ons - Spotty, UPnP / DLNA Bridge, Cast Bridge,
Players - Sonos, UPnP, PI3 - PI Core Player 3.5.0 with IQAudio TopHat, Android- SB Player with Viper4Android Convolution Engine, GoogleHome and Google Minis
Hardware - HP Desktop - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian
-
2019-10-24, 16:38 #206
- Join Date
- Feb 2017
- Posts
- 141
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: 8.0 (Docker), Home Assistant 0.105.5, DialogFlow - V.2 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 5.2
Add-ons - Spotty, UPnP / DLNA Bridge, Cast Bridge,
Players - Sonos, UPnP, PI3 - PI Core Player 3.5.0 with IQAudio TopHat, Android- SB Player with Viper4Android Convolution Engine, GoogleHome and Google Minis
Hardware - HP Desktop - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian
-
2019-11-21, 21:04 #207
- 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.
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:
I am using FreeNAS 11.2 with Home Assistant and LMS running in iocage jails.
-
2019-12-02, 18:05 #208
- Join Date
- Feb 2017
- Posts
- 141
Software - Logitech Media Server Version: 8.0 (Docker), Home Assistant 0.105.5, DialogFlow - V.2 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 5.2
Add-ons - Spotty, UPnP / DLNA Bridge, Cast Bridge,
Players - Sonos, UPnP, PI3 - PI Core Player 3.5.0 with IQAudio TopHat, Android- SB Player with Viper4Android Convolution Engine, GoogleHome and Google Minis
Hardware - HP Desktop - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian
-
2019-12-12, 13:11 #209
- Join Date
- Feb 2017
- Posts
- 141
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: 8.0 (Docker), Home Assistant 0.105.5, DialogFlow - V.2 API, LMS Controls App - Voice Control of LMS, OpenMediaVault 5.2
Add-ons - Spotty, UPnP / DLNA Bridge, Cast Bridge,
Players - Sonos, UPnP, PI3 - PI Core Player 3.5.0 with IQAudio TopHat, Android- SB Player with Viper4Android Convolution Engine, GoogleHome and Google Minis
Hardware - HP Desktop - i7-3.4Ghz, 4GB Ram, 6TB storage, Debian
-
2019-12-22, 13:45 #210
- Join Date
- Jan 2015
- Posts
- 88
I finally got around to setting up a Home Assistant server, and just wanted to say thank you as it is awesome!
I definitely have a learning curve as I suspect if I know what I'm doing I should be able to re-use some of the commands built into this set from in other scripts/automatons?
Very happy! Thanks for sharing the development work!