GithubHelp home page GithubHelp logo

Comments (11)

willnnotdan avatar willnnotdan commented on August 22, 2024 1

Great news!

from unraidapi.

willnnotdan avatar willnnotdan commented on August 22, 2024

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.

MostHated avatar MostHated commented on August 22, 2024

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.

willnnotdan avatar willnnotdan commented on August 22, 2024

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.

MostHated avatar MostHated commented on August 22, 2024

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.

willnnotdan avatar willnnotdan commented on August 22, 2024

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.

MostHated avatar MostHated commented on August 22, 2024

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.

willnnotdan avatar willnnotdan commented on August 22, 2024

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.

MostHated avatar MostHated commented on August 22, 2024

Looks like I am in business!

from unraidapi.

MostHated avatar MostHated commented on August 22, 2024

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.

willnnotdan avatar willnnotdan commented on August 22, 2024

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)

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.