@delid4ve I’ve tried to add my new zigbee device in the JAR package, but I’m missing things.
I’ve modified zigbee-things.xml adding the uiid and the channels.xml for colorTemp (I’ve copied colorTemperature) but the new device type appears when I need to add it (without channels).
So I’ve tried to figure out how it works in the published code (older than the latest JAR published). I saw that IDs where statically define as CONST in one .java.
I’ve tried to change in sonoff folder the file named with my device ID. I’ve changed the uiid to one matching the one in the code, but same result, it wasn’t able to detect it (and ask to send to dev the cache file).
Any idea to fix this without recompiling the full package ? If not, can you push the latest version of your code to github ?
I’m using this one:
sha256sum org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar
c05ed1d1641a64d4fdf41e1ccc59cb337a7bd03e22627a5f4a067efe50706f05 org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar
maybe you should try it. and do a sha256sum to compare if the key is the same
if so, then maybe there is a way to see debug messages in /var/log/openhab/openhab.log file
When I’m tweaking mine (copied from the one I’ve sha256sum you), updates are done very quickly
BTW file size seems different than the one I use to have (3.1 or 3.2 are around 150k, yours is 204, but it might be a special version), latest version is currently:
sha256sum - c05ed1d1641a64d4fdf41e1ccc59cb337a7bd03e22627a5f4a067efe50706f05 (same as yours)
when placing the jar file to addons folder, nothing changes in openhab.log - just like system do not see that file is put there
do any charges have to arrive when I’m putting the jar to addons folder?
UPDATE:
After removing …SNAPSHOT_2.5R8.jar and replacing it with …SNAPSHOT_2.5R10.jar from your link (actually, the same file I’ve tried first in my trial) - the binding arrived in OH UI (as described by topic starter).
Resume: I made same actions several times. Repeating this same action (no changes in algorithm) - gave suddenly positive result. OMG
Can I suggest that you publish your binding in the new Marketplace? It’s an easy way to self publish a new binding for testing, and people can download and install it from within openhab easily.
There is no review or anything of the code or binding, (of course there are a few rules to follow, this is openHAB we are talking about).
I developed a similar interface to ewelink a while back (in python), and I have a specific device I would like to add (3rd party, not Sonoff) to your binding. If you could update your github, i will attempt to add it in.
Hey, I just installed this binding and I’m having an issue. I set the binding for Cloud Only since the device I’m controlling is in a different location. It’s a Sonoff S31 and it was discovered as thing type POWR2 which looks right.
I made an Item for the switch channel. On startup, it correctly reads the state of the switch, and I can toggle it… but only once. If I tell it to turn on or off, it does execute that action, but the switch state soon reverts back in OH. I get this in the log:
2022-02-12 16:23:10.269 410413 INFO nal.discovery.SonoffDiscoveryService - Discovered device XXX
2022-02-12 16:23:10.276 410413 INFO g.discovery.internal.PersistentInbox - Added new thing 'sonoff:32:ewelink:XXX' to inbox.
2022-02-12 16:23:35.278 410413 ERROR l.connection.SonoffConnectionManager - Unable to add lan service for device XXX as the connection is offline
2022-02-12 16:24:15.074 410413 WARN unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701054059, command was uiActive, retrying again. Retry count 2
2022-02-12 16:28:15.064 410413 WARN unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701294063, command was uiActive, retrying again. Retry count 2
2022-02-12 16:28:16.166 410413 WARN unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701294063, command was uiActive, retrying again. Retry count 3
2022-02-12 16:28:17.268 410413 WARN unication.SonoffCommunicationManager - Unable to send transaction 1644701294063, command was uiActive, after 3 retry attempts
2022-02-12 16:30:15.066 410413 WARN unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701414064, command was uiActive, retrying again. Retry count 2
2022-02-12 16:30:16.168 410413 WARN unication.SonoffCommunicationManager - Ok message not received for transaction: 1644701414064, command was uiActive, retrying again. Retry count 3
2022-02-12 16:30:17.270 410413 WARN unication.SonoffCommunicationManager - Unable to send transaction 1644701414064, command was uiActive, after 3 retry attempts
and it just repeats like that. If I bundle:restart it then it will correctly read the new state, and allow one more toggle. So basically it works as long as I bundle:restart it after every toggle.
I see some other instances of this error in the thread but none of them seem relevant. Any suggestions?
I just figure out that command for switch is not working with below error. However it works to receive ON/OFF when I do it via ewelink app.
`2022-02-22 22:01:36.750 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1645578095747, command was switch, retrying again. Retry count 2
2022-02-22 22:01:37.856 [WARN ] [unication.SonoffCommunicationManager] - Ok message not received for transaction: 1645578095747, command was switch, retrying again. Retry count 3
2022-02-22 22:01:38.963 [WARN ] [unication.SonoffCommunicationManager] - Unable to send transaction 1645578095747, command was switch, after 3 retry atte`mpts
after that i created a file called “sonoff.things” in “/etc/openhab/things/” with the credentials
Bridge sonoff:account:Myname “Sonoff Account” @ “myLocation”
[ email=“My_ewelink_email”, password=“My_ewelink_password”,accessmode=“mixed”]
As our friend René helped me on the link, with a step by step, here
after that, accessing openhab via terminal “ssh -p 8101 openhab@localhost”,
I already tried to bundle: start org.openhab…;
I already tried to give bundle:install org.openhab…;
I already tried to check the log:tail;
And nothing appears.
So you have a file org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar in /usr/share/openhab/addons right?
If so, you shouldn’t have to do anything, it will get automatically loaded. It might not work if it has dependencies though (they don’t get automatically loaded).
Can you post what you get if you log in to the karaf console and enter list? You should see the sonoff binding listed and it’s status. If it’s not Active it might mean that it’s waiting for some dependency to be loaded.
What is sitting in your inbox? can you add the sonoff bridge there?
So you have a file org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar in /usr/share/openhab/addons right?
this way, right?
Can you post what you get if you log in to the karaf console and enter list? You should see the sonoff binding listed and it’s status. If it’s not Active it might mean that it’s waiting for some dependency to be loaded.
I recently re-installed openhab and had problems with the .jar file. I downloaded the org.openhab.binding.sonoff-3.2.0-SNAPSHOT_2.5R10.jar
with wget on the raspberry but then it would not work although the file was existing in /usr/share/openhab/addons.
Binding installed, no issues, found my single basic switch, again no issues, however the device remains offline.
2022-05-18 09:41:36.947 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:14:5172e109fe:10003215cf' changed from UNINITIALIZED to UNINITIALIZED (DISABLED)
2022-05-18 09:41:40.724 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:14:5172e109fe:10003215cf' changed from UNINITIALIZED (DISABLED) to INITIALIZING
2022-05-18 09:41:40.735 [INFO ] [ab.event.ThingStatusInfoChangedEvent] - Thing 'sonoff:14:5172e109fe:10003215cf' changed from INITIALIZING to OFFLINE ```
I dont appear to be able to change the logging level
openhab> log:set TRACE org.openhab.binding.sonoff
Error executing command: Unable to set level for logger
Any tips please?
Hi,I see issues with logging in, because cannot get where to change the country code, and default “+1” is used. Could you please assist? Installed binding as a jar into /addons folder.
{“error”:407,“msg”:“appid is unauthorized! oeVkj2lYFGnJu5XUtWisfW4utiN4u9Mq”,“data”:null}
Want to use it with my wifi pump for balcony plants (FW Name in Sonos app: PDF-B04-GL)
Is there a plan to sometime release this as an official binding?
Recently it stopped responding and does not work for me anymore. I did no change in the account and devices connected. The eWelink app responds normally to the devices. Only OH3.2 jar stopped responding.