SmartThings Edge Developer Beta | Known Issues and Bug Tracking

6 posts were split to a new topic: [ST Edge] Use Momentary capability in Dashboard View

Hey Andrew, unfortunately it’s basically impossible for us to detect that something like this has happened. In Lua variables always evaluate to nil unless previously assigned to and values in a table always evaluate to nil unless assigned to. So what you’d be accidentally doing there would be assigning the init field to nil which it implicitly already was. Then when the Driver library looks at this table it just sees that init is nil, which is a valid value because handlers are optional.

I would suggest using Luacheck to detect cases like this: GitHub - mpeterv/luacheck: A tool for linting and static analysis of Lua code.

Using that and unit tests it you should be able to catch just about any typo issues.

2 Likes

it would be awesome if this tool become a part of the pipeline.
as I am not planning to invest in lua skills anymore.

Overall, using a niche interpreted language for device drivers is an odd choice.

A post was split to a new topic: [Device UI] Capabilities show “checking status…” in the dashboard view

A post was split to a new topic: [ST Edge] Error packaging the driver with a different profile

2 posts were split to a new topic: [ST Edge] - Fatal error from socket.http