I tried to install shelly-3.1.0-SNAPSHOT on OH3
But shelly does not appear in the UI but does in the bundle:list
have a look to this thread: How to activate a binding
it describes to do a diagnosis first. You need to replace the number that is used in by the command with the one of your bundle/binding.
Thanks for your reply
this is the output:
what is that mean?
openhab> diag 295
openHAB Add-ons :: Bundles :: Shelly Binding (295)
--------------------------------------------------
Status: Installed
Unsatisfied Requirements:
osgi.wiring.package; filter:="(&(osgi.wiring.package=org.osgi.framework)(&(version>=1.9.0)(!(version>=2.0.0))))"
osgi.service; filter:="(objectClass=org.openhab.binding.shelly.internal.ShellyHandlerFactory)"; effective:="active"
osgi.service; filter:="(objectClass=org.openhab.binding.shelly.internal.provider.ShellyTranslationProvider)"; effective:="active"
osgi.service; filter:="(objectClass=org.osgi.service.http.HttpService)"; effective:="active"
Declarative Services
uff, I know this issue and new to rebuild. Did you tried OH 3.1M4?
I did not try 3.1M4 just the Stable version
**I updated to 3.1 M4 and now the binding is Active
Dear Markus
Thx a lot for your fast reply. Just used my browser to find out the specific endpoint and figured out the curl command to set the temperature difference:
curl -v -d āoffset_tC=0ā http://192.168.0.101/settings/ext_temperature/0
This works fine but im really not able to do the same command with openhab 3 in the javascript rules:
var Exec = Java.type("org.openhab.core.model.script.actions.Exec");
var Duration = Java.type('java.time.Duration');
var logger = Java.type("org.slf4j.LoggerFactory").getLogger("org.openhab.model.script.Rules.Experiments");
var url = "http://192.168.0.101/settings/ext_temperature/0";
var results = Exec.executeCommandLine(Duration.ofSeconds(5),"/usr/bin/curl", "-d 'offset_tC=1'", url);
logger.info(results);
Even with diffrent syntax options i couldnāt execute the disiered curl command with the exec function
thatās not the question, why do you need to change this dynamically? Sounds like a one time setup, which should be done in the deviceās WebUI.
The latest PR has been merged, this addās tge trigger VIBRATION for DW2ās vibration alarm. This is a trigger to the device#alarm, not a channel, because itās an event, not a status
ā-
As you know 2.5 has beeb sunset. Itās no longer possible to setup a fresh 2.5 environment. The Bintray service, which hosted the necessary files/artifacts was shut down on May 1st. I was able to restore the local copy from an older installation, but be aware that 2.5 support for the binding will stop soon.
WHO STILL NEEDS 2.5 SUPPORT?
Iāll keep the 2.5 jar in the myfiles repo (with current feature level), but it doesnāt get updated anymore.
There is another reason: The Shelly Plus series of devices is on the road. This will be based on a new chipset for improved functionality, but also requires to implement a new device interface. I already received a development sample and made first steps, but it will be hard to support old and new generation of devices within one binding. Therefore Iām considering to build a new ShellyPlus binding and focus on this. There will be no 2.5 support for this and maybe feature level for generation 1 devices will freeze somewhen, but no worries for now.
Feedback welcome
Hey Markus,
the whole openHAB community is really thankful about your great binding and all the effort you put into development. I can absolutely understand if you want to minimze your effort or to spend your effort wisely on your project.
Having said this, I want to support you to drop support for 2.5
No problem for me as long as the gen1 devices keep getting supported in future openHab versions. Nothing more annoying than paying money for hardware that stops functionning for no reason.
Iāve installed 30+ of them, I think no doubt that I keep to support them
We all wish you a long and healthy life
Hi, so itās time to move to the next āLevelā of openhab
Thx for your Support
Hi everybody!
I just started using the shelly binding and still in kind of testing mode. Besides that I used Openhab quite a lot.
I have Openhabian 3.0.2 Release Build running, Shelly Binding 3.0.2 on a PI 3B+ with a Shelly Dimmer 2, Firmware Version 20210429-102101/v1.10.4-g3f94cd7.
Bindings works well so far, but I donāt get the events āDOUBLE_PRESSEDā or āTRIPLE_PRESSEDā when I press the connected switch multiple times. I can only trigger (one or several) āSHORT_PRESSEDā and āLONG_PRESSEDā events (shelly:shellydimmer2:xxx:relay#button).
Do I do something wrong here? I could not find anything in the community.
Thanks a lot for your support!
Best regards,
Matthias
you missed the number of the switch
shelly:shellydimmer2:xxx:relay#button1
Thanks for your reply. You are right concerning the trigger.
However, I was also checking the LastEvent channel and the logs. Same problem here.
2021-05-14 07:50:50.998 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellydimmer2:xxxx:relay#button1 triggered SHORT_PRESSED
2021-05-14 07:50:51.013 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DimmerLoungeeckeDecke_LetztesEreignis' changed from to S
2021-05-14 07:50:53.954 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellydimmer2:xxxx:relay#button1 triggered SHORT_PRESSED
2021-05-14 07:50:57.237 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellydimmer2:xxxx:relay#button1 triggered SHORT_PRESSED
2021-05-14 07:50:59.073 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellydimmer2:xxxx:relay#button1 triggered LONG_PRESSED
2021-05-14 07:50:59.084 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DimmerLoungeeckeDecke_LetztesEreignis' changed from S to L
2021-05-14 07:51:02.113 [INFO ] [openhab.event.ChannelTriggeredEvent ] - shelly:shellydimmer2:xxxx:relay#button1 triggered SHORT_PRESSED
2021-05-14 07:51:02.126 [INFO ] [openhab.event.ItemStateChangedEvent ] - Item 'DimmerLoungeeckeDecke_LetztesEreignis' changed from L to S
Double and triple press is only supported by Shelly 1 and Shelly i3
maybe things have changed. the documentation of shelly API says s.th. different.
if you triple press, check the shelly with the following URL:
ipaddress/input/0 or
ipaddress/input/1
I am sure there is no SSS