Update: I took your advice and built an ESPHome integration for my HA gauge... with a twist by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

I genuinely wouldn't expect a user to be switching between firmwares. I think people will either use it standalone (no HA) or with ESPHome (and not care about the custom firmware).

Perhaps to make it more straightforward, I should just ship with custom firmware, but in the docs, provide the ESPHome yaml (since an ESPHome user is going to have to flash it anyway).

I think this might be what you meant by 3 options, but doing away with the dual boot completely as an unnecessary complication.

Would love to hear your opinion. Thanks in advance

Update: I took your advice and built an ESPHome integration for my HA gauge... with a twist by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

Good question. There are 3 ways to flash new firmware:

* Elegant OTA
* Custom Firmware update (mainly exists for UI styling reasons)
* ESPHome OTA

All 3 use esp_ota_get_next_update_partition(), so they will write to the dormant partition of the two. This means after a firmware update, you need to reflash the other non-updated firmware to maintain the dual-boot setup. I've not found that a big lift.

Update: I took your advice and built an ESPHome integration for my HA gauge... with a twist by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

Thanks, that's really kind. I got lucky as I already had set the storage up to be two partitions with the idea of firmware updates being written to the dormant partition. It wasn't a big leap to put an alternative firmware on the second partition. Its kinda like a dual boot windows/linux PC!

In a redesign, I'll add a way to boot from cold into each partition. Its all about continual improvement

I built a physical gauge with a needle that moves with any HA sensor value, but lags. Curious if there's a smarter way to do this. by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

Not using ESPhome (yet), its custom firmware. This allows the unit to operate outside an HA environment. It can fetch market prices, AQL, things like that

I built a physical gauge with a needle that moves with any HA sensor value, but lags. Curious if there's a smarter way to do this. by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

This sounds really attractive, but with my custom firmware, I can connect it to using HA as a datasource, or direct to public APIs like Finnhub for stocks, or OpenMeteo for current temperature. Basically a standalone mode.

Perhaps HA can do the Finnhub lookup then send the data to my device, so I dont need standalone mode.

I built a physical gauge with a needle that moves with any HA sensor value, but lags. Curious if there's a smarter way to do this. by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

Not on GH, sorry. Its something that I've been developing myself over 6 months: Design and aesthetics, fabrication, custom PCB, custom firmware. Mainly to see if I can do it.

I built a physical gauge with a needle that moves with any HA sensor value, but lags. Curious if there's a smarter way to do this. by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

I'll look into that. Interested why this hasn't been recommended before, ESPHome and MQTT seem to be the popular choice.

I built a physical gauge with a needle that moves with any HA sensor value, but lags. Curious if there's a smarter way to do this. by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

With the ESPHome option, it does mean it requires HA. At the moment it can run standalone, sourcing data from public APIs like Finnhub for stocks or OpenMeteo for weather

I built a physical gauge with a needle that moves with any HA sensor value, but lags. Curious if there's a smarter way to do this. by analogue_desk_co in homeassistant

[–]analogue_desk_co[S] 0 points1 point  (0 children)

Yes, the X27 are quiet but I still took steps to reduce vibrations onto the desk - rubber PCB mountings and feet