Skip to content

fix ESPHome install script - #2059

Merged
mstormi merged 37 commits into
openhab:mainfrom
Oetzi-1987:ESPHome-install-Script
Oct 11, 2025
Merged

fix ESPHome install script#2059
mstormi merged 37 commits into
openhab:mainfrom
Oetzi-1987:ESPHome-install-Script

Conversation

@Oetzi-1987

Copy link
Copy Markdown
Contributor

As already mentioned in the openhab community:
https://community.openhab.org/t/esphome-dashboard-instalation-problems/164237
and Git:
#1994

I fixed the install script, because there was alot of work in the Servicefile and the install script itself.

The Script is tested on RPI4 --> openhabian image / Debian 12 / Ubuntu 24.04 LTS

Also the Documentation is updatet and a hint for ESPHome was added

change the config file path to: "/etc/openhab/ESPHome"
The reason for this is that the files will be backuped with the openhab backup function

@Oetzi-1987 Oetzi-1987 closed this Aug 28, 2025
@Oetzi-1987 Oetzi-1987 reopened this Aug 28, 2025
@Oetzi-1987 Oetzi-1987 closed this Aug 28, 2025
@Oetzi-1987 Oetzi-1987 reopened this Aug 28, 2025
@Oetzi-1987 Oetzi-1987 closed this Aug 28, 2025
@Oetzi-1987 Oetzi-1987 reopened this Aug 28, 2025
@Oetzi-1987 Oetzi-1987 closed this Aug 28, 2025
@Oetzi-1987 Oetzi-1987 reopened this Aug 28, 2025
Oetzi-1987 and others added 3 commits August 31, 2025 11:29
Signed-off-by: Patrick Götz <38883343+Oetzi-1987@users.noreply.github.com>
Oetzi-1987 and others added 10 commits September 5, 2025 13:06
Signed-off-by: Patrick Götz <38883343+Oetzi-1987@users.noreply.github.com>
Signed-off-by: Patrick Götz <goetz.patrick@gmx.de>
Signed-off-by: Patrick Götz <goetz.patrick@gmx.de>
Signed-off-by: Patrick Götz <goetz.patrick@gmx.de>
Signed-off-by: Patrick Götz <goetz.patrick@gmx.det>
Signed-off-by: Patrick Götz <goetz.patrick@gmx.de>
Signed-off-by: Patrick Götz <goetz.patrick@gmx.det>

@mstormi mstormi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As also commented, like with any other 3rd party program, you should be offering Install, Remove and (if required) Setup as separate menu options.
Install and Remove to call install_xxx with arguments, Setup as a separate routine.
See CONTRIBUTING.md

Comment thread docs/openhabian.md Outdated
Comment thread functions/menu.bash Outdated
packages.bats --> the test has not worked correct
openhabian.md --> accepted the suggestion from @mstormi
menu.sh --> accepted the restriction from @mstormi
packages.bash 	--> update varaibla names to restrictions
				--> update script to get 2 options install / remove

Signed-off-by: Patrick Götz <goetz.patrick@gmx.de>
@Oetzi-1987
Oetzi-1987 requested a review from mstormi September 25, 2025 16:12
Comment thread functions/packages.bash
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash Outdated
Comment thread functions/packages.bash
packages.bash
	added check if python3 venv is already installed
	removed many comments in case that the same is wrtitten as echo some lines below
	made an if loop for install / update / remove
	whiptail menu in remove path is removed, all other whiptail messages are only shown if interactive mode is given
update packages.bats
	additional update check

Signed-off-by: Patrick Götz <goetz.patrick@gmx.de>
@Oetzi-1987
Oetzi-1987 requested a review from mstormi October 5, 2025 18:33
mstormi
mstormi previously approved these changes Oct 9, 2025

@mstormi mstormi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok, now LGTM. Thanks!

Comment thread functions/packages.bash Outdated
Signed-off-by: Markus Storm <markus.storm@gmx.net>

@Oetzi-1987 Oetzi-1987 left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changes ok

Thank you!

@mstormi sorry for that question but is my first time with git do i have anything to do in this pull request?

@mstormi

mstormi commented Oct 11, 2025

Copy link
Copy Markdown
Contributor

The DCO test is failing, you likely didnt sign all of your commits with a proper signage line
Click the details button to read up on it.

I'll squash commits to resolve that but next time please remember to properly sign every commit .

@mstormi
mstormi merged commit 73ea87c into openhab:main Oct 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants