-
Notifications
You must be signed in to change notification settings - Fork 104
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
Feature Request: Access to last change date of an item (for iobroker driver) #983
Comments
I would like that too! The timestamp arrives in the ioBroker adapter (io_iobroker.js) here: Here you would have to somehow send state.lc instead of state.val to the widget, perhaps via an attribute as switch to use state.lc instead of state.val. State is the actual value of the data point and presented by javascript object: greetings Uwe |
I am already working on it. Since we have the keyword „property“ for item properties already in smarthomeNG and the templatechecker can check this I would use this here, as well. Does that fulfill the requirements? regards |
Yes, that would be great! Best Regards, Stefan |
OK. Can you test the attached driver for me, after renaming it from .txt to .js and selecting this driver in config page? I ran some dry tests but have no ioBroker system for validation. Regards |
I did a quick test. Unfortunately I got a lot of the following error message in the browser console: TypeError: io.openItems.removeEntry is not a function. (In 'io.openItems.removeEntry(item)', 'io.openItems.removeEntry' is undefined) Regards |
Ah. Sorry! I forgot that I had implemented already a new function in the driver which is not compatible with v3.4. Can you run the test in the develop version of smartVISU?
Regards |
Many thanks, my first test works! Best Regards |
Since @uwe5 wrote that the controller versions may differ in the timestamps unit (ms or s) I added the formula Regards Edit: This worked for me in a test with v3.4. There has been a fix for basic.print timestamp handling after v3.4 which is in the develop version. See here: 79fd4d1. With that fix you can omit the formula. |
It does not show the right time with or without *1000. I will test the new version of basic.print later. I am on 3.3.1. Best Regards |
I had been editing my comment above after testing with v3.4. Please review and use Regards |
I tested it in v3.3.1. |
implemented with #984 |
It would be great, if the last change date of an item can be accessed (especially for the iobroker driver).
The text was updated successfully, but these errors were encountered: