Getting Started
For now1 a single executable is provided. You can download it from the GitHub Releases page or use the direct links below.
-
Download and extract the archive and place the ubihome executable in a directory of your choice.
Devices Download Target Any Linux TAR Link x86_64-unknown-linux-musl Raspberry Pi 3 TAR Link armv7-unknown-linux-musleabi Raspberry Pi Zero 2 TAR Link arm-unknown-linux-musleabi Terminal window # You might have to use a different link from the table above depending on your device typecurl -L -o ubihome.tar.gz https://github.com/UbiHome/UbiHome/releases/download/v0.14.0/ubihome-Linux-musleabi-armv7.tar.gztar xvzf ./ubihome.tar.gz -
Edit the configuration file
config.yamlin the same directory as the executable. Example:config.yaml ubihome:name: New Awesome UbiHome Deviceapi:encryption:key:shell:button:- platform: shellid: my_buttonname: 'Write Hello World'command: "echo 'Hello World!' >> test.log"sensor:- platform: shellname: 'RAM Usage'id: ram_usageicon: mdi:memorystate_class: 'measurement'unit_of_measurement: '%'update_interval: 30scommand: |-free | grep Mem | awk '{print $3/$2 * 100.0}' -
Try it out:
Terminal window ./ubihome runUbiHome - 0.14.0LogDirectory: /home/codespace/.local/shareConfig file path: /workspaces/ubihome/config.yamlBinary Sensor 'bluetooth_connected' output: falseSensor 'ram_usage' output: 38.3144Button 'my_button' pressed.Command executed successfully with no output.# End the process with ctrl+c -
You should be able to see your device in Home Assistant now.
-
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-pathflag 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:
./ubihome uninstall-
Download and extract the archive and place the ubihome executable in a directory of your choice.
Device Download Target Windows 11 ZIP Link x86_64-pc-windows-msvc Terminal window Invoke-WebRequest -OutFile ubihome.zip -Uri https://github.com/UbiHome/UbiHome/releases/download/v0.14.0/ubihome-Windows-msvc-x86_64.zipExpand-Archive -Force ubihome.zip ./ -
Edit the configuration file
config.yamlin the same directory as the executable. Example:config.yaml ubihome:name: New Awesome UbiHome Deviceapi:encryption:key:shell:button:- platform: shellid: my_buttonname: 'Write Hello World'command: "echo 'Hello World!' >> test.log"sensor:- platform: shellname: 'RAM Usage'id: ram_usageicon: mdi:memorystate_class: 'measurement'unit_of_measurement: '%'update_interval: 30scommand: |-Get-WmiObject Win32_OperatingSystem -Property * | % {([math]::Round(($_.FreePhysicalMemory)/$_.totalvisiblememorysize,2))} -
Try it out:
Terminal window ./ubihome.exe runUbiHome - 0.14.0LogDirectory: /home/codespace/.local/shareConfig file path: /workspaces/UbiHome/config.yamlBinary Sensor 'bluetooth_connected' output: falseSensor 'ram_usage' output: 38.3144Button 'my_button' pressed.Command executed successfully with no output.# End the process with ctrl+c -
You should be able to see your device in Home Assistant now.
-
To persistently run the executable install it as a service:
Press
Windows + X + Afor the admin shell.Terminal window ./ubihome.exe 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? (C:\Program Files\ubihome)If you do this more often you can add the
--install-pathflag 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:
./ubihome.exe uninstall-
Download and extract the archive and place the ubihome executable in a directory of your choice.
Device Download Target MacOS (Intel) TAR Link x86_64-apple-darwin MacOS (Apple Silicon / M series) TAR Link aarch64-apple-darwin Terminal window # You might have to use a different link from the table above depending on your device typecurl -L -o ubihome.tar.gz https://github.com/UbiHome/UbiHome/releases/download/v0.14.0/ubihome-macos-aarch64.tar.gztar xvzf ./ubihome.tar.gz -
Edit the configuration file
config.yamlin the same directory as the executable.config.yaml ubihome:name: New Awesome UbiHome Deviceapi:# encryption:# key: # Generate here: https://ubihome.github.io/features/connectivity/native_api.htmlshell:button:- platform: shellid: my_buttonname: 'Write Hello World'command: "echo 'Hello World!' >> test.log"sensor:- platform: shellname: 'RAM Usage'id: ram_usageicon: mdi:memorystate_class: 'measurement'unit_of_measurement: '%'update_interval: 30scommand: |-free | grep Mem | awk '{print $3/$2 * 100.0}' -
Try it out:
Terminal window ./ubihome runUbiHome - 0.14.0LogDirectory: /home/codespace/.local/shareConfig file path: /workspaces/ubihome/config.yamlBinary Sensor 'bluetooth_connected' output: falseSensor 'ram_usage' output: 38.3144Button 'my_button' pressed.Command executed successfully with no output.# End the process with ctrl+c -
You should be able to see your device in Home Assistant now.
-
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-pathflag 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:
./ubihome uninstallFootnotes
Section titled “Footnotes”-
This will change in the future to allow for custom compilation for modular builds and custom extensions. ↩