Yes, that‘s part of the clean cache to remove not required components.
Best way is to use a batch/sh file which cleans the cache and reinstalls the components
/usr/bin/ssh -p 8101 openhab@localhost feature:install openhab-transport-coap
Yes, that‘s part of the clean cache to remove not required components.
Best way is to use a batch/sh file which cleans the cache and reinstalls the components
/usr/bin/ssh -p 8101 openhab@localhost feature:install openhab-transport-coap
Im using this file in the /bin/ share
#!/bin/bash
echo '###########################################'
echo '###### openHAB CACHE/TMP loeschen #####'
echo '###########################################'
date "+%A %d/%m/%Y %H:%M:%S"
echo '###########################################'
# openHAB Service stoppen
echo 'Stoppe openhab-Service'
sudo systemctl stop openhab.service
# CACHE und TMP löschen
echo 'CACHE und TMP loeschen'
sudo yes | openhab-cli clean-cache
# openHAB Service starten
echo 'Starte openhab-Service'
sudo systemctl start openhab.service
How do I have do handle your command? Do I have to use „sudo“ as well?
Add the command after starting openhab.service
I don‘t think you need sudo.
Yes, my question was not related to the position in the script but as it is a command of the karaf console I am not sure how this command must look like in a shell script.
I added my first Shelly BLU button to openHAB (3.4.5 + DEV Binding 3.4.5.202308121445). Following the docs from the binding everything went fine after some trial and error.
[INFO ] [el.core.internal.ModelRepositoryImpl] - Loading model 'shelly_button.things'
[WARN ] [core.thing.internal.ThingManagerImpl] - The model of shelly:shellyblubutton:BLUETOOTH_MACADDRESS is inconsistent [thing.getHandler().getThing() != thing]
==> /var/log/openhab/events.log <==
[INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'shelly:shellyblubutton:BLUETOOTH_MACADDRESS' changed from UNINITIALIZED (HANDLER_CONFIGURATION_PENDING): {deviceAddress=The parameter is required.} to INITIALIZING
Didn’t find a text file example, so here is one:
Thing shelly:shellyblubutton:BLUETOOTH_MACADDRESS "Shelly BLU button Red" @ "Zolder" [deviceAddress="BLUETOOTH_MACADDRESS"]
Gives a warning about an inconsistent model though? But is working fine:
shelly:shellyblubutton:BLUETOOTH_MACADDRESS:status#button triggered SHORT_PRESSED
Things seems to be silent, but we are working in the background.
Short update on PRs
We need 2 more PRs to get the list up to the DEV level before I continue implementing new features
Said that:
The best thing you could contribute is testing. I’ll update the DEV build to include the changes from the review process and let you know.
Hello Markus,
thank you for your efforts.
If you have time, could you please also check the following error.
Yesterday I installed a shellyplus1 with the plus-addon. According to the documentation 5 temperature sensors are supported.
This also works in the Shelly app, but in Openhab I can add a maximum of 3 temperature sensors.
Yes, I have read that I could integrate sensors 3 and 4 via MQQT, but I don’t think that’s a clean solution.
Maybe you can fix this error please.
Thank you!
I updated the DEV build for 4.1-SNAPSHOT. Due to changed package dependencies this will no longer work on 4.0.
This version includes the latest functions and changes from PR review. It would be great to get some feedback = testing to make sure having a solid basis moving forward.
WD users fyi: I’m still investigating the Wall Display with @igi Even with firmware 1.2.5 we see tons of mDNS advertisements, which are processed by the binding without NPEs or resource leaks (which is great), but also creates a lot of useless traffic. Who else has a WD with 1.2.5 and wants to share observations (run Wireshark and check frequency of mDNS traffic)?
which version of the binding are you using? DEV build?
no, I’m using 4.0.4.
ok, I created a DEV build for 4.0.x. In general 4.1 would work, but there are various new dependencies (package versions installed by core framework), wich are not fulfilled by 4.0.5
Check READMEbeta how to install this, create a DEBUG log
4.1-DEV | 4.0.-DEV |3.4.5-DEV | README | READMEbeta
Avdanced Users - Shelly Manager - Bugs/Features - API Doc | Firmware Index - Firmware Archive
Note: The DEV build is always newer than the version in the official Distro or Milestone builds. Current development is based on 4.1-SNAPSHOT, 4.0.x and 3.4.x might be outdated.
Please make sure to report bugs or feature requests here
This gives me a to-do list once I’m done with the current PRs and you an overview what’s already know / on the list
ok, I’ll give it a try. thanks for the quick support!
Hello everyone,
I have a problem again.
I have integrated quite a few Shelly products into Openhab and have never had any problems.
However, I now have my first Shelly Plug S and can’t get it into Openhab.
The Thing always stays on:
Status:
UNKNOWN
CONFIGURATION_PENDING
Initialisierung oder Gerät im Schlafmodus.
I use Openhab 3.3.0 and the Shelly Binding. The Plug S has the latest FW.
The plug works perfectly in the Shelly app.
I have tried it both with and without the Shelly Cloud access data. Both ways had the same result.
I have also activated MQTT and snooped in my broker (which runs in Openhab) and can find the Shelly there accordingly. However, as I currently only use MQTT to read data and use all other shellys via binding, I actually want to do the same with Plug S.
What’s also strange is that I can’t find the Shelly in the Thing system after the scan, whereas this is the case with all other Shellys. I have to select the Plug S manually and enter the IP. It is also strange that in Thing only the two channels for the device status are offered, but not the others from the relay area.
To be on the safe side, I have already assigned a fixed IP via the Fritzbox and set the Shelly to factory settings. All without success.
Does anyone have any ideas what else I could try?
All of that os not nessesary (no mqtt, static ips…)
The Plug S should be discovered automatically and supported by the binding. However, when I read „OH 3.3.0“ I‘m not sure if that version is supporting that device, because it‘s really old.
Why are you not moving to 3.4.5 or even better to 4.0 (which brings in some migration effort)?
Otherwise you should enable DEBUG log and get additional information, most likely an init problem
Thanks, I updated to 3.4.5 and it’s working now.
Unfortunately my shelly flood is now behaving the same way as the Plug S did before
PS
I dont move to OH4 at the moment as I have a binding running which is very important for me which isn’t working on OH4 anymore.
You need to press the button on Shelly Flood. Then start the discovery in OH, maybe you need to do this 2-3 times.
Good news:
PR #15922: Misc changes (small fixes, log improvements, hardened leak prevention on and
PR #15950: Support for Shelly Plus Dimmer 10v
have been merged, thanks @Lolodomo
Only one more is missing to get the list to the feature level of the DEV build: This includes auto-upgrade of channel definitions. OH 4.1 introduced more strict validation of channel units and updates to channels, which brought up several issues around channel definition and updates. This PR will bringt an auto-update: beside missing channels, which will at added at thing initialization time the binding also checks existing ones if they match the current definitions, if not the definition will be updated.
If you want to help testing: I created a pre-PR build having those changes:
org.openhab.binding.shelly-4.1.0-SNAPSHOT_pr.jar
Once this PR is merged I could work on additional features / bug fixes.
Please make sure to create an issue here
I updated the DEV build for 4.1 and 4.0.5, not 3.4.5
details can be found here:
In addition it includes 2 changes where I need feedback from you
Re Wall Display:
Please help to validate the above mentioned changes and share details if you are also bothered by the WD issues listed above.
4.1-DEV | 4.0.-DEV | 3.4.5-DEV | README | READMEbeta
Avdanced Users - Shelly Manager - Bugs/Features - API Doc | Firmware Index - Firmware Archive
Note: The DEV build is always newer than the version in the official Distro or Milestone builds. Current development is based on 4.1-SNAPSHOT, 4.0.x and 3.4.x might be outdated.