Skip to content

Getting Started

For now1 a single executable is provided. You can download it from the GitHub Releases page or use the direct links below.

  1. Download and extract the archive and place the ubihome executable in a directory of your choice.

    DevicesDownloadTarget
    Any LinuxTAR Linkx86_64-unknown-linux-musl
    Raspberry Pi 3TAR Linkarmv7-unknown-linux-musleabi
    Raspberry Pi Zero 2TAR Linkarm-unknown-linux-musleabi
    Terminal window
    # You might have to use a different link from the table above depending on your device type
    curl -L -o ubihome.tar.gz https://github.com/UbiHome/UbiHome/releases/download/v0.14.0/ubihome-Linux-musleabi-armv7.tar.gz
    tar xvzf ./ubihome.tar.gz
  2. Edit the configuration file config.yaml in the same directory as the executable. Example:

    config.yaml
    ubihome:
    name: New Awesome UbiHome Device
    api:
    encryption:
    key:
    shell:
    button:
    - platform: shell
    id: my_button
    name: 'Write Hello World'
    command: "echo 'Hello World!' >> test.log"
    sensor:
    - platform: shell
    name: 'RAM Usage'
    id: ram_usage
    icon: mdi:memory
    state_class: 'measurement'
    unit_of_measurement: '%'
    update_interval: 30s
    command: |-
    free | grep Mem | awk '{print $3/$2 * 100.0}'
  3. Try it out:

    Terminal window
    ./ubihome run
    UbiHome - 0.14.0
    LogDirectory: /home/codespace/.local/share
    Config file path: /workspaces/ubihome/config.yaml
    Binary Sensor 'bluetooth_connected' output: false
    Sensor 'ram_usage' output: 38.3144
    Button 'my_button' pressed.
    Command executed successfully with no output.
    # End the process with ctrl+c
  4. You should be able to see your device in Home Assistant now.

  5. To persistently run the executable install it as a service:

    Terminal window
    sudo ./ubihome install
    # The CLI will ask you where to install it. (You can just hit enter to install it in the default location)
    ? Where do you want to install UbiHome? (/usr/bin/ubihome)

    If you do this more often you can add the --install-path flag to the command to specify the path for the installation. Instead of the CLI asking for it.

If you want to uninstall UbiHome you can run the following command:

Terminal window
./ubihome uninstall
  1. This will change in the future to allow for custom compilation for modular builds and custom extensions.