-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More information in the System section and also update the api call #149
base: master
Are you sure you want to change the base?
Conversation
Testing this pull, very nice work. Not sure if this is due to testing other changes to this integration but this update has created a new device, which is called "System" instead of "TrueNAS System". Otherwise it fixes a couple of the sensors. |
Also the polling interval might be too high. I turned it on at the red arrow in this pic. On my weak system its taking up quite a few cpu cycles, getting all the data across. EDIT: I reduced the update interval and its made a significant reduction on the cpu impact. Every 60s seems good enough for home assistant data needs. |
Found another issue, its not parsing the disk identifiers correctly. Should be showing Think its to do with this pull #131 |
Adding sensors for each memory value like that just needlessly adds load to HA database. It should be all under Memory attributes like they were before. Swap can be there too. |
@@ -433,8 +459,8 @@ def get_systemstats(self) -> None: | |||
|
|||
# arcsize | |||
if tmp_graph[i]["name"] == "arcsize": | |||
tmp_arr = ("cache_size-arc_value", "cache_size-L2_value") | |||
self._systemstats_process(tmp_arr, tmp_graph[i], "memory") | |||
tmp_arr = ("arc_size") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we want L2arc values for those who use it
if t == "memory": | ||
self.ds["system_info"][tmp_var] = tmp_val |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why changing how tmp_var works? this just results in unnecessary large code and more difficult maintenance.
Thanks @tomaae for your reply. I am happy that you reviewed it and appreciate your changes. I am currently using the Beta version 24.04 and yesterday updated to RC1. I am happy to see your updated repo. Great work. |
Just one feature request if its possible.
|
ah, I see. they are changing something again in new scale. will have to install it somewhere to see whats going on there. you can start and stop VMs already, there is a service for it. You can create button from service if you need, just careful of missclick :) |
Most of these is now implemented, except swap. |
|
Can you please add a toggle for the VM to Start/Stop? |
what do you mean? |
Glad to see you're back at it @tomaae |
Proposed change
Type of change
Additional information
Checklist