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

aeotec heavy duty switch added #1109

Conversation

ronie-z-wave
Copy link
Contributor

No description provided.

Copy link

Duplicate profile check: Passed - no duplicate profiles detected.

Copy link

github-actions bot commented Dec 11, 2023

Channel deleted.

Copy link

github-actions bot commented Dec 11, 2023

Test Results

   55 files    353 suites   0s ⏱️
1 655 tests 1 655 ✅ 0 💤 0 ❌
2 907 runs  2 907 ✅ 0 💤 0 ❌

Results for commit d1750a9.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 11, 2023

File Coverage
All files 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/zwave-dual-switch/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/preferences.lua 99%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/configurations.lua 99%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/eaton-5-scene-keypad/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/qubino-switches/qubino-relays/qubino-flush-2-relay/init.lua 97%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/inovelli-2-channel-smart-plug/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/zooz-power-strip/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/inovelli-LED/init.lua 93%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/multi-metering-switch/init.lua 94%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/fibaro-wall-plug-us/init.lua 95%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/qubino-switches/qubino-relays/init.lua 84%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/aeotec-heavy-duty/init.lua 98%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/qubino-switches/init.lua 84%
/home/runner/work/SmartThingsEdgeDrivers/SmartThingsEdgeDrivers/drivers/SmartThings/zwave-switch/src/qubino-switches/qubino-relays/qubino-flush-1d-relay/init.lua 83%

Minimum allowed coverage is 90%

Generated by 🐒 cobertura-action against d1750a9

Copy link
Contributor

@greens greens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I appreciate the tests.

Copy link
Contributor

@greens greens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah wait, there are significant numbers of new test failures.

Comment on lines 118 to 120
defaults.register_for_default_handlers(driver_template, driver_template.supported_capabilities)
local ge_switch = ZwaveDriver("aeotec-heavy-duty", driver_template)
ge_switch:run()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because this is a dub-driver, you need to define a can_handle function and should not be registering for defaults

@lelandblue
Copy link
Contributor

Hey @ronie-z-wave Please see the comments made on this PR and include the changes requested at your nearest opportunity to help move this forward, thank you!

@CLAassistant
Copy link

CLAassistant commented Jan 24, 2024

CLA assistant check
All committers have signed the CLA.

Comment on lines 18 to 19
local ZwaveDriver = require "st.zwave.driver"
local defaults = require "st.zwave.defaults"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

    drivers/SmartThings/zwave-switch/src/aeotec-heavy-duty/init.lua:18:7: (W211) unused variable ZwaveDriver
    drivers/SmartThings/zwave-switch/src/aeotec-heavy-duty/init.lua:19:7: (W211) unused variable defaults

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah sorry. I will remove them.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either change the copyright date or add back in the credit to the dev.

Copy link
Contributor

@greens greens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry. I should have mentioned this before, but for devices like this, you can just use one fingerprint.

  - id: "Aeotec/Heavy Duty"
    deviceLabel: Aeotec Heavy Duty
    manufacturerId: 0x0086
    productId: 0x004E
    deviceProfileName: aeotec-heavy-duty

And you can similarly leave out the product type in the preferences and can_handle sections of the code. Empty fields are treated as wildcards for the matching functions.

For example, here's another aeotec switch where we do this: https://github.com/SmartThingsCommunity/SmartThingsEdgeDrivers/blob/main/drivers/SmartThings/zwave-switch/fingerprints.yml#L356

@greens
Copy link
Contributor

greens commented Jan 26, 2024

I would just leave a comment next to the fingerprint indicating it covers the US, EU, and AU versions.

@lelandblue
Copy link
Contributor

Closing this pr because #1325 was merged. Thank you.

@lelandblue lelandblue closed this May 9, 2024
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

Successfully merging this pull request may close these issues.

5 participants