Closed Akulatraxas closed 4 months ago
While the change is fine for cosmetics, it doesn't make any difference for the Javascript execution.
@manup that might be, but when i add the ; back in consumption reporting of the device stays at 0. at least i can reproduce it by adding it back in for functioning devices.
Hello, and you make other thing after the edition ? (that can impact too the result), "hot reload" or restart deconz or re-include.
And you can reproduce the issue every time ?
I don't understand because all my JS code in DDF are using the ";" ........
It's a bit strange yeah, strictly speaking in Javascript the ;
shouldn't make any difference.
However maybe the DuktapeJS engine does something fugly here, since this isn't the first PR doing this I'll schedule some tests to see what's going on. (maybe it's a problem with one liners and no newline character at the end, but how knows..)
Hey @Akulatraxas, thanks for your pull request!
[!TIP] Modified bundles can be downloaded here.
lidl/hg08673.json
: HG08673 LIDL SilverCrest smart plug with monitoring (DK, EU, FR) :heavy_check_mark:[!TIP] Everything is fine !
:clock230: Updated for commit 870c0be6eae0678f88ef92d44f9908e13067ae80
This pull request is now merged. The new DDF bundles have been uploaded to the store.
lidl/hg08673.json
: HG08673 LIDL SilverCrest smart plug with monitoring (DK, EU, FR) : with hash (2da701458b):clock1130: Updated for commit acd0adce32e5c3c3ea7e6b3329a6e86fb9d96801
Got a few of these devices and noticed that power was reading fine but consumption was always 0. Noticed a stray ";" in the DDF. After removing it the consumption reading is working.
And maybe a small request: I know this is not the homeassistant Community but i am sure someone can point me to the right place: I noticed that in the output of the REST call for this device is the voltage reading as well. That does not show up in HA. Where in this process is decided what part of the REST output is included in the HA Entitites ?