grimmace92 wrote: 
> Hi Ynot,
> 
> I've made some progress I think.  I've fixed the certificate issue but
> I'm not getting the expected results.  Is there anything else I can try?
> I haven't entered anything in my confirguration.yaml file for the http
> section.  If I do I get an error trying to login into home assistant. 
> Without it I can access via https using my duckdns domain.
> 
> for this query against spotify I see this at the end...
> 
> and this against LMS I see this
> 

Hi, Indeed it looks like you are getting much closer.  My http section
reads as follows:

Code:
--------------------
    http:
  base_url: https://mydomain.duckdns.org
  ssl_certificate: /ssl/fullchain.pem
  ssl_key: /ssl/privkey.pem
  trusted_networks:
  - 192.168.0.0/24  
  
--------------------


Reviewing your output (which is very helpful) looks like the query for
spotify is working ok, it returned your album and posted the result to
your sensor (sensor.spotify_uri) but there is a syntax error in line 23
looks like a missing " or ' so sensor.lms_name did not get posted.

As for the result of the query against the lms database, looks like the
query did not run and no result was found however on the positive side,
the results do seem to be posted to HA sensors sensor.art_id,
sensor.alb_id, sensor.lms_name so that part is working.

I reviewed your previous sh file you sent and it appears ok for the
section that queries the lms server.

A couple of quick questions:

    
- Does your lms installation require you to use a username / password
  (ie: secure install).  If yes, you need to use the secure scripts and
  socat.
- In your configuration.yaml file the following entry in place?
    
Code:
--------------------
        media_player:
    - platform: squeezebox
    host: 192.168.0.XX
--------------------
    
- Do you see your logitech media players defined in HA GUI?
- Is your lms server reachable from your HA instance (ie: can you ping
  the lms server from a shell in the HA instance)
- Is your lms CLI port 9090 (check your settings in lms for this)
- Do you have the artist and album supertramp, breakfast in america in
  your lms database (query it in your lms interface to make sure)
- If memory serves, you did a symbolic link to use netcat instead of
  nc, is the syntax exactly the same??  You could replace nc with netcat
  in the shell files for lms  
  

You can also test the CLI interface to lms to ensure its working and
returns valid results, using putty, set connection type to telnet, set
your lms IP address and port to 9090. Press the open button to connect
and press enter in the window, you should get a bunch of characters
back.  Now you can test the query directly by entering:

*artists 0 20 search:_supertramp tags:a*
The results should be something like:

*artists 0 20 search%3A_supertramp tags%3Aa id%3A1234
artist%3ASupertramp count%3A1*
Note:  If using the secure version of lms, you need to login first (upon
initial connection before pressing enter) by typing login username
password

As for editing my files I use the built in editor in hassio (HASS
Configurator) or notepadd++.

Hope this helps.  Ynot.



*software* - logitech media server version: 7.9.1, home assistant
0.75.3, dialogflow - v.2 api, lms controls app - voice control of lms, 
openmediavault 4.1.9 - 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.16.5
------------------------------------------------------------------------
ynot1234567890's Profile: http://forums.slimdevices.com/member.php?userid=66569
View this thread: http://forums.slimdevices.com/showthread.php?t=109273

_______________________________________________
plugins mailing list
plugins@lists.slimdevices.com
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to