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

Added pin config for Avatto NAS-WR01W #2113

Merged
merged 1 commit into from
Jan 20, 2020
Merged

Conversation

blockmar
Copy link
Contributor

@blockmar blockmar commented Jan 18, 2020

Support for the Avatto NAS-WR01W with power monitor.

https://www.aliexpress.com/item/33011753732.html

Same model number as Neo Coolcam NAS-WR01W but not a match in PINs.
I was not able to find an official homepage for Avatto. Only the "official" shop on AliExpress. But this is a Tuya device.

PINs for Button, Led and Relay have been tested and seems correct. But I have not disassembled the device to verify. The power monitor settings where copied from Blitzwolf but seems to work.

Values in migrate.ino might be wrong. Could not find any documentation for this file and it's purpose.

I added a feature request matching this PR, resolve #2114

setSetting("btnGPIO", 0, 0);
setSetting("btnRelay", 0, 0);
setSetting("relayGPIO", 0, 14);
setSetting("relayType", 0, RELAY_TYPE_NORMAL);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do not trust the values in this file. (See PR comment)

Copy link
Collaborator

Choose a reason for hiding this comment

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

migrate() setup code effectively does nothing atm, but thanks for noticing.

I will be removing this whole part of the function though, so technically anything here that does not break build is ok.

@mcspr mcspr merged commit 55a73b1 into xoseperez:dev Jan 20, 2020
@mcspr mcspr added this to the 1.14.2 milestone Mar 13, 2020
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.

Support for Avatto NAS-WR01W
2 participants