Comments (17)
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.
Hi, Any movement on this Topic?
from zigbee2mqttassistant.
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.
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.
Let me know if i can help in any way, maybe testing?
from zigbee2mqttassistant.
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.
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.
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.
@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.
@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.
Heya! Just tried the same, any update on this? :)
from zigbee2mqttassistant.
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.
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.
@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.
Hi, Any movement on this Topic?
interested as well
from zigbee2mqttassistant.
still interested
from zigbee2mqttassistant.
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.
I'd be interested in a solution as well.
from zigbee2mqttassistant.
Related Issues (20)
- Setting the base_topic for the docker image? HOT 2
- Devices are recognized but stated as "No components" [BUG] HOT 12
- unresponsive s. X hours vs. MQTT last_seen HOT 1
- [BUG]Unable to connect to MQTT server mqtt HOT 23
- Bug after HA last update HOT 12
- unable to connect to mqtt server HOT 9
- Don't show "NO COMPONENTS" error if not running as a HomeAssistant instance. HOT 1
- Network Map not working HOT 5
- Zigbee2MqttAssitant unable to connect to mqtt server HOT 3
- Use more of the available screen space (especially in the map view)
- Longer timeout before showing as unresponsive
- [BUG] Sengled E21-N1EA reporting not supported HOT 4
- [BUG] Issue with Sonoff SNZB-02 unresponsive HOT 1
- [BUG] Slae.sh CC2652RB stick is not listed in device tab of zigbee2mqttAssistant HOT 1
- System.InvalidCastException: Null object cannot be converted to a value type. HOT 1
- [BUG] only partial connection to z2m HOT 5
- Thanks for this project
- releases needed to track changes
- [BUG] Cannot download lasted Docker image and Z2MA not linking to Z2M
- [BUG] crashes when the network drops HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zigbee2mqttassistant.