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

Add multi-switch support #2

Merged
merged 5 commits into from
Nov 6, 2020
Merged

Add multi-switch support #2

merged 5 commits into from
Nov 6, 2020

Conversation

dkrahmer
Copy link
Owner

@dkrahmer dkrahmer commented Nov 6, 2020

No description provided.

Doug Krahmer and others added 5 commits November 6, 2020 11:51
config.json: defaultDeviceType, defaultDeviceProperties
devices.conf (device): enabled
Support device state array
Guess device type and mdl if not specified.
This helps HA set the correct icon by default.
@dkrahmer dkrahmer merged commit c65e03b into DK_master Nov 6, 2020
@@ -4,7 +4,7 @@ const utils = require('../lib/utils')

class GenericDevice extends TuyaDevice {
async init() {
this.deviceData.mdl = 'Generic Device'
this.deviceData.mdl = this.config.mdl || 'Generic Device'
Copy link
Owner Author

Choose a reason for hiding this comment

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

test

Copy link
Owner Author

@dkrahmer dkrahmer Apr 6, 2022

Choose a reason for hiding this comment

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

test 123

Copy link
Owner Author

@dkrahmer dkrahmer Apr 6, 2022

Choose a reason for hiding this comment

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

test 456

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant