Code Monkey home page Code Monkey logo

hassio-addons's Issues

Issue with Mopidy Getting updates

Got a few issues when I try use TTS.

Trigger an automation which triggers TTS to use Mopidy to play the audio notification. However if I trigger another automation which triggers TTS then it stops working.

Update for media_player.mpd fails
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 130, in update
    self._fetch_status()
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 113, in _fetch_status
    self._currentsong = self._client.currentsong()
  File "/usr/lib/python3.6/site-packages/mpd.py", line 629, in decorator
    return wrapper(self, name, args, bound_decorator(self, returnValue))
  File "/usr/lib/python3.6/site-packages/mpd.py", line 252, in _execute
    self._write_command(command, args)
  File "/usr/lib/python3.6/site-packages/mpd.py", line 279, in _write_command
    self._write_line(" ".join(parts))
  File "/usr/lib/python3.6/site-packages/mpd.py", line 259, in _write_line
    self._wfile.flush()
  File "/usr/lib/python3.6/socket.py", line 604, in write
    return self._sock.send(b)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/socket.py", line 604, in write
    return self._sock.send(b)
BrokenPipeError: [Errno 32] Broken pipe

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 199, in async_update_ha_state
    yield from self.async_device_update()
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 306, in async_device_update
    yield from self.hass.async_add_job(self.update)
  File "/usr/lib/python3.6/asyncio/futures.py", line 331, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.6/asyncio/tasks.py", line 244, in _wakeup
    future.result()
  File "/usr/lib/python3.6/asyncio/futures.py", line 244, in result
    raise self._exception
  File "/usr/lib/python3.6/concurrent/futures/thread.py", line 55, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 133, in update
    self._disconnect()
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 104, in _disconnect
    self._client.disconnect()
  File "/usr/lib/python3.6/site-packages/mpd.py", line 565, in disconnect
    self._wfile.close()
  File "/usr/lib/python3.6/socket.py", line 604, in write
    return self._sock.send(b)
BrokenPipeError: [Errno 32] Broken pipe

Also this

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.6/asyncio/tasks.py", line 179, in _step
    result = coro.send(None)
  File "/usr/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 210, in async_update_ha_state
    state = self.state
  File "/usr/lib/python3.6/site-packages/homeassistant/components/media_player/mpd.py", line 145, in state
    elif self._status['state'] == 'play':
KeyError: 'state'

Also not able to parse some of the messages even though it previously played the notification with no issues. Full log can be found here:
https://hastebin.com/jivefagiwa.sql

Any help would be much appreciated

Grafana: Suggestion: add configuration for proxy access to readme

When configuring hass.io for grafana I stumbled on configuring the 'access' option as 'proxy'. It is worth mentioning, that to access the home assistant container from grafana in order to use influx or other DBs the URL needs to be configured as follows:

http://homeassistant:[DB port]

hassio or hassio.local are not resolvable/refuse connection from within the grafana container.

Grafana Options wont save

I am a noob and not sure if i am doing something wrong when trying to add variables in the options window. I need to access grafana using https://mydomain.duckdns.org:3000
Below is the variable I place in the options box. The save button works, but once I restart garafna the variables disappear and revers back to default.

{
"protocol": "https",
"domain": "mydomain.duckdns.org",
"root_url": "https://mydomain.duckdns.org:3000",
"cert_file": "fullchain.pem",
"cert_key": "privkey.pem"
}

Thanks in advance.

Syncthing version doesn't exist

Trying to install Syncthing but get an error ERROR (SyncWorker_12) [hassio.dock] Can't install bestlibre/armhf-syncthing:0.14.33 -> 404 Client Error: Not Found ("manifest for bestlibre/armhf-syncthing:0.14.33 not found").

100 meassures limit ?

is it possible that either grafana or influxDB have a limit on 100 tag names?

grafana is showing me , only 100 ids , if it is , then how to configure which ones to include on the data base ? , i have tryied the include option on config , but is not making any difference .

appreciate your response ,.
tks

nginx does not start with long domain name

Hi,

I'm trying to proxy my grafana but my base domain is a bit longer and my nginx fails to start

{
  "vhosts": [
    {
      "vhost": "home.myverycooldomainname.com",
      "default_server": true,
      "certname": "hass",
      "port": "8123"
    },
    {
      "vhost": "grafana.myverycooldomainname.com",
      "certname": "grafana",
      "port": "3000"
    }
  ]
}
starting version 3.2.2
2017/11/27 22:21:43 [emerg] 24#24: could not build server_names_hash, you should increase server_names_hash_bucket_size: 32
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32

Anything I can do to fix this?

Does not work with hassio 0.65.6

Does this add work with hassio 0.65.6?
I cannot create database on the first run:
core-ssh:~# curl -i -XPOST http://192.168.1.107:8086/query --data-urlencode "q=CREATE DATABASE home_assistant" curl: (7) Failed to connect to 192.168.1.107 port 8086: Connection refused
I m connected via ssh.

Automation to trigger a single MP3 File instead of an entire playlist...

Is it possible through automations in HA to just tell MPD to play a single file located in the /share/mopidy/media folder or do we have to create a playlist for each independent single sound we want to play?

I attempted the following in the service panel of HA:

{ "entity_id" : "media_player.mpd", "media_content_id" : "https://mydomain.duckdns.org/local/sounds/chime_1.mp3", "media_content_type" : "music" }

But, it doesn't work. (I do have the chime_1.mp3 file in the www/sounds/ folder under config.)

Save snapcast clients list

Snapcast clients list is discarded between restarts. To be able to set client name it should be saved (on share ?)

Dynamic packages (pip and apt-get)

I was wondering if you could add some dynamic pip & apt-get packages to the config for mopidy?
The hassio appdaemon does it but it is in a different shell file and not the dockerfile which may or maynot make sense to you (I am not overly familiar with docker)?

The reason for this would be to allow the end user to manage their own setup without having to get you involved and, in theory, create less maintenance for you :)

the general idea being something like this in the config

{
"local_scan": true,
"options": [
  "pandora/username": "[email protected]",
  "pandora/password": "secret"
],
"pip": [
  "Mopidy-Pandora"
],
"apt-get": [
  "pydora",
  "cachetools",
  "requests"
]

}

Missing option certname in vhosts for dictionary value @ data['options'].

Hi,
Great stuff - thanks for your work on this.

I'm having trouble configuring NGINX for hadashboard (related to home assitsant).
Error message:
Missing option certname in vhosts for dictionary value @ data['options']. Got {'vhosts': [{'default_server': False, 'port': '3030', 'vhost': 'hassio.sylvanmaker.com'}]}
}

myconfig:
{
"vhosts": [
{
"default_server": false,
"port": "3030",
"vhost": "hassio.sylvanmaker.com"
}
]
}

As I look at your code, it should be taking the absence of "cert name" in my config and proceeding but for some reason it won't let me save and start. I swore this worked just 5 days ago then seemed to stop working. Any ideas?

Thanks!

mqtt

Most of the examples I see on how to set up owntracks->mosquitto show a configuration "upstream" I can not figure out how it maps into vhost or if it can. I posted some links to my sources.

https://community.home-assistant.io/t/mqtt-through-nginx-and-owntracks/4943/35?u=penright
http://frankfurtlovesyou.com/posts/mqtt-bridge-with-mosquitto-and-nginx.html

Am I trying to make it too hard?
Here is where I am asking it on the forum
https://community.home-assistant.io/t/mqtt-through-nginx-and-owntracks/4943/36?u=penright

Not an issue - request for help on influxDB and grafana

setting this up on Hass.io , there are a couple of simple things , that i was not able to complete
1 - set the admin user and password on influxDB , Ssh throws an error and there is no way to get rid of it -
when i send: curl -i -XPOST http://192.168.0.xx:8086/query --data-urlencode "q= CREATE USER “admin” WITH PASSWORD ‘passwd’ WITH ALL PRIVILEGES"

the output is
HTTP/1.1 400 Bad Request
Content-Type: application/json
Request-Id: 7e767fd8-d3c7-11e7-8007-000000000000
X-Influxdb-Version: 1.3.7
Date: Mon, 27 Nov 2017 23:05:43 GMT
Content-Length: 83

{"error":"error parsing query: found “, expected identifier at line 1, char 13"}

AND the other problem , how to set the user and pass on grafana? , as it says is going to send an email, but on the docker version i think this do not apply .

thanks in advance !

Regarding Mopidy

You mention in the initial introduction that the /share folder is read-only. On my MacBook, connected to the Samba share "/share," I don't seem to have any problem creating folders manually in Finder. Perhaps something has changed to make it not read-only?

Pass environment variable to grafana

Environment variable can be used to configure grafana instance. A solution must be found to allow them in the add-on config.

Probably a preprocess before launching the original entry point script.

nginx use duckdns addon cert

Hi There

Is it possible to use the duckdns addons certs instead of the certbot ones here?

The key and certchain must be located in /ssl/letsencrypt/live/${certname}/privkey.pem and /ssl/letsencrypt/live/${certname}/fullchain.pem. A solution to obtain them is to used the certbot addon.

This part is the one thats causing me issues. Is there a way I can specify the cert location? My certs are in /ssl

edit: added where my certs are.

Snapclient not starting

Hi,
i am running the snapserver and mopidy with success, thanks for that realy easy configuration :-)
Using it from another rpi with a snapclient works too. Now i want to install the snapclient on the hassio RPI to let it output music too. But the snapclient wont start. I guess it has to do with the config, which in default says "{ }", but when i click "save" it says it would not be valid. Do you have a sample config? I want to add -h 192.168.0.18, but i have no idea about the syntax.

Thanks in advance!

nginx default host sink

It would be great to be able to have a sink default vhost for all requests not matching any other vhost, returning an error (e.g. like nginx-proxy.tmpl#L84).

It sucks to serve people invalid certificates if they reach you by IP or some other invalid alias. Could be solved with a top-level config like no-default or something.

Caddy add-on does not start

Hi.
When I try to start the addon it does not start and it does not show any error in the log.
I have tried with the following configurations without any result:

{
  "homeassistant": "mydomain.duckdns.org",
  "vhosts": [],
  "email": "[email protected]"
}
{
	"homeassistant": "mydomain.duckdns.org",
	"vhosts": [{
			"vhost": "mydomain.duckdns.org",
			"port": "1313"
		}
	],
	"email": "[email protected]"
}

My system is Hass.io 0.60.1

Is something wrong?
How can I see the error log?

Thank you very much for your support

Regards

Caddy: not a valid value for dictionary value @ data['options']

Hi,
I am trying to configure your caddy add-on in hassio, but I always get below error:

not a valid value for dictionary value @ data['options']. Got {'homeassistant': 'homeassistant.domain.tld', 'vhosts': [], 'raw_config': [], 'email': None}

This even happens when I reset the config back to default as seen above. Is this a backwards incompatible change in hassio 0.63.2?

Caddy add-on: v0.10.10-2
Hassio: 0.63.2

how to use DNS plugins with certbot

I use route53 for dns, and i have been able in the past to run certbot with the route53 plugin to verify my ownership.

how would we go about modifying your plugin to select which plugin to use and provide the secrets necessary.

Syncthing should backup addons data and not local

I'm not really familiar with resin os and such, but it seems that the important data regarding addons backup is in /resin-data/addons/data/, but in syncthing addon it is /resin-data/addons/local which is mounted, or am I missing something?

Except that: amazing work, thanks for this addon

Grafana or influxDb - not updating data correctly ?

i know you may receive issues, that are not very specific and you wonder , what can i do with this ??

this may be another .. , but i like so much the way this works that consider a pitty not to be able solve some of the misterious problems , that impacts its reliability .

this is the issue: i found more than once , that after a raspPI reboot , im not able to access current data anymore from grafana .
Hystoricall data is ok, but for current time "NO DATA is displayed .

of course tried restarting grafana, influxdb , and when looking at the logs , separately they look ok , but no current data displayed .

the only way , to solve the problem in the past was , to wipeout home assistant data base , and start again, but im resisting doing it again , there should be other way ...

any ideas , are welcomed , thanks

Mopidy 0.2.3 error after 64.3 update

Getting this error after upgrading to 64.3 was working before updating. Any help would be greatly appreciated. Thanks for the great addon!

** (python:35): CRITICAL **: file gstaudioringbuffer.c: line 1993 (gst_audio_ring_buffer_set_channel_positions): should not be reached

A little help please

I am a complete n00b and have no idea what I'm doing. I am trying to use certbot addon for Hassio. My Hassio instance runs in a docker container inside Debian Jessie Linux. I am unable to get NGINX to start. Here is the way I have my config done. Please, if you would, correct whatever I'm doing wrong.

{
"vhosts": [
{
"vhost": "sub1.mydomain.com",
"default_server": true,
"certname": "rpi",
"port": "8123"
},
{
"remote": "192.168.10.10",
"vhost": "sub2.jdmguide.com",
"certname": "nas",
"port": "443"
}
]
}

In Cerbot:

{
"debug": false,
"email": "myemail",
"certificats": [
{
"name": "hass",
"domains": "sub1.mydomain.com"
}
],
"ssl_only": false
}

I'm sure there are several errors here. Thank you in advance for your assistance.

Error when starting Caddy add-on

Config:
{ "vhosts": [ { "vhost": "mydomain.com", "port": "8123" } ], "email": "*******@gmail.com" }

Log: https://pastebin.com/d3iHd8Hm

Just (about 10 minutes ago) added the correct ip-address to my dns hosting service (namecheap). Maybe that could be the problem? Furthermore, don't know why all those ip-addresses show up in the log. At least they are not mine?

Support subdir for proxy service

To be able to proxy a service install in a subdirectory.

The configuration would look like :

{"remote" : "ip",
 "port": "8082",
 "vhost":"blog.mydomain.com",
 "subdir":"wordpress"} 

nextcloud volumes option missing

Hi,
under hassio addon options you cannot specify volumes which seems to be required for proper configuration on nextcloud, for exmaple config.php. Could you add that option?

hass.io and Mopidy: Cmd('git') failed due to: exit code(128)

Hi,
when trying to install the mopidy addon i get the following error. What can i do to install the mopidy add-on into hass.io?

18-02-01 18:02:07 INFO (MainThread) [hassio.addons.git] Clone addon https://github.com/bestlibre/hassio-addons/tree/master/mopidy repository
18-02-01 18:02:07 ERROR (MainThread) [hassio.addons.git] Can't clone https://github.com/bestlibre/hassio-addons/tree/master/mopidy repo: Cmd('git') failed due to: exit code(128)
cmdline: git clone --recursive -v https://github.com/bestlibre/hassio-addons/tree/master/mopidy /data/addons/git/5708a1bf
stderr: 'Cloning into '/data/addons/git/5708a1bf'...
remote: Not Found
fatal: repository 'https://github.com/bestlibre/hassio-addons/tree/master/mopidy/' not found

Nextcloud hassio addon issue

Hassio: 0.65.5

Trying install nextcloud addon finishes with the error:
[hassio.docker.interface] Can't install bestlibre/armhf-nextcloud:12.0.3 -> 404 Client Error: Not Found ("no such image: bestlibre/armhf-nextcloud:12.0.3: No such image: bestlibre/armhf-nextcloud:12.0.3"

Are there any chance the addon might be supported in future and if so can it upgraded to current version of nextcloud 13.0.X

Thanks.

Mopidy: Suggestion: Quote options[] to support extended parameters

Hi,

tried to reroute the local audio output to a different sound card on the raspberry pi.
In principle, the gstreamer configuration for mopidy.conf is quite clear:

[audio]
output = alsasink device=hw:2,0

Or, for the command line of mopidy:

mopidy -o audio/output='alsasink device=hw:2,0'

Unfortunately, run.sh does not quote the "value" of "options" parameters, so a configuration like

    {
      "name": "audio/output",
      "value": "alsasink  device=hw:2,0"
    },

ends up as an invalid extra parameter "device" on mopidy's command line, which crashes the mopidy call:

mopidy -o audio/output=alsasink device=hw:2,0
                                ^^^^^^^^

Is it possible to add some simple quoting to run.sh? Alternatively, include a mopdiy.conf that can be edited by the user (from /share/, for example).

Apart from that: Great work!

Kanboard | Request Dockerfile

Dear @bestlibre,

since two months I'm learning Docker onto the Raspberry Pi and your repositories and Dockerfiles are a great help and inspiration to me to understand how the eco-system of Docker works.

Currently I'm trying to get Kanboard running onto the Rasperry Pi but im stuck even after reading the official setup guide and studying the official Dockerfiles.

I recognized that you're the only person who has created an Kanboard image for the Rasperry Pi bestlibre/armhf-kanboard which works great out of the box where I failed.

I want to ask if you could share your building files (Dockerfile and additional files) so I can learn how you've succeded this.

Please excuse that I'm opening an Issue here, but I've found no other contact information to reach out to you.

Best regards

Support for shared `/dev/snd` via either `ipc` or `v` parameter with docker run

Hello,

I'd like to request support for sharing of /dev/snd across containers. For instance, if I play anything with mopidy it locks /dev/snd and then the hass.io container can't access the device.

The solution for this is to use --ipc or -v to share memory resources.

Is this something you'd consider?

I've opened a ticket with the hass.io project for the same, but I do think you'd need to make the change as well.

Thanks

Mopidy shows older version

Mopidy version installed today (0.1.2) is older than one which another user has installed from days ago (0.2.2). 0.1.2 will not start, and options will not save.

Cannot install mopidy

When I try to install Mopidy via the add on section in hassio, I get the following error:
17-09-03 14:10:51 ERROR (SyncWorker_1) [hassio.dock.interface] Can't install bestlibre/armhf-mopidy:0.1.2 -> 404 Client Error: Not Found ("manifest for bestlibre/armhf-mopidy:0.1.2 not found").
Any help would be appreciated :)!

mopidy: Possible to enumerate sound devices and `toggle` the volume?

Hello,

Running a raspi 3 and in order to easily use my USB sound card, I disable the on-board sound via /etc/modprobe.d/alsa-blacklist.conf. I can use the autoaudiosink and it activates and sends sound, but in order to hear it, I must install then use amixer to toggle.

Is it possible for you to write something that enumerates and louden the volume on the devices?

Thanks,

Matt

Caddy Proxy Timeout Error

Below is the log I'm getting when I run Caddy.

Setup

Hass.io: 0.62.1
System: Raspberry PI 3
DuckDNS Enabled
Caddy: 0.10.10-2

Caddy Config

{
  "homeassistant": "domain.domain",
  "vhosts": [],
  "raw_config": [],
  "email": "email@email"
}

Log
Below, domain and ipaddr are the expected domain and IP address for my setup. I'm getting an acme connection timeout.

starting version 3.2.4
2018/02/08 00:50:34 [domain.domain] failed to get certificate: acme: Error 400 - urn:acme:error:connection - Fetching http://domain.domain/.well-known/acme-challenge/ebP...: Timeout
Error Detail:
	Validation for domain.domain:80
	Resolved to:
		ipaddr.ipaddr.ipaddr.ipaddr
	Used: ipaddr.ipaddr.ipaddr.ipaddr
Activating privacy features...

Question: how to configure https for grafana on HASS.io env vars ?

i tryed , to add the certificate files to grafana in different ways , but was not able to make grafana to find it .

the last test was by enabling https,
and add

{
"name": "cert_key",
"value": "/ssl/privkey.pem"
},
{
"name": "cert_file",
"value": "/ssl/fullchain.pem"
}

to the configuration , ( tried with and without /ssl , with and without hassio/ssl/ ... etc )
even when it takes the env variables ok , but it seams they need to be added other way , as grafana always claims that the cert file can not be empty .... ( and it is not ) .

it would be very helpful to add , how to configure this critical part , to make grafana access secure from outside .

thank you

How to configure Grafana + influx DB - properly ?

i have followed the docs, and enabled influx DB configuration on config yaml file , there i have listed some ids i need to be charted on grafana , but when on the grafana dashboard config page , none of the tags i enable appear on the drop down list , and there are many others that should be there .

So , my question is , how to make influxDB to honor what tis on the configuration file ?

other question , is how to i know the sample time for each variable , and data base status ?


sample config

influxdb:
host: 192.168.0.60
port: 8086
database: home_assistant

username: !secret influxdb_name

password: !secret influxdb_pass

ssl: true

verify_ssl: true

default_measurement: state

# exclude:

# entities:

# - entity.id1

# - entity.id2

# domains:

# - automation

include:
entities:
- sensor.weather_temperature
- sensor.temp_temperature
- sensor.weather_pressure
- sensor.ram_used
- sensor.ram_available
- sensor.owm_temperature
- sensor.solar_angle
- sensor.disk_free_home
- sensor.dark_sky_uv_index
- sensor.dark_sky_apparent_temperature

domains: 
  - automation
  - switch
  - sensor   

tnakyou

note : im not using user and pass , as the command to make the new user dont work, but without validation de data base is working ...

mopidy-spotify won't install

Mopidy-spotify, introduced by #6 is not available on alpine. One of it's dependency, libspotify, is not available (and deprecated). A solution could be to create a debian based image.

Request: Phlex server

As you have made several awesome server plugins, I'd like to make a request. If you know Plex, you might know Phlex tv which requires a php server to run and allows you to control Plex using voice commands from Google assistant and Alexa. It can installed via docker but I wasn't able to get it to work. Since you have some more experience, maybe you could have a look at it?
Thanks in advance!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.