Is it possible to update the hass using the button from the dashboard?
@CentralCommand Is there any way to format the output generated by
command: 'ssh -o UserKnownHostsFile=/config/.ssh/known_hosts <INSERT HOST USERNAME>@<INSERT HOST ADDRESS> -i /config/.ssh/id_ed25519 ''sudo apt update > /dev/null && sudo apt list --upgradeable'' | jq --raw-input --slurp ''{ "packages": split("\n") | del(.[] | select(. == "" or . == "Listing...")) }'''
so the content of packages
is not
package 1, package 2, package 3
but e. g.
package 1,\n package 2,\n package3
?
This way I could probably format the output using a proper card (looking at https://github.com/iantrich/list-card currently).
At the end I want a proper visualization of that data, as what I currently use is just horrible for reading:
- type: custom:entity-attributes-card
title: ''
heading_name: ' '
heading_state: Verfügbare Paket-Updates [Server]
filter:
include:
- key: sensor.updates_server_host.packages
name: ' '
In case you know another proper card for this job: thanks a lot in advance!
Hi, since the Supervisor update to 2023.4, the Supervisor update function is not working anymore. The code below has worked perfectly during the last years. Does anybody experience the same issue?
- platform: command_line
name: system_supervisor_updates
command: 'curl http://supervisor/supervisor/info -H "Authorization: Bearer $(printenv SUPERVISOR_TOKEN)" | jq ''{"newest_version":.data.version_latest,"current_version":.data.version,"update_available":.data.update_available,"addons":[.data.addons[] | select(.update_available)]}'''
value_template: "{{ value_json.addons | length }}"
unit_of_measurement: pending update(s)
json_attributes:
- update_available
- newest_version
- current_version
- addons
because they have made it easier, with a blueprint, see topic start.
This was a bug affecting command line sensors intoruducrd in HA Core 2023.4.0.
It’s been fixed in 2023.4.1.
Instead of selecting specific add-ons, could there be an option to automatically (and dynamically) detect all of them? So if/when I add add-ons in the future they are automatically included in the alert?
does anyone know why the audio info is failing now?
Hello, I hope someone can help me, because I unfortunately no longer know what to do and also on the Internet just can not find a useful answer.
I am running an SSH command for updates on a Raspi and want to check with a binary sensor if the command is running or not. For e.g.:
binary_sensor:
- platform: command_line
name: Update
command: ssh test@test 'sudo apt update && sudo apt upgrade -Y'
And from here on I just don’t know what to do to make the sensor check if the command is executed or not.
Did you find out already?
no. still not working and no idea how to fix it
Note that YAML for command_line
is flipping around. Instead of:
binary_sensor:
- platform: command_line
It is like:
command_line:
- binary_sensor:
Hey hi, since a while I get:
“Automation is unavailable”.
When I try to change the automation:
“Message malformed: unknown device”.
My yaml:
alias: Udate Notification
description: >-
https://community.home-assistant.io/t/update-notifications-core-hacs-supervisor-and-addons-now-a-blueprint/182295
use_blueprint:
path: mdegat01/update_notifications.yaml
input:
reminder_hours: "3"
update_entities:
- update.home_assistant_core_update
- update.esphome_update
- update.file_editor_update
- update.glances_update
- update.home_assistant_operating_system_update
- update.grafana_update
- update.home_assistant_supervisor_update
- update.influxdb_update
- update.mosquitto_broker_update
- update.mariadb_update
- update.mqtt_explorer_update
- update.node_red_update
- update.samba_backup_update
- update.samba_share_update
- update.sqlite_web_update
- update.traccar_update
- update.z_wave_js_update
- update.studio_code_server_update
- update.ssh_web_terminal_update
mobile_app_device: 7ba2dc2804c0d84f75ad1d3084663c05
send_to_ha: true
Tried to delete the device via gui and reselect does not work.
I see:
But I cannot really find a solution…
What should I do the get it going? What “device id” should I use? Where is that?
What changed?
Is it only me having this issue? Any one else that has this blueprint and still has it running?
It seems something changed. When I select 2 times the same device it works…
if you only have 1, then that’s your problem. That will need 2 the way it’s written after the last core changes.
This seems to be needing to change in the blueprint…
Also I’ve the same issue
My solution was to add the device in the 2nd device as well… don’t ask me why but I got this tip on discord and it worked.
It’s because you can’t have empty device actions in automations anymore. Making blueprints that have optional device actions fail. It’s no longer optional. The owner needs to make a new version, or you need to remove the optional device action from the blueprint, or you just select a second device.
+1 for this
Love this blueprint ! Thx so much for this.
Although it indeed needs update.
I do have 2 questions…
- Do you have ± the same for sensors ? like doors, smoke detectors etc etc
- Is it possible to auto delete the persistent notification if for ex an update has made…, so we dont have to “tick it away” on the home feed card?
- Why does some notifications dont have a title?