ironsheep / lovelace-rpi-monitor-card Goto Github PK
View Code? Open in Web Editor NEWA Raspberry Pi status display Card for Home Assistant Lovelace
License: MIT License
A Raspberry Pi status display Card for Home Assistant Lovelace
License: MIT License
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...
Checklist:
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:
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:
Failling in 1.74, working in 1.72
Yes. This used to work, but now it doesn't.
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
thanks!
incorrect disk use number on card only.
No response
No response
1.4.2
No or unsure. This never worked, or I haven't tried before.
Browser: Safari
OS: IOS
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
No response
No response
Checklist:
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
Checklist:
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:
1.4.1
Yes. This used to work, but now it doesn't.
Browser: Firefox latest
OS: Win 10 full up to date
Some new value appears on the card after today's update
Don't know, what it means and if it's intentional
No response
Thank you for looking in to it ;-)
The card data arrived timestamp changes regulairly to warning (aka orange).
The default value from the RPi-Reporter-MQTT2HA-Daemon is 5 minutes.
Adjust the threshold in the lovelace-rpi-monitor-card also to 5 (or better 6) minutes.
Make the value (_colorReportPeriodsAgoDefault) adjustable for the user.
No response
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!
1.3.3
Yes. This used to work, but now it doesn't.
Browser: Firefox
OS: Windows
The card always show the title even if you put:
show_title: false
No response
No response
Failing in latest due to Daemon fix of sensor
Yes. This used to work, but now it doesn't.
Browser: N/A
OS: N/A
Correction for the disk used sensor was inadvertently added to the card, let's fix it.
No response
No response
Our developer noticed this. Remembering here so we can fix it.
Total memory and %age used is available in the monitoring script output. Is there a way to customize the RPi custom card to pick and choose what sensor values to display vs. the defaults
Latest
No or unsure. This never worked, or I haven't tried before.
Browser: Companion App.
OS: Android 14 / Pixel 8 Pro.
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.
1.8.4
No or unsure. This never worked, or I haven't tried before.
n/a
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.
No response
No response
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.
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!
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.
Change to on-click behavior to show the chart
Example as shown in screenshot using a HAS OS sensor.
use as is
No response
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
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"
Currently the CPU usage is not displayed on the glance type of the card, however it is being reported by RPi Reporter MQTT2HA Daemon.
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 :(
n/a
No response
Can't find the repo in HACS?
Have installed manually just pointing out it.
Our developer noticed this. Remembering here so we can fix it.
1.4.2
No or unsure. This never worked, or I haven't tried before.
Browser: Firefox 122
OS: macOS
Image is not shown properly in HACS readme:
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
none
No response
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
Hi,
when the linux has pending updates appears a label/counter in the card.
For me this notification it's it can be improved.
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
Following these steps, put the new version notification in another nicer place.
No response
v1.4.2 (I don't know, if it worked with a previous version sind I just started using ist)
No or unsure. This never worked, or I haven't tried before.
Browser: Firefox 111.0 (64 bit) / Microsoft Edge
OS: Win 10 Pro 64 bit
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.
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.
Best regards
Christian
No response
No response
Any help with this the home Assistant is in docker container and the hostname is Home Assistant how to get Raspberry Pi hostname from the container i try with the original hostname of the pi and didn't work.
Edit: I try with the hostname and the error is same. The sensor is not discovered.
It would be nice to have an extra sensor showing CPU usage (next to diskspace and temp)
Checklist:
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:
- 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
1.7.4
Yes. This used to work, but now it doesn't.
Browser: Firefox
OS: Windows 10 pro
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.
No response
Checklist:
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:
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
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.
v1.3.4 - likely introduced with code update of card age calc
No or unsure. This never worked, or I haven't tried before.
Browser: N/A
OS: N/A
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.
No response
No response
Failing in 1.3.3, working in older version (not sure what I had)
Yes. This used to work, but now it doesn't.
Browser: Chrome
OS: Win10
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?
N/A
A cosmetic bug, but caused bit of a shock when I upgraded and saw it !
I saw that behind the card, the external hdd storage is visible. Can you show it on the lovelace card ?
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
1.4.2
No, still works.
Browser: Chrome
OS: Windows 10
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)
No response
No response
Hi, can you add a German translation?
Hi, can you add a German translation?
Hi, can you add a German translation?
No response
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.