Comments (11)
Great news!
from unraidapi.
Hey - thanks for this very detailed and helpful, the HA Plug in is in alpha at the moment, I will try to fix the issues as soon as possible but Im currently working on a major change for the application itself. In the mean time Id recommend using the docker on unraid as it is much more reliable
from unraidapi.
Oh, I was under the impression that I needed both the HA plugin and the Unraid docker? I have the docker container setup and working on the Unraid side.
from unraidapi.
Ah right that is great, you dont need both actually, you connect either the plug in or in this case the unraid docker to an mqtt broker. Once youve connected the unraid api to an mqtt broker you connect your home asssistant to the same broker and you should be good to go! (Let me know if you need help with the broker)
Details from Home assistant:
https://www.home-assistant.io/docs/mqtt/broker/
How to connect that to the unraid api:
https://github.com/ElectricBrainUK/UnraidAPI/wiki/Docker-installation (Fill in the mqtt details required)
from unraidapi.
I have mosquito setup and running on my Unraid box already for my ZigBee devices. I would imagine that I can reuse that same instance? The information for it is what I had already put into the Unraid API docker, I just used a different MQTTBaseTopic from my Zigbee2Mqtt topic, it didn't seem to complain about it or anything. You will have to forgive me, the extent of my knowledge of MQTT begins and ends with what I needed to get my ZigBee stuff set up, lol.
Edit ---
Looking at the docker logs, I see this:
> [email protected] start
> cross-env NUXT_HOST=0.0.0.0 NODE_ENV=production node server/index.js
WARN mode option is deprecated. You can safely remove it from nuxt.config
Connected to mqtt broker
READY Server listening on **http://0.0.0.0:80**
So looks like that side of things is already good to go.
from unraidapi.
No problem at all, my instructions should be clearer as well!
That sounds like your setup is fine, but the basetopic has to be the one you have set up in home assistant for autodiscovery if you want autodiscovery to work. If you dont need it, and you want to manually configure entities you should be good to go (let me know if you need help with that, some basic details here: https://github.com/ElectricBrainUK/UnraidAPI/wiki/Home-Assistant-Integration)
from unraidapi.
Ah yes, that makes sense about the discovery. It definitely looks like I am on the right path at least. I may just set up the entities manually and see how it goes. I am not sure if there would be any sort of issue having the two things share the same topic. It doesn't seem like it would, but I suppose I can just make some backups of things and give it a whirl.
I definitely appreciate the quick and informative replies. Your help has been much appreciated. I will see what I can work out and just message back here if I have any issues. 👌
**Edit - looking at Zigbee2Mqtt, it looks like it has it's own discovery capability built-in, as I never set/specified a discovery topic. So perhaps I can simply set one, and then continue to have both working just fine.
from unraidapi.
I dont think it should be a problem either, I use zigbee2mqtt as well
No problem, let me know how you get on!
from unraidapi.
Looks like I am in business!
from unraidapi.
It's not much, but at least it's all working. 👍
One thing I noticed, though, was after a while of trying to get the dash to work, eventually the topics and data in MQTT for unraid was no longer there. I restarted the Unraid API docker and then it all showed up again. Is there an adjustment I need to make somewhere for update/retention?
from unraidapi.
The environment variables
MQTTRefreshRate (handles in seconds how frequently updates are scanned for and sent)
&
MQTTCacheTime (handles in minutes how long before all entities are updated)
Are what you are after
from unraidapi.
Related Issues (20)
- https://github.com/thomasloven/lovelace-card-modder - depricated HOT 5
- Password on WebUI
- CPU temperature
- Update Wiki with correct home assistant exmaple UI config HOT 3
- VM state does not change when changing from either the container or home assistant
- 6.10.0-rc1 excess libvirt logs HOT 3
- Any way to log in automatically on container start? HOT 1
- Huge ammount of querry to hassio.lan HOT 1
- Feature request: userscripts entity!
- Minor bug - Home Assistant: 'startup' with 'before' is deprecated
- help
- Docker: Massive amount of writes to Unraid USB flash drive HOT 1
- Change Host Port
- I have 2 Suggestions to prevent "unknown" status after HA restart.
- Unraid crashes when unraid API is booted up HOT 3
- Your Discord invite link is not valid
- Feature request, Network Monitoring
- Cannot read properties of undefined (reading '0') There was a problem retrieving a field for a docker image HOT 4
- State attributes for switch.unas_array exceed maximum size of 16384 bytes. HOT 2
- Can't install HA-Addon HOT 3
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 unraidapi.