36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
# 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 |