Comments (13)
Nice work.
I'm using API, so information I get is limited to that of course.
I will look into network, not sure why I didnt added that, could have been some issue. HACS approval took a month, so I dont really remember.
Uptime is available in HA standard, if you need something special, you can transform it into any format using HA templating system.
SSH related is OS stuff, its not NAS related. I dont think I would even find that in API.
Not sure about other stuff, its mostly static information which is available. But as a sensor would not make much sense for HA.
from homeassistant-truenas.
from homeassistant-truenas.
Yea, SSH is not something usually required, but if you need that, you still need to use SNMP.
I will look into adding network throughput. It should be possible.
PS: you mention something about SMB in title. what are you missing?
from homeassistant-truenas.
from homeassistant-truenas.
yes, there would be one unrelated thing. I see you are using ZRAID. is there anything that needs to be monitored on ZRAID and is available in TrueNAS?
I never touched ZRAID since I build my NAS for best performance (stripped mirror ssd drives), so I have no idea what is important there.
from homeassistant-truenas.
from homeassistant-truenas.
With RAIDZ2 you can lose only 1 drive tho.
There are already pool status sensors. That should tell you if there is problem with any drive in pool as downgraded status. Not sure if drives needs them separatly in HA as warning should be handled by pool sensor.
Scrub status and progress is already available
How is zpool clear presented in GUI?
Not sure I can get memory details from api, will have to look.
There are bunch of examples how to template new uptime sensor on HA forums. Its same with all standard HA uptime sensors.
from homeassistant-truenas.
Hi friend!
Im trying to fix the timestamp issue and covert it to readable text, and I cannot the right performance of any example. Can you helpme?
I've been seeing all the attributes on HA truenas sensors. Awesome!
About the zpool clear. Is just a console command (root), no UI (just zpool clear my_pool )
from homeassistant-truenas.
If it is not in UI, its unlikely to be accessible using API.
Not sure what you need to do with uptime sensor. Got these 2 types from HA forums:
{{ as_timestamp(states.sensor.truenas_uptime.state) | timestamp_custom(' %Y-%m-%d %I:%M:%S %p ') }}
{%- set time = (as_timestamp(now()) - as_timestamp(states.sensor.truenas_uptime.state)) | int %}
{%- set minutes = ((time % 3600) // 60) %}
{%- set minutes = '{}minutes'.format(minutes) if minutes > 0 else '' %}
{%- set hours = ((time % 86400) // 3600) %}
{%- set hours = '{}hours '.format(hours) if hours > 0 else '' %}
{%- set days = (time // 86400) %}
{%- set days = '{}days '.format(days) if days > 0 else '' %}
{{ 'Less than 1 minute' if time < 60 else days + hours + minutes }} ago
You can find many more there.
from homeassistant-truenas.
from homeassistant-truenas.
If I understood it right, this is what you are looking for:
{{ state_attr('binary_sensor.truenas_boot_pool_healthy', 'Scrub secs left') }}
from homeassistant-truenas.
from homeassistant-truenas.
mailing this is not a good idea. that does not take to formatting nicely :)
from homeassistant-truenas.
Related Issues (20)
- [Bug] HOT 1
- [Bug] DATA_GIBIBYTES was used from truenas, this is a deprecated constant which will be removed in HA Core 2025.1. Use UnitOfInformation.GIBIBYTES instead HOT 1
- [Lokalise] Add new translations language HOT 3
- [Bug] Higher CPU Usage with Master (1f937c8) vs v1.2.5 HOT 4
- [Bug] :443 port is required when specifying host name HOT 24
- [Bug]Entity attributes have spaces in names HOT 4
- Diagnostic Values are 0 HOT 1
- [Bug]Renaming integration fails HOT 4
- InsecureRequestWarning: Unverified HTTPS request is being made HOT 9
- [Bug] Integration does not display all values. HOT 8
- [Bug] no response from host - HA (docker) to TNscale VM. HOT 1
- [Bug] Crash while getting system stats on setup HOT 2
- [Bug] "division by zero" error HOT 11
- [Bug] Datasets that are nested don't stay long after reload. HOT 4
- [Bug] frequent disconnects HOT 4
- [Bug] HA 2024.5.0b0 - Integration fails to update entities HOT 12
- [Question] How to configure Truenas acess HOT 3
- No Response from Host [Bug] HOT 5
- Error fetching TrueNAS data: TrueNas Disconnected HOT 12
- [Lokalise] Add new translations language (Danish) HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from homeassistant-truenas.