Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[senechome] Fix for Senec firmware update #15535

Merged
merged 338 commits into from
Nov 11, 2023

Conversation

querdenker2k
Copy link
Contributor

@querdenker2k querdenker2k commented Sep 1, 2023

Senec updated the Firmware which changes the protocol from http to https and disabled historic data access.
I added a new thing config parameter useHttp for legacy usage if some modules are not updated.

Edit:

  • also removes 7 channels due to Senec local web ui change.

@eguib
Copy link
Contributor

eguib commented Sep 5, 2023

Are you sure about the removal of the "STATISTIC" block?
Querying lala.cgi with {"STATISTIC":{}} just returns an empty JSON with status=200 and not an "OBJECT NOT FOUND" as for really unknown JSON object requests!?
Any idea what auth is required to access /vars.html? Would be really helpful to understand what changed ...

Update: querying lala.cgi with {"DEBUG":{}} returns all sections and that list still contains "STATISTIC", so maybe just a bug that the returned block is empty?

@eguib
Copy link
Contributor

eguib commented Sep 6, 2023

Another update:
noauth access to log/vars still works if one uses "Log/YYYY/MM/DD.log" or "Vars.html"
But there are no new insights regarding "STATISTIC" :-(

@vich-667
Copy link
Contributor

Will solve issue #15524

@lsiepel lsiepel linked an issue Sep 16, 2023 that may be closed by this pull request
@lolodomo
Copy link
Contributor

lolodomo commented Oct 18, 2023

This PR seems also to remove 7 channels. Why isn't it mentioned in PR description?

@vich-667
Copy link
Contributor

This PR seems also to remove 7 channels. Why isn't it mentioned in PR description?

Yes, Senec unfortunately removed that values from the local web UI. Therefore this cannels doen't work for a while. It's basically a cleanup.

@lolodomo lolodomo added the bug An unexpected problem or unintended behavior of an add-on label Oct 21, 2023
jlaur and others added 18 commits October 21, 2023 21:03
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
* Add support for Move 2

Resolves openhab#15702

---------

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
* Solves issue openhab#15684
* Removing excessive usage of inline typecast

---------

Signed-off-by: clinique <gael@lhopital.org>
* Convert to OH jetty HttpClient
* Adds a Stack for HttpClient storage
* Add synchronized to prevent exception
* fix binding
* Stop stack on close
* Resolves exception on registring forward actions
* Reduces client count to 5 to align to expected thread pool limit of 5

---------

Signed-off-by: Ben Rosenblum <rosenblumb@gmail.com>
Co-authored-by: Mark Herwege <mark.herwege@telenet.be>
* Adding the possibility to disable websocket listening.
This is set up in order to ease debugging of the "Erreur Interne" issue.

* Enhancing websocket work with recurrent deconnection, simplification of listeners handling
* refactored function name
* Fixed the name of the channel where the refresh command is sent.
* Solving SAT issues
* Corrected doc error
* Added properties
* Removed gson 2.10 now that it is included into core.

---------

Signed-off-by: clinique <gael@lhopital.org>
If the client is not stopped it will not be garbage collected because the ShutdownThread keeps a reference to the client so it can be stopped on shutdowns.

See: https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java#L420-L433

Signed-off-by: Wouter Born <github@maindrain.net>
* [jythonscripting] Add a note not to use jython
* [jythonscripting] Mark as deprecated

---------

Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
…penhab#15720)

This reverts commit 72622a1.

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
The dependency change in openhab#15659 caused slf4j to be embedded into the bundle.

As a result the bundle no longer uses Pax Logging so it cannot find an SLF4J provider and logs the following when it is installed:

SLF4J: No SLF4J providers were found.
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See https://www.slf4j.org/codes.html#noProviders for further details.

Signed-off-by: Wouter Born <github@maindrain.net>
… in order (openhab#15530)

Signed-off-by: Anton Hattendorf <anton@hattendoerfer.de>
If the client is not stopped it will not be garbage collected because the ShutdownThread keeps a reference to the client so it can be stopped on shutdowns.

See: https://github.com/eclipse/jetty.project/blob/jetty-9.4.x/jetty-websocket/websocket-client/src/main/java/org/eclipse/jetty/websocket/client/WebSocketClient.java#L420-L433

Signed-off-by: Wouter Born <github@maindrain.net>
* Fix problem with DPT 251.600.
In the old implementation the datatype was implemented with byte 0-255.
The DPT 251.600 is defined with 0-100%, change this from byte to
PercentType.

Signed-off-by: Marco Mueller <marco@ms.mueller.ch>
Upgrades H2 database from 1.4.191 to 2.2.224.

Add ';NON_KEYWORDS=VALUE' to the JDBC URL because the add-on uses 'value' (which is also a keyword) as column name.

Also fixes some queries used by the command extension because H2 always uses upper case table names.

For the change log, see:

https://h2database.com/html/changelog.html

For migration notes, see:

https://h2database.com/html/migration-to-v2.html

Fixes openhab#13115

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
@lsiepel
Copy link
Contributor

lsiepel commented Oct 29, 2023

is here something to do for me? i don't know how to remove the other commits (which are from main) from this mr

I think the PR got fixed; All the excess reviewers got removed, review comments are addressed etc. Maybe @lolodomo needs anothe review pass, but nothing you can do at the moment to speed up merging.

@lsiepel lsiepel requested a review from lolodomo October 29, 2023 09:25
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

Here are new and final review comments

querdenker2k and others added 4 commits November 4, 2023 06:36
…F/thing/thing-types.xml

Co-authored-by: Jacob Laursen <jacob-github@vindvejr.dk>
Signed-off-by: Robert D. <querdenker2k@gmx.de>
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
Signed-off-by: querdenker2k <querdenker2k@gmx.de>
Copy link
Contributor

@lolodomo lolodomo left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@lolodomo
Copy link
Contributor

DCO is KO probably due to wrong usage of git rebase. I am going to squash everything and keep the proper sign-off-by.

@lolodomo
Copy link
Contributor

@jlaur @wborn : I don't know what to do with this PR. When I try to merge it, I see a very long list of commits including some coming from other bindings. This PR is certainly not clean. I don't know what is the risk to merge it. Can you help me to evaluate the risk please ?

@wborn
Copy link
Member

wborn commented Nov 11, 2023

Probably you only need to cleanup the commit message and the squashed commit should look like https://github.com/openhab/openhab-addons/pull/15535/files

@lolodomo lolodomo merged commit 1eacf67 into openhab:main Nov 11, 2023
1 of 2 checks passed
@lolodomo lolodomo added this to the 4.1 milestone Nov 11, 2023
@lolodomo
Copy link
Contributor

A real nightmare, the merge message was containing probably several hundreds of lines. I just kept two lines.

@wborn
Copy link
Member

wborn commented Nov 11, 2023

Maybe @querdenker2k can have a look at the linked community post in the PR template next time:

ATTENTION: Don't use "git merge" when working with your pull request branch!
This can clutter your Git history and make your PR unusable.
Use "git rebase" instead. See this forum post for further details:
https://community.openhab.org/t/rebase-your-code-or-how-to-fix-your-git-history-before-requesting-a-pull/129358

andrewfg pushed a commit to andrewfg/openhab-addons that referenced this pull request Nov 26, 2023
* Fix for Senec update

Signed-off-by: querdenker2k <querdenker2k@gmx.de>
austvik pushed a commit to austvik/openhab-addons that referenced this pull request Mar 27, 2024
* Fix for Senec update

Signed-off-by: querdenker2k <querdenker2k@gmx.de>
Signed-off-by: Jørgen Austvik <jaustvik@acm.org>
@jlaur jlaur changed the title [Senec] Fix for Senec firmware update [senechome] Fix for Senec firmware update Jun 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[senechome] Cannot connect after firmware update