Code Monkey home page Code Monkey logo

home-assistant-addons's Introduction

Alex's Add-ons Shack

This repository contains my peronal, but free to use Home Assistant Add-ons.

Usage

  1. Navigate in your Home Assistant frontend to Supervisor -> Add-on Store
  2. Add this new repository by URL (https://github.com/alex3305/home-assistant-addons)
  3. Find the add-on that you want to use and click it
  4. Click on the "INSTALL" button

Add-ons

home-assistant-addons's People

Contributors

alex3305 avatar basnijholt avatar grea09 avatar leakypixel avatar svnkoch avatar yo1frenchtoast avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

home-assistant-addons's Issues

Traefik image fix logging levels

Logging levels below info are broken for bashio within Traefik. This needs to be corrected. Also the spec for loglevels is just wrong (uppercase vs lowercase). Also needs to be fixed.

Feature request - Zones as one secret

I'm trying out your addon and I'm stuck on the zones. Each of my zone has a latitude and longitude secret, to port it to bitwarden results in two login in bitwarden.

Can there be a use a prefex in the name of the login eg zone - and the custom fields are use for the latitude and longitude.

Remove j2cli[yaml] as a build dependency

Currently I use jinja2 as a templating language. This also uses Python as a dependency, which wouldn't be necessary when using something else like go templates. This will also shrink down the image by quite a bit.

proxy pass

hello,
it's possible to create an proxy_pass ?
for my exemple if i would like call https://domain/toto i would like to redirect to 192.168.1.2:6789/toto
if yes, have you an exemple ?
thank you
regards

Question for Rclone

Hi @alex3305 ,
its me again :)

Is it possible to use your rclone addon to copy/sync files from e.g. ftp to homeassistant?

I have a fritzbox router with an attached USB drive.
I have only the possibility to use SMB or FTP to access the files.
I would like to backup these files to my homeassistant share directory.
According to my researches for SMB its necessary to mount a share but its also not that easy because of the permission rights, so I will try FTP.

If I understand the DOCS and CONFIG file correct its only possible to backup files from homeassistant to somewhere. Is this correct?

Default Bitwarden server is not working anymore

Hello @alex3305,

since some time my Bitwarden-Secrets-Addon does not working anymore.
I use the default server in my configuration:

server: 'http://a0d7b954-bitwarden'

If I change the server to

server: http://Home-Assistant-IP:Bitwarden-Port

then it's working again.
Can you tell my maybe why the default address doesn't work anymore?

Upgrade Traefik

Would be possible to upgrade Traefik to 2.5.6?
Thank you for this great addon!

Access log location

Hi,
Thank you for this add-on.
After enabling the access log, where can I find it ?

 Add-on version: 4.2.0
 You are running the latest version of this add-on.
 System: Home Assistant OS 11.0  (aarch64 / raspberrypi4-64)
 Home Assistant Core: 2023.10.5
 Home Assistant Supervisor: 2023.10.1

Stefaan

Feature request - Add URI and custom fields

I'm using zoneminder intgration and for that I defined 3 secrets:

zoneminder-host: URL
zoneminder-username: myuser
zoneminder-password: mypassword

If an URI is defined in a login, can de URI be added?

Documentation: Add example which uses custom fields

TLDR: made a PR

First of all great addon!
I wanted to use custom fields to name some things differently then username or password. Couldn't find it in the documentation adn thus looked through the code to implement it myself 😄
But then I found write_custom_fields "${name}" "${row_contents}" and tried custom fields => They are actually implemented ❤️

So yeah, would be cool if you extend the example in the docs to include such example entry 😉

Make Rclone addon local folder configurable

It seems that the Rclone addon clones only the /backup/ directory by default. Could the cloned directory be configurable? I would like to use this to backup camera recording files. Thanks!

Cannot start addon with delayBeforeCheck

Hello,
First of all thanks for this great addon. I have searched for it for months.

I use Home Assistant supervised in my Intel Nuc. When I try to start this addon with the default configuration as described in the docs (with cloudflare) it won’t start.

Here is the error message from the log:
command /usr/local/bin/traefik error: yaml: line 26: mapping values are not allowed in this context

After some tries I found out that if I remove the line delayBeforeCheck: 10 the addon starts as expected.

Regards
ElVit

Addon fails to start with option access_logs: true

Thank you for this addon! I have it running, it works with access to the services I've setup.

Today I tried to set access_logs: true in the addon options, which leads to the addon not starting. If I leave it as false it works. I've also tried to set the environment variable TRAEFIK_ACCESSLOG=true according to https://doc.traefik.io/traefik/reference/static-configuration/env/, with no result.

Could you verify that access logs can be enabled, either through the access_logs option or environment variable?

These are the final lines of the output:

[11:00:04] INFO: No additional environment variables found
[11:00:04] INFO: Starting Traefik...
[11:00:04] INFO: Running Traefik without env_vars
2021/03/16 11:00:04 command /usr/local/bin/traefik error: yaml: line 23: did not find expected key
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

My settings are as follows:

log_level: info
access_logs: true
forwarded_headers_insecure: false
dynamic_configuration_path: /config/traefik/
letsencrypt:
  enabled: false
  resolvers: []
env_vars: []

Wrong DuckDNS TXT record update URL

I'm trying to get Traefik+DuckDNS+LetsEncrypt to work on my hass.io system, this is my configuration:

log_level: INFO
access_logs: false
forwarded_headers_insecure: false
dynamic_configuration_path: /share
letsencrypt:
  enabled: true
  email: [email protected]
  challenge_type: dnsChallenge
  provider: duckdns
env_vars:
  - DUCKDNS_TOKEN=abcd1234efgh5678ijkl90

But it's unable to get the Certificates, it returns the following error:

time="2020-07-01T22:40:59-03:00" level=error msg="Unable to obtain ACME certificate for domains \"subdomain.domain.duckdns.org\": unable to generate a certificate for the domains [subdomain.domain.duckdns.org]: error: one or more domains had a problem:\n[subdomain.domain.duckdns.org] [subdomain.domain.duckdns.org] acme: error presenting token: request to change TXT record for DuckDNS returned the following result (KO) this does not match expectation (OK) used url [https://www.duckdns.org/update?clear=false&domains=domain.duckdns.org&token=abcd1234efgh5678ijkl90+&txt=ABCDEFGHTASDF]\n" providerName=le.acme rule="Host(`subdomain.domain.duckdns.org`)" routerName=homeAssistantRouter@file

Right after the token value and before de "&txt=" theres a plus sign, when I type that URL (with the plus sign) on Chrome navigator, it returns KO, but if I remove the plus sign (https://www.duckdns.org/update?clear=false&domains=domain.duckdns.org&token=abcd1234efgh5678ijkl90&txt=ABCDEFGHTASDF) it returns OK

Any idea on how can I solve this?

(EDIT: By the way, this is only preventing me from having a working certificate, routing works just fine, Traefik is able to redirect the "subdomain.domain.duckdns.org" to the proper internal url and port)

sync Google photos

Hi,

would it be possible to allow not just for upload, but for download as well? Rclone has native Google photos synchronisation support and it would be great to be able to use it with Home assistant os. The command syntax is much more simple as you don't have to manage old repositories and so on...
rclone sync [source] [destination]

Thanks!

Only replace secrets.yaml if passwords are found in Bitwarden

Hi,
I tried your Addon Bitwarden secrets for Home Assistant and I like it a lot.
But last time I restarted my Intel Nuc something went wrong and Home Assistant started in safe mode because the secrets.yaml was empty. Maybe it’s because Bitwarden started to late and your addon could not get the passwords. After I restarted just Home Assistant all worked fine.

Is there a possibility to check if Bitwarden is completely loaded before your addon gets the secrets?

Or maybe only rewrite the secrets.yaml file if there is really a password found in Bitwarden?

Traefik: different port for specific sub domain

Hi,
I am using your addon for a quite long time in combination with Cloudflare and I’m very happy with it.
I am still not understanding everything how Traefik works, so I was wondering if it would be possible to expose some specific sub domains over a different port than 443.
For example a mail server would need port 993 (IMAP) and port 587 (SMTP) but also with SSL.

Is this possible with your addon?
Also if not could you please tell me how the static and dynamic config should look like for my specific use case?
Thanks!

File provider at /config/traefik/ is no longer accessible

After updating my HASS instance and containers for the first time in months, suddenly multiple pieces are no longer functioning as intended. I've narrowed down some of the problems to Traefik's file provider not being used to pick up custom subdomains/redirects from files, previously at /config/traefik/ internally. It's not clear where they're meant to be by default, can you offer any suggestions for places to look or means to reset?

time="2022-06-21T17:45:49-05:00" level=info msg="Starting provider *file.Provider"
time="2022-06-21T17:45:49-05:00" level=error msg="Cannot start the provider *file.Provider: unable to read directory /config/traefik/: open /config/traefik/: no such file or directory"

Traefik addon will not install on supervised HA (ARM architecture)

Hi Alex,
When I try to install the addon, I get:

Add-on konnte nicht installiert werden
The command '/bin/ash -o pipefail -c if [ "${BUILD_ARCH}" == "aarch64" ]; then BUILD_ARCH=arm64; elif [ "${BUILD_ARCH}" == "i386" ]; then BUILD_ARCH=386; elif [ "${BUILD_ARCH}" == "armhf" ]; then BUILD_ARCH=armv7; fi && apk add --no-cache nginx gomplate && wget --quiet -O /tmp/traefik.tar.gz "https://github.com/traefik/traefik/releases/download/v${TRAEFIK_VERSION}/traefik_v${TRAEFIK_VERSION}_linux_${BUILD_ARCH}.tar.gz" && tar xzvf /tmp/traefik.tar.gz -C /usr/local/bin traefik && chmod +x /usr/local/bin/traefik && rm -f /tmp/*' returned a non-zero code: 2

Any Ideas?

Best Regards
Haifi

Issue with dnsChallenge

Thanks for this nice addon. Unfortunately I can't get it to run correctly. I changed the log level to DEBUG and see that it has trouble finding the settings for the dnsChallenge

time="2020-02-22T20:03:59+01:00" level=debug msg="Building ACME client..." providerName=le.acme time="2020-02-22T20:03:59+01:00" level=debug msg="https://acme-v02.api.letsencrypt.org/directory" providerName=le.acme time="2020-02-22T20:03:59+01:00" level=debug msg="Using DNS Challenge provider: transip" providerName=le.acme time="2020-02-22T20:03:59+01:00" level=error msg="Unable to obtain ACME certificate for domains \"ha.redacted.nl\": cannot get ACME client transip: some credentials information are missing: TRANSIP_PRIVATE_KEY_PATH" providerName=le.acme routerName=homeAssistantRouter@file rule="Host(ha.redacted.nl)"

My config is as follows:

log_level: DEBUG
access_logs: true
forwarded_headers_insecure: true
dynamic_configuration_path: /config/traefik/
letsencrypt:
  enabled: true
  email: [email protected]
  challenge_type: dnsChallenge
  provider: transip
env_vars:
  - TRANSIP_ACCOUNT_NAME=redacted
  - TRANSIP_PRIVATE_KEY_PATH=transip.key

(FTFY)

What am I doing wrong? The transip.key is in /config/traefik/
I also tried setting /config/traefik/transip.key and /transip.key
In the config folder are also many HA-related files such as configuration.yaml and in there I created the traefik subdirectory. With in it 2 files, traefik.yaml and transip.key

Addon stops with a strange error on config files !

Hi

Trying to run the addon following documentation but I have that problem:

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 00-banner.sh: executing... 
-----------------------------------------------------------
 Add-on: Rclone
 Rclone is a command line program to sync files and directories to and from various providers.
-----------------------------------------------------------
 Add-on version: 3.0.8
 You are running the latest version of this add-on.
 System: Home Assistant OS 8.0.rc1  (amd64 / generic-x86-64)
 Home Assistant Core: 2022.4.1
 Home Assistant Supervisor: 2022.04.0
-----------------------------------------------------------
 Please, share the above information when looking for help
 or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
[cont-init.d] 00-banner.sh: exited 0.
[cont-init.d] 01-log-level.sh: executing... 
[cont-init.d] 01-log-level.sh: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[15:35:46] INFO: Pruning local files...
[15:35:46] INFO: Pruning local files finished
parse error: Unfinished string at EOF at line 2, column 0
[cont-finish.d] executing container finish scripts...
[cont-finish.d] 99-message.sh: executing... 
[cont-finish.d] 99-message.sh: exited 0.
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.

Config file of addon:

configuration_path: /share/rclone/rclone.conf
local_retention_days: 15
remotes:
  - name: NC Perso
    path: /Config_softs/HA/Auto/
    retention_days: 7

Rclone config file (generated using a local rclone on my computer and then copied on hassio system ! (sensible fields pruned ;)

[NC Perso]
type = webdav
url = https://mynextcloudserver/remote.php/dav
vendor = nextcloud
user = vincen
pass = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Any ideas what's wrong there ?

Thanks

Vincèn

Traefik stopped working after updating to v4.1.2

Hi as the description says the addon stopped working for me since v4.1.2.

Here the last part of my log:

[17:00:20] INFO: Starting Nginx for dashboard...
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address in use)
nginx: [emerg] bind() to 0.0.0.0:80 failed (98: Address in use)
nginx: [emerg] bind() to [::]:80 failed (98: Address in use)

If I revert to v4.1.1 the addon is working again.

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.