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

Support for smart kettle - assistance requested #10

Open
jezzaaa opened this issue Sep 28, 2019 · 0 comments
Open

Support for smart kettle - assistance requested #10

jezzaaa opened this issue Sep 28, 2019 · 0 comments

Comments

@jezzaaa
Copy link

jezzaaa commented Sep 28, 2019

Hi. I'm running v0.0.2 docker on a RPi and it works well for two light bulbs I have. I recently acquired a smart kettle that uses Smart Life app and Tuya network. I'd like to add support for this, but I'm not sure how. I can write code (new to JS though) so I should be able to do something. I've started writing a script using tuya-api.

I'd be grateful for any help you could give me.

My problems are:

  1. how to incorporate code into ty-connnector

Is there a git repository I can use to get the code, maybe submit PRs? Is there a device type that I can use so that SmartThings recognises the device as a kettle?

  1. how to work out controlling the kettle

I can read the current water temperature, and I can turn on and off the kettle. I'd like to be able to use all of the other features. See the app interface here:

image

and tapping on "keep warm":

image

I don't expect to be able to control the schedule, but other features would be nice.

Apart from turning on and off, the kettle supports "keep at temp X" where X is a number in "range":["40","50","60","80","90","currenttemp"]. I posted the schema to https://github.com/clach04/python-tuya/wiki/DeviceSchemas.

There are four dps IDs. I'm still trying to work out what they do.

id=1 is power status, initially undefined but set to true if kettle is turned on and false if it's turned off

id=5 is water temp

id=101 and 102 always return undefined. I can set the value of id=102 to any of the strings in the range listed above, but it doesn't seem to change it.

Any help you can give would be gratefully appreciated.

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

No branches or pull requests

1 participant