Giter Club home page Giter Club logo

Comments (17)

CodeFinder2 avatar CodeFinder2 commented on June 11, 2024 3

I'll give this a try and make a PR, if possible 😎

Edit: hopefully, I will have the time today in the eventing to take a look at this. 🙈

from zigbee2mqttassistant.

rbron01 avatar rbron01 commented on June 11, 2024 1

Hi, Any movement on this Topic?

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 11, 2024

This is a new feature and there's very little documentation about this. The configuration is in json but the secret is in yaml. I was under the impression it's automatic and there's nothing to do in the add-on to support it.

Did you try it?

from zigbee2mqttassistant.

emouawad avatar emouawad commented on June 11, 2024

HI, well I thought that the replacement should be automatic and addons don't need to change anything but i might be wrong - I tried exactly same configuration but manual credentials work and secrets don't; FYI other addons i have use same keys.

Tried on the latest release too.

image

image

Let me know if i can help in any way, maybe testing?

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 11, 2024

The !secret is a yaml tag (https://yaml.org/spec/1.1/current.html#id858600). I don't know how it should be supported on JSON...

from zigbee2mqttassistant.

CodeFinder2 avatar CodeFinder2 commented on June 11, 2024

I am interested in this feature as well. 😇

Isn't it possible to do it like https://github.com/danielwelch/hassio-zigbee2mqtt/ is doing it since it is using JSON (for zigbee2mqtt) under the hood as well and needs to deal with a YAML config provided from HassIO? 🙈

Not sure if this helps... 🤔

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 11, 2024

To be honest, I really don't know how this feature is working.

From my point of view, there's nothing to do in Z2MA (or any other add-on) to use it, but I don't know how.

from zigbee2mqttassistant.

CodeFinder2 avatar CodeFinder2 commented on June 11, 2024

@carldebilly I have never developed a Hassio addon yet but did some research on this and found out that all repos / addons supporting secrets provide a config.json, for example:
https://github.com/danielwelch/hassio-zigbee2mqtt/blob/master/zigbee2mqtt/config.json

This file seems to describe the possible entries in the config or is at least responsible for allowing a validation (schema). Maybe this enables secrets?

Here is the official doc/tutorial from HA:
https://developers.home-assistant.io/docs/en/hassio_addon_config.html#options--schema

This also seems to be a hint: hassio-addons/addon-ftp#5

Hopefully, I am not completely wrong... 🙈😁?!

from zigbee2mqttassistant.

carldebilly avatar carldebilly commented on June 11, 2024

@CodeFinder2 It would be nice to try it :-). The config.json (https://github.com/yllibed/hassio/blob/master/zigbee2mqttassistant-dev/config.json) is not providing any schema right now.

from zigbee2mqttassistant.

EpicLPer avatar EpicLPer commented on June 11, 2024

Heya! Just tried the same, any update on this? :)

from zigbee2mqttassistant.

CodeFinder2 avatar CodeFinder2 commented on June 11, 2024

I am still planning to take a look at this but the problem is that I am not used to. NET, Docker and the architecture / environment of this addon. (And yes, time is another thing...)

@carldebilly would you mind giving me a short overview of how I should start? 🙈 I mean a working dev environment would be sufficient for now, and an overview of how things work together, what are the relevant repos etc would even be more helpful. I am kind of experienced in C++ and Python but not in .NET although this shouldn't be much of a problem (just another programming language 😊). I have a dev machine running Ubuntu 18.04 and Windows 10 with VS 2019. What would be the simpliest/most efficient way to start? I was not able to find any 'meta info' on how to contribute (rgd. how things interact and what's important for you wrt. coding style, architecture design, etc.).

Z2MA is currently running on an Odroid XU4 but it's my daily driver for my (smart) home so I don't want to work with that for development. 😅

We can also talk about this via mail/Telegram, whatever fits your needs. 🙂

from zigbee2mqttassistant.

cmitz avatar cmitz commented on June 11, 2024

Hi, in this commit it was added to the Grafana add-on: hassio-addons/addon-grafana@2848651

I thought that might be helpful

from zigbee2mqttassistant.

CodeFinder2 avatar CodeFinder2 commented on June 11, 2024

@cmitz thanks for that link. Unfortunately, it seems that this is not the correct way to do it anymore since those lines are not present in the current revision.

from zigbee2mqttassistant.

marcgarciamarti avatar marcgarciamarti commented on June 11, 2024

Hi, Any movement on this Topic?

interested as well

from zigbee2mqttassistant.

pznamenskii avatar pznamenskii commented on June 11, 2024

still interested

from zigbee2mqttassistant.

MileBuurmeijer avatar MileBuurmeijer commented on June 11, 2024

Such a secret.yaml might also help in my issue: the documented docker Z2MA startup command line fails on my mqtt password since this contains special bash shell characters. I could not figure out how to escape these properly to make the command line work regardless of the actual password characters in use.

from zigbee2mqttassistant.

panache67 avatar panache67 commented on June 11, 2024

I'd be interested in a solution as well.

from zigbee2mqttassistant.

Related Issues (20)

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.