Skip to content

Commit

Permalink
Add two more home assistant config parameters (#15)
Browse files Browse the repository at this point in the history
- Allows optionally using negative numbers
- Allow sending each phase individually instead of summing them up
  • Loading branch information
tomquist authored Jan 25, 2025
1 parent ef06a70 commit 0ba5167
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ha_addon/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@ options:
power_input_alias: "sensor.current_power_in"
power_output_alias: ""
poll_interval: 1
disable_absolute_values: false
disable_sum_phases: false
schema:
power_input_alias: str
power_output_alias: str?
poll_interval: int(1,)
poll_interval: int(1,)
disable_absolute_values: bool
disable_sum_phases: bool
2 changes: 2 additions & 0 deletions ha_addon/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ CONFIG="/app/config.ini"
{
echo "[GENERAL]"
echo "POLL_INTERVAL=$(bashio::config 'poll_interval')"
echo "DISABLE_ABSOLUTE_VALUES=$(bashio::config 'disable_absolute_values')"
echo "DISABLE_SUM_PHASES=$(bashio::config 'disable_sum_phases')"
echo ""
echo "[HOMEASSISTANT]"
echo "IP=supervisor"
Expand Down

0 comments on commit 0ba5167

Please sign in to comment.