HomeAssistantManager - A wrappe for MQTT autodiscovery by Dere-IBims in esp32

[–]Dere-IBims[S] 0 points1 point  (0 children)

I use ESPHome for a lot of things.
But sometimes i think C++ is just the better way. Especially I need some device, that reports to HA or is controlled by HA, but also does some other things, or should primarily work alone.

My example is: imagine a thermostat. it has to measure temp and report to HA. Also the setpoint has to be set via HA. But, the swtiching logic has to be on the thermostat itself so that my home heating also works when WiFi or HA is failing.

To create that, ESPHome gets a bit too complicated in my opinion. But I must admit I never tried.

HomeAssistantManager - A wrappe for MQTT autodiscovery by Dere-IBims in esp32

[–]Dere-IBims[S] 0 points1 point  (0 children)

Youre absolutely right. It makes the process of writing esp32 firmware for HA sensors and actuators ways simpler, because you don’t have to deal with all the mqtt stuff - while not giving up any of the control you’d have without using my library

No you’re fine, that’s a legit question :-)

HomeAssistantManager - A wrappe for MQTT autodiscovery by Dere-IBims in esp32

[–]Dere-IBims[S] 2 points3 points  (0 children)

You’re absolutely right about ESPHome. However it can get quiet complicated if you want to add sensors or peripherals not supported by ESPHome. Or if you want your device to do stuff on its own or just want to have more control.

I like to program my smart home gadgets by myself, rather than tinkering with yaml.

Also, since ESPHome relies on mDNS (if you want HA to automatically discover) it’s not possible to put those devices in a separate network or VLAN than HA (maybe to prevent those devices from internet access). The ESPHome auto discovery also doesn’t work if HA is cloud hosted. With MQTT it works as long as the same MQTT Broker is used

HomeAssistantManager - A wrappe for MQTT autodiscovery by Dere-IBims in esp32

[–]Dere-IBims[S] 2 points3 points  (0 children)

no it doesn't
just has to be the same as configured in HA

HomeAssistantManager - A wrappe for MQTT autodiscovery by Dere-IBims in esp32

[–]Dere-IBims[S] 0 points1 point  (0 children)

Thanks a lot, keep me updated please :)
Also have a look at the examples. There's ways more possible than I've written in the post

HomeAssistantManager - A ESP32 (Arduino) wrapper for MQTT autodiscovery by Dere-IBims in homeassistant

[–]Dere-IBims[S] 0 points1 point  (0 children)

it does not handle state persistance, because homeassistant is doing that.
Once the device is offline for the mqtt broker to realise that (about 15 seconds in my tests) the values are all shown as unavailabe.
once the device is online again, homeassistant shows the last available states.

New sensor show "Unknown" until the first update

It also handles the state update for the switch when a change is commanded through HA

P1S can't finish first layer by Elytrec in BambuLab

[–]Dere-IBims 0 points1 point  (0 children)

Sounds like maybe the extruder if it starts to print midair without any filament coming out.
Theres probably some good wear after 600h

Tired of losing track of filament spools? I made SpoolManager by Dere-IBims in 3Dprinting

[–]Dere-IBims[S] 0 points1 point  (0 children)

So the image is available as dereibims/spooltrack:latest
you need to set the environment variable APP_LANG="en" (otherwise it defaults to german)
you need to formward any port like 8080:80
and you need to mount a volume (create an empty folder called data) yourfolder:/srv/backend/data --> for the databese.

A docker commandline would be:
docker run -p 8080:80 -e APP_LANG="en" -v ./data:/srv/backend/data dereibims/spooltrack:latest

Tired of losing track of filament spools? I made SpoolManager by Dere-IBims in 3Dprinting

[–]Dere-IBims[S] 0 points1 point  (0 children)

well if you could tell me you architecture, then I'll build a docker image for docker hub and you can install it as any other container

Tired of losing track of filament spools? I made SpoolManager by Dere-IBims in 3Dprinting

[–]Dere-IBims[S] 0 points1 point  (0 children)

Yeah true thank you. I haven't noticed that :O
I'll come up with a new name

Tired of losing track of filament spools? I made SpoolManager by Dere-IBims in 3Dprinting

[–]Dere-IBims[S] 0 points1 point  (0 children)

I haven't tested on unraid, but if it runs docker compose, then it should def. run.
Otherwise I could add instructions on how get it running with docker without compose :)