GithubHelp home page GithubHelp logo

Comments (7)

ironsheep avatar ironsheep commented on May 23, 2024 1

@thijselblaso yes, this shouldn't be too hard. GImme a week or so...

from rpi-reporter-mqtt2ha-daemon.

ironsheep avatar ironsheep commented on May 23, 2024

@thijselblaso do you mean a separate topic for memory used vs. free? Currentlhy we have these topics:

Screen Shot 2022-01-04 at 14 29 08
?

from rpi-reporter-mqtt2ha-daemon.

thijselblaso avatar thijselblaso commented on May 23, 2024

@ironsheep yes, as a separate topic. I know that there is a memory attribute but I can not make a sensor out of it. I tried to separate the attribute memory in only used RAM in percentage with a sensor template in HA, but I can not make it work. I have a screenshot of my lovelace dashboard. The first one is my unraid server with glance integration. The MQTT server and pihole are raspberry pi's. What I'm missing there is the current used RAM
Screenshot_20220104-230816

from rpi-reporter-mqtt2ha-daemon.

thijselblaso avatar thijselblaso commented on May 23, 2024

@ironsheep Thank you, I appreciate it!

from rpi-reporter-mqtt2ha-daemon.

smeegoan avatar smeegoan commented on May 23, 2024

as a workaround you can use the following template sensor:

  - sensor:   
      - name: "pi4b memory usage"
        unique_id: pi4b_memory_usage
        unit_of_measurement: "%"
        icon: mdi:memory
        state: "{{(100-(state_attr('sensor.rpi_monitor_pi4b','memory')['free_mb']|float)*100 / (state_attr('sensor.rpi_monitor_pi4b','memory')['size_mb']|float))| round(2)}}"

from rpi-reporter-mqtt2ha-daemon.

ironsheep avatar ironsheep commented on May 23, 2024

Added new sensor. Update appears in v1.7.3 and later.

Screen Shot 2023-02-18 at 15 43 30

(Pardon the Pitre suffixes that's the name of my RPi!)

from rpi-reporter-mqtt2ha-daemon.

ironsheep avatar ironsheep commented on May 23, 2024

Changes commited and appear in v1.7.3 and later

from rpi-reporter-mqtt2ha-daemon.

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.