Giter VIP home page Giter VIP logo

Comments (13)

tomaae avatar tomaae commented on August 27, 2024

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.

MisfitPunisher avatar MisfitPunisher commented on August 27, 2024

from homeassistant-truenas.

tomaae avatar tomaae commented on August 27, 2024

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.

MisfitPunisher avatar MisfitPunisher commented on August 27, 2024

from homeassistant-truenas.

tomaae avatar tomaae commented on August 27, 2024

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.

MisfitPunisher avatar MisfitPunisher commented on August 27, 2024

from homeassistant-truenas.

tomaae avatar tomaae commented on August 27, 2024

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.

MisfitPunisher avatar MisfitPunisher commented on August 27, 2024

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.

tomaae avatar tomaae commented on August 27, 2024

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.

MisfitPunisher avatar MisfitPunisher commented on August 27, 2024

from homeassistant-truenas.

tomaae avatar tomaae commented on August 27, 2024

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.

MisfitPunisher avatar MisfitPunisher commented on August 27, 2024

from homeassistant-truenas.

tomaae avatar tomaae commented on August 27, 2024

mailing this is not a good idea. that does not take to formatting nicely :)

from homeassistant-truenas.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.