[WIP] MQTT Support / Home Assistant Integration#1195
Draft
PH89 wants to merge 6 commits intojetkvm:devfrom
Draft
[WIP] MQTT Support / Home Assistant Integration#1195PH89 wants to merge 6 commits intojetkvm:devfrom
PH89 wants to merge 6 commits intojetkvm:devfrom
Conversation
|
@PH89 I've tested this on my JetKVM device and it seems to work well - I'll play around with it next week to see if I spot any issues. I wonder if there's a simple way to add a debounce delay for certain things like ATX HDD LED which can flick on and off repeatedly/quickly for long read/write sessions (if I'm using my NAS, this spams my broker and Home Assistant 😅). |
Contributor
Author
|
I will check this out. Normally it should be possible. But should be configurable. For MQTT server it should not be a problem to handle such change frequency. On the Home Assistant site it could cause a quick pollution of the history log. So maybe it is better to disable logging for these entities. |
1be2637 to
6aa24d5
Compare
Contributor
Author
|
@Igglybuff Integrated debounce delay for ATX HDD Led. |
…n be executed. When disabled, controllable entities (switches, buttons, select) are replaced with read-only sensors/binary sensors. The firmware update entity remains visible but without install capability. - Fix update entity progress feedback by removing value_template which prevented HA from parsing in_progress/update_percentage fields. Add updateRequested flag and lastKnownLatestVersion cache to bridge the gap between MQTT command and OTA state transitions. - Add system metrics sensors: CPU Load (with state_class measurement for graphs), SoC Temperature, Memory Used, Storage Used, Storage Free. - Add Virtual Media select entity with dynamic options list, mount/unmount support, source attribute (url/storage)
…s too flaky states in HA. - Changes on entities like mouse jiggler, virtual media, or active sessions are now published to MQTT instantly. Previously, these changes only appeared in Home Assistant after the next periodic update cycle. Additionally, all current states (ATX/DC, jiggler, virtual media, sessions, network, system, video, etc.) are now published immediately when the MQTT connection is first established, so Home Assistant knows the full device state right away on startup or reconnect. - Also fixes slow session disconnect detection: ICE 'Disconnected' state now triggers an immediate connection close instead of waiting for the ICE timeout (5-30s) before transitioning through 'Failed' to 'Closed'.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
rootcertsand optional insecure modeEnableActionsconfig toggle — when disabled, controllable entities are replaced with read-only sensors/binary sensors while keeping full monitoring capability. The firmware update entity remains visible but without install command.in_progressstatus andupdate_percentageduring OTA updatessourceattribute (storage/url/none)state_class: measurementfor graphs), SoC temperature, memory usage, storage used/freeRelated Issues:
Test plan
EnableActionsoff → confirm switches become binary sensors, buttons disappear, select becomes sensor, update entity loses install buttonEnableActionson → confirm controllable entities reappearsourceattribute isurlPreview