-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
1,050 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 1.2.0 | ||
current_version = 1.3.0 | ||
commit = True | ||
tag = False | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,21 @@ | ||
## Testing Unreleased Versions in Home Assistant Supervisor | ||
The Home Assistant Supervisor system makes most things pretty simple. Testing development releases or your own code fixes is mildly more difficult. The following instructions should help. | ||
|
||
1. Uninstall the Insteon-MQTT addon. Your config files are saved in `/config/insteon-mqtt` so you should be okay. But you can back them up ahead of time just in case. | ||
1. Uninstall the Insteon-MQTT addon. Your config files for the repository installed addon are saved in `/config/` (which can be found at '/addons_configs/83fc19e1_insteon-mqtt/' within VSCode or SSH Addon). If you install the addon locally, as described below, the configs for the locally installed addon will be at: | ||
`/addons_configs/local_insteon-mqtt/` within VSCode or SSH Addon). | ||
2. SSH into Home Assistant using the SSH addon | ||
3. cd to `/addons` | ||
4. run `git clone https://github.com/TD22057/insteon-mqtt.git` You can replace the repository with your own if you like. | ||
5. cd `insteon-mqtt` | ||
6. Use git to checkout the branch you desire. | ||
7. When you are ready to install on Home Assistant you will have to do the following: | ||
- edit `config.json` | ||
- edit `config.json` | ||
- remove the entire line that reads: `"image": "td22057/{arch}-insteon-mqtt",` | ||
- edit the line that reads: `"version": "0.8.1",` to be something sensible, I use dates so: `"version": "2021.03.23.0",` | ||
8. You may have to use `git stash` and `git pop` when pulling in changes, particularly after a release has occured. This is because both branches will have changed the version line. | ||
9. Go back into your Home Assistant instance and go to `Supervisor->Addon Store` | ||
10. In the menu on the top right click `Reload` | ||
11. You should now see the Insteon-MQTT addon listed as a `Local Add-on` install that, it may take a few minutes to compile locally. | ||
12. In the future to update your local version, you have to edit the `config.json` to trigger a new release, then run the `Reload` command in the store to see the new version. | ||
12. You will have to copy your InsteonMQTT `config.yaml` file to the local config directory (which can be found at '/addons_configs/local_insteon-mqtt/' within VSCode or SSH Addon) | ||
13. In the future to update your local version, you have to edit the `config.json` to trigger a new release, then run the `Reload` command in the store to see the new version. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
InsteonMQTT Config Files Have Moved!!! | ||
|
||
Your config files were copied from this location on <<MIGRATION_DATE>> | ||
|
||
If InsteonMQTT is operating correctly, you may delete these files. | ||
|
||
|
||
Config files can now be found at: | ||
|
||
WITHIN Visual Code Addon or SSH Addon: | ||
|
||
/addons_configs/83fc19e1_insteon-mqtt | ||
|
||
WITHIN InsteonMQTT Addon: | ||
|
||
/config/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,35 @@ | ||
#!/bin/sh | ||
|
||
/bin/mkdir /config/insteon-mqtt/ | ||
/bin/cp /opt/insteon-mqtt/config-example.yaml /config/config.yaml.default | ||
|
||
/bin/cp /opt/insteon-mqtt/config-example.yaml /config/insteon-mqtt/config.yaml.default | ||
# Migrate add-on data from the Home Assistant config folder, | ||
# to the add-on configuration folder. | ||
# We add a file to the old directory so that hopefully a user | ||
# doesn't get confused in the future. | ||
|
||
if [ ! -f /config/insteon-mqtt/config.yaml ]; then | ||
|
||
if [ ! -f /config/config.yaml ] && [ -f /homeassistant/insteon-mqtt/config.yaml ]; then | ||
mv /homeassistant/insteon-mqtt/* /config/ || \ | ||
{ echo "Failed to migrate InsteonMQTT configuration"; exit 1; } | ||
# If user was using default data and log locations, edit them to match the new location | ||
sed -i "s|storage: '\{0,1\}\"\{0,1\}/config/insteon-mqtt/data'\{0,1\}\"\{0,1\}|storage: /config/data|" /config/config.yaml | ||
sed -i "s|file: /config/insteon-mqtt/insteon_mqtt.log|file: /config/insteon_mqtt.log|" /config/config.yaml | ||
/bin/cp /opt/insteon-mqtt/hassio/CONFIG-MOVED.txt /homeassistant/insteon-mqtt/CONFIG-MOVED.txt | ||
sed -i "s/<<MIGRATION_DATE>>/$(date)/g" /homeassistant/insteon-mqtt/CONFIG-MOVED.txt | ||
echo "InsteonMQTT configuration successfully migrated from /config/insteon-mqtt." | ||
fi | ||
|
||
if [ ! -f /config/config.yaml ]; then | ||
echo "Welcome to InsteonMQTT!" | ||
echo "Creating your initial config.yaml file." | ||
/bin/cp /config/insteon-mqtt/config.yaml.default /config/insteon-mqtt/config.yaml | ||
sed -i "s/#storage: 'data'/storage: '\/config\/insteon-mqtt\/data'/" /config/insteon-mqtt/config.yaml | ||
sed -i "s/#file: \/var\/log\/insteon_mqtt.log/file: \/config\/insteon-mqtt\/insteon_mqtt.log/" /config/insteon-mqtt/config.yaml | ||
echo "Please edit the file /config/insteon-mqtt/config.yaml" | ||
/bin/cp /config/config.yaml.default /config/config.yaml \ | ||
|| echo "Unable to create initial InsteonMQTT config.yaml file"; exit 1; | ||
sed -i "s|storage: 'data'|storage: /config/data|" /config/config.yaml | ||
sed -i "s|#file: /var/log/insteon_mqtt.log|file: /config/insteon_mqtt.log|" /config/config.yaml | ||
echo "Please define the required settings in the file /config/config.yaml" | ||
echo "(which can be found at '/addons_configs/83fc19e1_insteon-mqtt/config.yaml'" | ||
echo "within VSCode or SSH Addon)." | ||
echo "Then you can start InsteonMQTT." | ||
else | ||
python3 /opt/insteon-mqtt/hassio/start.py /config/insteon-mqtt/config.yaml start | ||
python3 /opt/insteon-mqtt/hassio/start.py /config/config.yaml start | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.