Skip to content

Commit

Permalink
Merge pull request #26 from fraizy22/main
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
fraizy22 authored Nov 10, 2022
2 parents 0033496 + cdac3eb commit 1241723
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
1 change: 1 addition & 0 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"name": "Klyqa",
"content_in_root": true
}
40 changes: 33 additions & 7 deletions install_on_virtualbox.bash
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,41 @@ sudo qemu-nbd -c $dev $vdi
tmp=$(mktemp -d)
sudo mount ${dev}p8 $tmp

(cd $tmp/supervisor/homeassistant; mkdir -p custom_components/ && cd custom_components
rm -rf klyqa
git clone https://github.com/klyqa/home-assistant-integration klyqa
# wget -O - https://get.hacs.xyz | bash -
)
error=false

(cd $tmp/supervisor/homeassistant && mkdir -p custom_components
rm -rf custom_components/klyqa
printf "Do you want to install Klyqa Home Assistant Integration directly or managed via Home Assistant Community Store"
printf " (HACS, you get update hints on new releases on the Klyqa Integration from the Github repository with HACS) [k/H] ? "
read x
if [ "$x" = "k"]; then
cd custom_components
git clone https://github.com/klyqa/home-assistant-integration klyqa
echo
echo "Installation of Klyqa integration finished."
echo "When you have started the virtualbox Home Assistant Machine and went to http://homeassistant.local:8123/ and setted up your Home Assistant,"
echo "please go to Configuration > Devices & Services > + Add Integration > enter \"Klyqa\" and add the Integration."
elif [ "$x" = "H" ] || [ -z "$x" ]; then
wget -O - https://get.hacs.xyz | bash - || { echo "Error during HACS installation."; exit 1; }
echo
echo "Installation of HACS finished."
echo "When you have started the virtualbox Home Assistant Machine and went to http://homeassistant.local:8123/ and setted up your Home Assistant,"
echo "please go to Configuration > Devices & Services > + Add Integration > enter \"HACS\" and add the Integration."
echo "You should have a HACS tab in the left bar then, click there, go to Integrations and on the right top hit the three dot Menu and click on add"
echo " custom repository. There enter: \"https://github.com/klyqa/home-assistant-integration\" and Category \"Integration\"."
echo "If it's added to the listed repositories, you close the dialog and click on the right bottom on search and download from repositories."
echo "Search there for Klyqa and add it. Restart Home Assistant."
echo "After installation you should be able to add the klyqa integration in Configuration > Devices & Services > + Add Integration > \"Klyqa\"."

fi
) || error=true

umount $tmp
sudo qemu-nbd -d ${dev}

echo "Please look on the home assistant virtualbox installation configuration to set the right settings for the virtualbox."
echo "The link to look might be: https://www.home-assistant.io/installation/linux"
if ! $error; then
echo
echo "Please look on the home assistant virtualbox installation configuration to set the right settings for the virtualbox machine."
echo "The link to look might be: https://www.home-assistant.io/installation/linux"
fi

0 comments on commit 1241723

Please sign in to comment.