-
-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
js-controller 3.3 Adapter comaptibility #1301
Comments
I think the log-message is missleading, e.g. |
read full message :) State value to set for "${id}" has wrong type "${typeof state.val}" but has to be "${obj.common.type}" "State value to set" means the value that someone wants to write |
I am with HGlab01 on this.. my first interpretation was my states are wrongly defined. But it seems my adapter is setting wrong values rather. This could be more explicit. |
Ok then please propse a better log message :-) In my eyes when reading the full message it should be clear :-) |
do you have a list of that changes? which have been in 3.2 and which in 3.3? I cannot see the message How can I update to js-c v3.3? I've v 3.2.16 installed and this seems to be the actual version. At least my installations do say that. Edit: Do you have a time schedule for that changes? |
The changelog should give you all infos ;-)) Especially check the Developer sections https://github.com/ioBroker/ioBroker.js-controller/blob/master/CHANGELOG.md "State value to set ..." error are new in js.controller 3.3. js-controller 3.3 instructions and test thread in forum https://forum.iobroker.net/topic/44624/js-controller-3-3-jetzt-im-latest What you mean with "Time schedule"? We work in an agile way and use GitHub projects where plans can be seen as tickets, also the upcomig 3.4 is listed there ... but from time to time we add new stuff, so monitoring js.contrller PRs is the best way to go if you want to know what will come i advance |
The issue you are trying to solve for is lazy programmers (like me) relying on javascripts automatic type cast. I would assume that most folks have set the state properties correctly but don't care when setting values. Reading it again a few times your message does make sense %/ Maybe make it a bit more explicit: State value to set for "${id}" has wrong type "${typeof state.val}" but state is defined to be "${obj.common.type}" Or Setting state value for "${id}" called with wrong type "${typeof state.val}", expected "${obj.common.type}" |
We adjusted in js.controller 3.3.8 alreayd when I remember correctly ... |
I already made PR for tankerkoenig, unifi and weatherunderground. But there are so many :( |
Thank you for our support here and yes some are easy, some requires deeper checks. Any PR is highly appreciated! |
Can we close this issue now? ;-) |
With js-controller 3.2 and js-controller 3.3 some additional checks were added to make sure that created objects match to the specifications and also written state values match to the object definition.
If something is not correct this is logged as "warning" log.
Please take the time to verify your adapter by ideally starting with a fresh instance and do some actions and verify the log. If you see a warn log there from these checks please adjust the adapter and fix the relevant cases.
This thread is for tracking purposes and allows questions and discussions
The text was updated successfully, but these errors were encountered: