Skip to content

Commit

Permalink
Added vclient error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandre-io committed Jan 29, 2023
1 parent ddc83e0 commit c031e69
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
4 changes: 4 additions & 0 deletions vcontrold/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 1.8.1

- Added vclient error handling

## 1.8.0

- Set vcontrol host&port as optional configuration
Expand Down
2 changes: 1 addition & 1 deletion vcontrold/config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config
name: Vcontrol add-on
version: "1.8.0"
version: "1.8.1"
slug: vcontrold
description: Vcontrol add-on
url: "https://github.com/Alexandre-io/homeassistant-vcontrol"
Expand Down
5 changes: 3 additions & 2 deletions vcontrold/rootfs/etc/services.d/vcontrold/run
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,9 @@ do
R='"$R'$i'"'
fi

echo 'mosquitto_pub -h $MQTT_HOST -p $MQTT_PORT -u $MQTT_USER -P $MQTT_PASSWORD -t $MQTT_TOPIC/$C'$i' -m '$R'' >> /etc/vcontrold/2_mqtt.tmpl

echo 'if [ "x$E'$i'" = x ]; then' >> /etc/vcontrold/2_mqtt.tmpl
echo ' mosquitto_pub -h $MQTT_HOST -p $MQTT_PORT -u $MQTT_USER -P $MQTT_PASSWORD -t $MQTT_TOPIC/$C'$i' -m '$R'' >> /etc/vcontrold/2_mqtt.tmpl
echo 'fi' >> /etc/vcontrold/2_mqtt.tmpl
done

# Set device ID
Expand Down

0 comments on commit c031e69

Please sign in to comment.