Conversation
Update UK esp32-s3 supplier link
…guration options - Increased maximum API key length for Home Assistant from 64 to 256 characters. - Added new card type for Home Assistant entities in CardConfig and CardController. - Implemented Home Assistant client processing in the main application loop. - Created configuration endpoints for Home Assistant URL and API key in CaptivePortal. - Removed example files for Home Assistant client and card due to redundancy. - Improved logging for Home Assistant card events and updates. - Updated HomeAssistantCard to handle entity state updates and display appropriately.
…guration options - Increased maximum API key length for Home Assistant from 64 to 256 characters. - Added new card type for Home Assistant entities in CardConfig and CardController. - Implemented Home Assistant client processing in the main application loop. - Created configuration endpoints for Home Assistant URL and API key in CaptivePortal. - Removed example files for Home Assistant client and card due to redundancy. - Improved logging for Home Assistant card events and updates. - Updated HomeAssistantCard to handle entity state updates and display appropriately.
- Extend HomeAssistantParser to recognize cover entities and retrieve their position and state. - Update HomeAssistantCard to display cover states and positions. - Enhance documentation to include cover entity support.
…switch, and light entities
|
This is badass, Tim, thanks for digging into it and all your enthusiasm, you don't know how exciting it is to have you dig in like this. I use Home Assistant as well and I'm looking forward to having this. A couple things for discussion, let me know what you think:
Thus: what if we did an abstraction for storing service configurations? It could work kind of like cards: an enum defines the available services, and then each service has its own structure for storing whatever it needs to store. Then they could all be tucked into a services array managed by the config manager. I can definitely get around to solving this eventually but if you wanted to take a crack at it (or ask your agent to do the same) that could scoot this PR forward a bit sooner. |
It's been wonderful hacking away at this! Finally a viable OS for microcontrollers ❤️
I agree! I haven't looked too much into the UI yet, but will keep pushing this PR forward in between other work 😀
Let's see how far my friend Claude gets! I'll create a separate PR for this. Is this something we'd want for the cards configs as well? Right now I have the middle button calling the toggle service for lights, toggles & covers, but I can see use cases where you'd want to configure a custom service (and maybe even payload): Something along the lines of: Or do you feel like this would put too much pressure on the already scarce SRAM? |
|
oh man you're reading my mind. Higher extensibility for the card config values makes for more interesting abilities, and it would be great to be able to define this stuff in code and have the web UI just do the right thing without having to be edited. I'm not too scared about memory pressure, as we do much worse with parsing insight responses from PostHog (and successfully offload to the 2MB of PSRAM for such). So yeah, if you have an immediate use case where you'll be able to test and confirm this does what you want, I say go for it! |

The only reason I bought the ESP32 Feather was to be able to take pictures of my DeskHog so I can complain about the temperature in my office to my friends.
Thanks to vibe coding this is now possible. This PR:
card-swappingbranch, so it's easier to well ... swap cards.entity_idcan be set per card, and it will render the title & value.Coming soon (but waiting for the card configuration API to become more stable):
🙇♂️ PostHog folks for creating such a delightful project 🙇♂️