Coder Social home page Coder Social logo

ironsheep / lovelace-rpi-monitor-card Goto Github PK

View Code? Open in Web Editor NEW
178.0 7.0 9.0 1.19 MB

A Raspberry Pi status display Card for Home Assistant Lovelace

License: MIT License

JavaScript 2.69% TypeScript 97.19% Shell 0.12%
homeassistant hassio lovelace-card lovelace-custom-card home-assistant home-assistant-custom raspberry-pi

lovelace-rpi-monitor-card's People

Contributors

ax42 avatar dependabot[bot] avatar guille-mas-coll avatar ironsheep avatar misa1515 avatar nabeelmoeen avatar pskowronek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

lovelace-rpi-monitor-card's Issues

Popup window with history shows only colored blocks / a graph would be more helpful

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

v1.4.2 (I don't know, if it worked with a previous version sind I just started using ist)

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Browser and Operating system

Browser: Firefox 111.0 (64 bit) / Microsoft Edge
OS: Win 10 Pro 64 bit

Description of problem

Hi Stephen
First of all thank you very much for the RPi-Reporter-MQTT2HA-Daemon and the lovelace-rpi-monitor-card. They are a perfect team. And really very easy to install and configure. Great!

I don't know if it's a bug or feature request: when I click on an icon (for example memory), a history window opens. Unfortunately this consists only of colored blocks.
grafik

Is it possible to change this to show a graph? For example, if I display the memory with the "custom:mini-graph-card", the popup window opens with history graph.
grafik

Best regards
Christian

Errors in Browser Console

No response

Additional information

No response

Improve card items/colors

Issue being Addressed

Hi,

when the linux has pending updates appears a label/counter in the card.

For me this notification it's it can be improved.

Enhancement

I would move the label just below the last update date and allow to change the color. Same as temperature:

0 updates : green
1-10 updates : yellow
11-infinite: red

imagen

Following these steps, put the new version notification in another nicer place.

Alternatives

Additional information

No response

Card Refresh rate slow or not refreshing at all

Hey,

Great integration and use it lots!

I noticed recently, there have been quite few card updates. I noticed in the last one, the refresh rate of the card would be stuck unless I refresh the page. For example, see below.

I've circled the uptime sensors, you can see the actual uptime sensor (top of page) does update every 2 minutes (my refresh rate) but the card is still stuck on when the page first loaded.

image

running 1.2.9.1. I don't think this was happening pre-1.2.9.1 and it was live updating

thanks for the integration!

The card always show the title

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

1.3.3

Is this a regression?

Yes. This used to work, but now it doesn't.

Browser and Operating system

Browser: Firefox
OS: Windows

Description of problem

The card always show the title even if you put:

    show_title: false

Errors in Browser Console

No response

Additional information

No response

Show if RPi has pending Reporter Daemon Update

Is your feature request related to a problem? Please describe.

While the card shows the status of the RPi it does not let us know if the Daemon script reporting these details is up-to-date

Describe the solution you'd like

The Daemon reports its current version. In the card, compare the reported version to the available version. Show update to v# (when a new version is available)

Describe alternatives you've considered

The user can always log into the RPi to tell. or can look at the Daemon repo to learn the current version than can click on each card to tell if up to date, but this is a lot of work. Alternatively, the user can just update all RPIs periodically. This indicator is the best solution, tho'

Additional context

Nothing more...

CPU Usage on glance type card

Issue being Addressed

Currently the CPU usage is not displayed on the glance type of the card, however it is being reported by RPi Reporter MQTT2HA Daemon.

Enhancement

Is it possible to display CPU usage, for example 'average % cpu load during prior minute (avg per core)' on glance type card as an additional statistic? If not, is it possible to replace one of the currently displayed parameters with CPU usage?

I'm a newbe to Home Assistant world and still learning everything. I've tried to add a sensor to the yaml configuration of custom:rpi-monitor-card, but cpu usage was not showing :(

Alternatives

n/a

Additional information

No response

name configuration parameter is not used

Checklist:

  • [*] I updated to the latest version available
  • [*] I cleared the cache of my browser

Release with the issue:
V1.2.3
Last working release (if known):

Browser and Operating System:
Safari 13.1.2, OSX 10.15.6

Description of problem:

The name configuration is ignored, no matter what I put in the name field it always shows the FQD of the RPI

Javascript errors shown in the web inspector (if applicable):


Additional information:

CPU usage sensor

It would be nice to have an extra sensor showing CPU usage (next to diskspace and temp)

-Unit of measurement is missing

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

1.4.2

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Browser and Operating system

Browser: Safari
OS: IOS

Description of problem

As HA version later than March 2023 needs units of measurement, I have added

sensor.rpi_hostname_rpi_monitor_hostname:
  friendly_name: Raspberry Pi4
  unit_of_measurement: "y"

into customize.yaml. So, at least, I can avoid a logfile entry at every 5 minutes.
But, maybe, there is a better solution.

And, btw, the degree sign is missing. It says „C“, also to be seen in #49, instead of „°C“, as in the original presentation is shown. I would like to have it back again!

Thanks
Peter

Errors in Browser Console

No response

Additional information

No response

README image link broken when viewed in HACS

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

1.4.2

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Browser and Operating system

Browser: Firefox 122
OS: macOS

Description of problem

Image is not shown properly in HACS readme:

obraz

Image liveCardsV2.png is shown ok (it references image from github), but for newIndicatorsV2.png it tires to load it locally: http://[local-ip]/hacs/repository/DOCs/images/newIndicatorsV2.png. Checked README.md in this repo and both are defined in the similar way - is there additional post-processing of that README.md or sth that makes the first image to work OK (via github) and fails to fix the second one?

BTW, this plugin was installed via HACS. no DOCs/images are present on local/HACS installation.

Update: 3rd image is also broken: http://[local-ip]/hacs/repository/DOCs/images/button-example.png

Errors in Browser Console

none

Additional information

No response

Show Available Upgrades

Is your feature request related to a problem? Please describe.
Being able to monitor if there are any upgrades for the RPi without having to ssh into the Pi to check

Describe the solution you'd like
Be able to list the number of updates available, and have them separated out by system or security

Describe alternatives you've considered
When running Ubuntu you can use the below command to list the number of updates, to which you can then use a command line sensor to pull the data into Home Assistant, however raspbian doesn't have the same ability to do so as easily.

Additional context
custom:multiple-entity-row design I have for a Ubuntu machine
custom:multiple-entity-row card

Cronjob that runs

/usr/lib/update-notifier/apt-check 2>&1 | tee /home/homeassistant/.homeassistant/system_updates.out

and the command line sensors in config.yaml

  - platform: command_line
    name: System Updates
    scan_interval: 86400
    command: "cat /home/homeassistant/.homeassistant/system_updates.out | cut -d ';' -f 1"
  - platform: command_line
    name: Security Updates
    scan_interval: 86400
    command: "cat /home/homeassistant/.homeassistant/system_updates.out | cut -d ';' -f 2"

Unexpected value

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
Latest

Last working release (if known):
Unknown

Browser and Operating System:
RPi 4
Latest Home Assistant in Docker

Description of problem:

All cards have the following:
image

Javascript errors shown in the web inspector (if applicable):

none

Additional information:
Did a git-pull on all the pis for the related MQTT daemon

Colour of free SD card space is reversed.

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

Failing in 1.3.3, working in older version (not sure what I had)

Is this a regression?

Yes. This used to work, but now it doesn't.

Browser and Operating system

Browser: Chrome
OS: Win10

Description of problem

For devices with lots of free space (e.g. ~85% free) on the SD card, the Lovelace card shows a red icon, or a yellow one for slightly fuller devices. Devices with more full cards show blue (e.g. ~33% free).

This seems backwards to me, and it should be fuller devices that show yellow (warning) or red (alert) colouration?

Errors in Browser Console

N/A

Additional information

A cosmetic bug, but caused bit of a shock when I upgraded and saw it !

Custom element doesn't exist: rpi-monitor-card.

Hi,

I just installed lovelace-rpi-monitor-card and restarted home assistant but there is no way to use it:
If I go to dashboard->edit->add card->manual and I paste:
type: 'custom:rpi-monitor-card' entity: sensor.mirpisensor
I get Custom element doesn't exist: rpi-monitor-card.

I don't know what I'm missing.
RPI4-2GB, HA 2022.10.5- Supervisor 2022.10.0 - Frontend 20221010.0 - latest

HA 2023.9.0b0 -Unhandled promise rejection

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

1.4.2

Is this a regression?

No, still works.

Browser and Operating system

Browser: Chrome
OS: Windows 10

Description of problem

there are some changes coming to HA Core 2023.9.0 where they changed the logging for frontend integrations. lovelace-rpi-monitor-card comes up as having an issue. However, the card is still working normally.

Logger: frontend.js.latest.202308310
Source: components/system_log/__init__.py:269
First occurred: 12:59:18 PM (19 occurrences)
Last logged: 1:03:59 PM

Unhandled promise rejection from Chrome WebView 114.0.5735.220 on Android 9 "http://192.168.1.81:8123/hacsfiles/lovelace-card-tools/card-tools.js?hacstag=16140332811"
Unhandled promise rejection from Chrome WebView 114.0.5735.220 on Android 9 "http://192.168.1.81:8123/hacsfiles/numberbox-card/numberbox-card.js?hacstag=304967918414"
Unhandled promise rejection from Chrome WebView 114.0.5735.220 on Android 9 "http://192.168.1.81:8123/hacsfiles/mini-media-player/mini-media-player-bundle.js?hacstag=1485208381165"
Unhandled promise rejection from Chrome 116.0.0.0 on Windows 10 TypeError: Cannot destructure property 'scrollTop' of 'this._scrollerController' as it is null. scrollTop (src/Virtualizer.ts:741:13) _correctScrollError (src/Virtualizer.ts:546:9) _finishDOMUpdate (src/Virtualizer.ts:538:9) _updateDOM (src/Virtualizer.ts:603:11) _handleLayoutMessage (src/Virtualizer.ts:441:43) _hostSink (src/layouts/shared/BaseLayout.ts:478:9) _sendStateChangedMessage (src/layouts/shared/BaseLayout.ts:364:9) _reflow (src/layouts/flow.ts:491:10) _reflow (src/layouts/shared/BaseLayout.ts:257:11) reflowIfNeeded (src/Virtualizer.ts:563:20)
Unhandled promise rejection from Chrome 116.0.0.0 on Windows 10 TypeError: Cannot read properties of undefined (reading 'state') CanvasGaugeCard.updated (/hacsfiles/canvas-gauge-card/canvas-gauge-card.js:273:97) CanvasGaugeCard._$AE (/hacsfiles/canvas-gauge-card/canvas-gauge-card.js:34:5212) CanvasGaugeCard.performUpdate (/hacsfiles/canvas-gauge-card/canvas-gauge-card.js:34:4991) CanvasGaugeCard.scheduleUpdate (/hacsfiles/canvas-gauge-card/canvas-gauge-card.js:34:4572) CanvasGaugeCard._$Ej (/hacsfiles/canvas-gauge-card/canvas-gauge-card.js:34:4480)

Errors in Browser Console

No response

Additional information

No response

The values appears and disappears

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
v1.2.8

Last working release (if known):
v1.2.5

Browser and Operating System:
All & Ubuntu

Description of problem:
The values appears during 1 second and disappears later.

Javascript errors shown in the web inspector (if applicable):


Additional information:

imagen

  - type: custom:rpi-monitor-card
    entity: sensor.rpi_monitor
    card_style: glance
    temp_scale: C
    show_title: false
    show_os_age: false
    show_update_age: false
    name: States
    fs_severity:
      - color: Green
        from: 0
        to: 70
      - color: Orange
        from: 71
        to: 80
      - color: Red
        from: 81
        to: 100
    temp_severity:
      - color: Green
        from: 0
        to: 50
      - color: Orange
        from: 51
        to: 70
      - color: Red
        from: 71
        to: 200

Seeing "NaN mins ago" while card is just starting up / after HA restart

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

v1.3.4 - likely introduced with code update of card age calc

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Browser and Operating system

Browser: N/A
OS: N/A

Description of problem

The card is showing the unknown values are being retrieved while HA is just setting up.

The Card should be suppressing this output until HA is completely set up.

NOTE: This is also true for the values found in the Daemon update field in the card... again, suppress this too until the card backing state is known.

WORKAROUND: refresh the card after HA completes its setup.

Errors in Browser Console

No response

Additional information

No response

Disk utiliztion reporting incorrectly.

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

1.7.4

Is this a regression?

Yes. This used to work, but now it doesn't.

Browser and Operating system

Browser: Firefox
OS: Windows 10 pro

Description of problem

I updated the script on one of my pi's and now it is reporting 93% disk full. It is not that full as it has 128g of disk.

Errors in Browser Console

No response

Additional information

I have rebooted both the pi and HA, no change.
pifull
pifull

Font Color Adjustments

How / where do I go to adjust the font color for the Monitor Card? I use a dark theme. The attribute names all show up in white, but the values all show up in dark grey, which against a dark background are almost illegible. I'd like to manually set them to something brighter. Thanks!

ValueError: C is not a recognized temperature unit

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:
core-2022.3.2
Last working release (if known):
not sure - probably 2022.2.x
Browser and Operating System:

Safari on MacOS
Description of problem:

I get a very frequent message saying 'ValueError: C is no a recognised temperature unit' although the Lovelace display looks correct, giving the temperature in C, so the problem may be just cosmetic, but odd.
Occurs for all of my RPIs except for the one running Home Assistant.
Home Assistant runs on Bullseye on RPi4. Others run on Bullseye and Buster including RPi 3b, RPi 0, RPi 4.

Typical Lovelace card setup:

type: conditional
conditions:

  • entity: sensor.rpi_monitor_applepi
    state_not: unavailable
    card:
    type: custom:rpi-monitor-card
    card_style: glance
    entity: sensor.rpi_monitor_applepi
    fs_severity:
    • color: Green
      from: 0
      to: 25
    • color: Orange
      from: 26
      to: 50
    • color: Red
      from: 51
      to: 100

The following is in the logs:

Logger: homeassistant.helpers.event
Source: util/temperature.py:44
First occurred: 16:56:56 (22 occurrences)
Last logged: 17:10:20

Error while processing state change for sensor.rpi_temp_blackcurrantpi
Error while processing state change for sensor.rpi_temp_applepi
Error while processing state change for sensor.rpi_temp_damsonpi
Error while processing state change for sensor.rpi_temp_bananapi
Error while processing state change for sensor.rpi_temp_rhubarbpi
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/helpers/event.py", line 273, in _async_state_change_dispatcher
hass.async_run_hass_job(job, event)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/core.py", line 530, in async_run_hass_job
cast(Callable[..., _R], hassjob.target)(*args)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/homekit/accessories.py", line 413, in async_update_event_state_callback
self.async_update_state_callback(event.data.get("new_state"))
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/homekit/accessories.py", line 435, in async_update_state_callback
self.async_update_state(new_state)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/homekit/type_sensors.py", line 120, in async_update_state
temperature = temperature_to_homekit(temperature, unit)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/components/homekit/util.py", line 389, in temperature_to_homekit
return round(temp_util.convert(temperature, unit, TEMP_CELSIUS), 1)
File "/srv/homeassistant/lib/python3.9/site-packages/homeassistant/util/temperature.py", line 44, in convert
raise ValueError(UNIT_NOT_RECOGNIZED_TEMPLATE.format(from_unit, TEMPERATURE))
ValueError: C is not a recognized temperature unit.
Javascript errors shown in the web inspector (if applicable):


Additional information:

Not in HACS anymore

Can't find the repo in HACS?

Have installed manually just pointing out it.

Not Get correct CPU Temperature

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Description of problem:

Not Getting correct CPU Temperature
Screenshot_2

I have an RPI4 4GB running debian 10 aarch64

Not following coloring of selected themes.

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

Latest

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Browser and Operating system

Browser: Companion App.
OS: Android 14 / Pixel 8 Pro.

Description of problem

i used a theme before an no issue was noticed, but now when i tried to download other themes, i only get "darkgrey/black" and white card. not following theme selection at all.

Screenshot_20240429-114852.png

Improve Card Layout

Would it be possible to add the ability to custom order the various displayed attributes?

Failing that, could you make it so that both the full card and the glance card display the monitored attributes in the same order?

Thanks.

Fix card display when sensor "unavailable"

Checklist:

  • I updated to the latest version available
  • I cleared the cache of my browser

Release with the issue:

Latest

Last working release (if known):

None

Browser and Operating System:

chrome, HA on raspberry pi

Description of problem:

Card has gunk showing all over when lost sensor

Javascript errors shown in the web inspector (if applicable):

n/a

Additional information:

none

On click behavior from bar to chart

Issue being Addressed

i am using the glance card to display the RPI details.

type: 'custom:rpi-monitor-card'
entity: sensor.rpi_monitor_hostname
card_style: glance
temp_scale: f

whenever i click on any of the values i get the bar details.

Enhancement

Change to on-click behavior to show the chart

Example as shown in screenshot using a HAS OS sensor.

Screenshot (3)

Alternatives

use as is

Additional information

No response

Card is correcting for bad sensor value, latest daemon fixes the value. Card needs this correction removed.

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

Failing in latest due to Daemon fix of sensor

Is this a regression?

Yes. This used to work, but now it doesn't.

Browser and Operating system

Browser: N/A
OS: N/A

Description of problem

Correction for the disk used sensor was inadvertently added to the card, let's fix it.

Errors in Browser Console

No response

Additional information

No response

Card data arrived => Warning if greater than 3 minutes / default value from RPi-Reporter-MQTT2HA-Daemon is 5 minutes

Issue being Addressed

The card data arrived timestamp changes regulairly to warning (aka orange).

grafik

The default value from the RPi-Reporter-MQTT2HA-Daemon is 5 minutes.

Enhancement

Adjust the threshold in the lovelace-rpi-monitor-card also to 5 (or better 6) minutes.

Alternatives

Make the value (_colorReportPeriodsAgoDefault) adjustable for the user.

Additional information

No response

Different color for alerts

The yellow is verry difficult to see when temp is high, could this also be changed to the orange or red?
image

tnx

No custom card after update Home Assistant 2021.1.4

After this security update I get Custom element doesn't exist: rpi-monitor-card. Installed with HACS and nothing changed in the configuration. Neither a error in the logs to be found.

2021-01-17 18:18:16 DEBUG (MainThread) [custom_components.hacs] <Integration custom-components/remote_homeassistant> All (0) checks passed
2021-01-17 18:18:16 INFO (MainThread) [custom_components.hacs] <Integration custom-components/remote_homeassistant> Registration completed

WIP releases showing up in my HACS feed

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

1.8.4

Is this a regression?

No or unsure. This never worked, or I haven't tried before.

Browser and Operating system

n/a

Description of problem

HACS is getting spammed with WIP releases that are obviously meant as beta releases, please consider marking the releases as pre-release on GitHub, as that makes HACS not show the releases to users.

Errors in Browser Console

No response

Additional information

No response

Some unknown new value appears on the card after update

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

1.4.1

Is this a regression?

Yes. This used to work, but now it doesn't.

Browser and Operating system

Browser: Firefox latest
OS: Win 10 full up to date

Description of problem

Some new value appears on the card after today's update

Don't know, what it means and if it's intentional

afbeelding

Errors in Browser Console

No response

Additional information

Thank you for looking in to it ;-)

disk use % not reporting correctly since 1.7.4

and have you...

  • I updated to the latest version available
  • I cleared the cache of my browser

Version of RPi Monitor Card

Failling in 1.74, working in 1.72

Is this a regression?

Yes. This used to work, but now it doesn't.

Browser and Operating system

Chrome/ Home Assistant

Hey the latest Dameon Update to 1.7.4 now makes a bogus disk use number in the HA lovelace card. The sensor is correct, so im thinking there is something in the card that needs to be tweaked. thanks

image

thanks!

Description of problem

incorrect disk use number on card only.

Errors in Browser Console

No response

Additional information

No response

German Language support

Issue being Addressed

Hi, can you add a German translation?

Enhancement

Hi, can you add a German translation?

Alternatives

Hi, can you add a German translation?

Additional information

No response

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.