[ADD] ha_shell_command

This commit is contained in:
Martin 2026-02-10 15:24:29 -05:00
parent ae56716a86
commit 7b742858db

View File

@ -0,0 +1,36 @@
# Add this to your configuration.yaml
shell_command:
# Update MCP Bridge integration from Gitea
update_mcp_bridge: >
curl -fsSL https://www.git.quarantinedstudio.com/mvezina/homeassistant-mcp-bridge/raw/branch/main/quick_install.sh |
GITEA_URL=https://www.git.quarantinedstudio.com
REPO=mvezina/homeassistant-mcp-bridge
bash
# Then create an automation or script to call it:
script:
update_mcp_bridge:
alias: "Update MCP Bridge Integration"
sequence:
- service: shell_command.update_mcp_bridge
- delay:
seconds: 5
- service: system_log.write
data:
message: "MCP Bridge updated. Please restart Home Assistant."
level: warning
- service: persistent_notification.create
data:
title: "MCP Bridge Updated"
message: "The MCP Bridge integration has been updated. Please restart Home Assistant for changes to take effect."
# Optional: Add a button to your dashboard
button:
- type: button
name: Update MCP Bridge
icon: mdi:download
tap_action:
action: call-service
service: script.update_mcp_bridge