Reboot cerbo-gx from home assistant

To anyone,
Is it possible to reboot the cerbo-gx from home assistant?
Thanks!

You can enable ssh in the Cerbo and then use a shell command in HA. You have to create the ssh-keys beforehand,.

shell_command:
  reboot_cerbo: ssh -i /config/.ssh/id_ed25519 -o 'StrictHostKeyChecking=no root@cerbo' /usr/sbin/reboot

Hi,
small typo, you forgot the quote at the end of =no and personnaly i used only one ssh key in HA and i prefer to use the IP instead, so i used this line :

reboot_cerbo: 'ssh root@192.168.1.xx /usr/sbin/reboot'

Thanks, corrected. The stricthostkeychecking is there to overcome the need to log in the correct container and run the ssh-command manually and accept the new hostkey.

With new gui-v2 I do believe there should be a ws://venus.local command to send to reboot a Cerbo in a way Victron is doing via UI Reboot button

Here it is
image

W/__your_system_id___/platform/0/Device/Reboot

Send

{"value":true}

and it should reboot.
You just need to use
image
creds

1 Like

Thank you, it’s work like a charm, if someone need, please found my code about it :

button:
  - name: Reboot Cerbo
    unique_id: victron_Cerbo Reboot
    object_id: victron_Cerbo Reboot
    command_topic: "venus-home/W/xxxx/platform/0/Device/Reboot"
    payload_press: '{"value":true}'
    qos: 0
    retain: false
    entity_category: "config"
    device_class: "restart"
    icon: mdi:restart-alert
    device:
      {
        identifiers: ["Victron Victron Cerbo GX"],
        manufacturer: "Victron Energy",
        model: "Cerbo GX",
        name: "Cerbo GX",
      }
1 Like

Thank you! It works!