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

Get error when trying to set true #42

Closed
xolom opened this issue Feb 28, 2019 · 6 comments
Closed

Get error when trying to set true #42

xolom opened this issue Feb 28, 2019 · 6 comments

Comments

@xolom
Copy link

xolom commented Feb 28, 2019

Iam trying to use this adapter with javascript engine and i get the following error in my log

screen shot 2019-02-28 at 5 56 45 pm

I am using setState(..., true); in ma Javascript to trigger a learned state

Let me know if you need some further information

@quax76
Copy link

quax76 commented Mar 1, 2019

I have exactly the same issue with a RM mini 3. I would be vey happy to get a solution for this...

@xolom
Copy link
Author

xolom commented Mar 1, 2019

For some reason i now get another error instead of the above one:
Error in StateChange for broadlink2.0.RM:.L.Number_1 = TypeError: device.sendData is not a function at sendCode (/opt/iobroker/node_modules/iobroker.broadlink2/broadlink2.js:76:9) at obj.native.obj.native.code.setState.then (/opt/iobroker/node_modules/iobroker.broadlink2/broadlink2.js:219:44) at at process._tickCallback (internal/process/next_tick.js:189:7)
I realized that, the button trigger works for some time and then stops working..

@frankjoke
Copy link
Collaborator

Ok, in both cases functions are not available at expected states.
If sendCode is not available it means that the RM device was not found and is offline when it started or tried to restart!
Can it be that that the RM gets offline from time to time?

I just work on a total different interface between the devices and the adapter and hope to have it running in a view weeks to be tested by interested people before I make it adapter version 2.0.0.

Especially the case when devices go offline and come back later need to be tested better!

@quax76
Copy link

quax76 commented Mar 2, 2019

My device was reachable through ping all the time. And I tried so often so I do not think it has has to do with pure reachability. I also never hat a problem to configure the device through the app.
I see anything else that I do wrong or that could have went wrong?
Maybe there is a way to make sure the device is online/reachable except ping...

@frankjoke
Copy link
Collaborator

I cannot say anything more unless you send me a debug log of adapter set to debug and starting up and trying to access/switch some devices.
The log shows what the adapter sees and what not.

@frankjoke
Copy link
Collaborator

Please try also V2Beta

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

No branches or pull requests

3 participants