Code Monkey home page Code Monkey logo

smartlife's Introduction

Smart Life / Tuya web interface

Instructions to run your own

  1. Clone this repository
git clone https://github.com/ndg63276/smartlife.git
  1. Enter the project folder
cd smartlife
  1. Run the included server by
python serve.py
  1. Navigate to http://localhost:8000 in your browser

Instructions to run your own using docker and docker compose

Of course you will require docker and docker-compose setup and working first

  1. Clone this repository
git clone https://github.com/ndg63276/smartlife.git
  1. Enter the project folder
cd smartlife
  1. Build a local docker image
docker build -t ndg63276/smartlife .
  1. Run Your locally built docker image with docker compose
docker compose up
  1. Navigate to http://localhost:8000 in your browser

Known Bugs

If you use the China region, you will need a CORS-anywhere server, see https://github.com/Rob--W/cors-anywhere for help. Once you have set one up, insert the address at the top of functions.js.

Website

This tool is available (without the CORS bug) at https://smartathome.co.uk/smartlife/

SmartAtHome

All the tools from the SmartAtHome website are available at https://github.com/ndg63276/smartathome

smartlife's People

Contributors

beat-yt avatar jonnyand avatar ndg63276 avatar solksjaer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

smartlife's Issues

Temperature & humidity sensor

Hello,

I just tested your app and saw that my temperature & humidity sensor was not discovered. Any possibility to add such sensor?

License

May I request that you provide a LICENSE file please?

Thanks!

No support for cameras?

I seem to have logged inn successfully, but It does not display anything.
I only see the buttons Theme, Autorefresh, Refresh and Logout.

Is this because there is no support for security cameras (I only have these on my Smart Life account)?

Regards,
JH

Login error

Hi, I've tried the three regions including 39 for Italy (I'm from Italy) but I get

{"responseStatus":"error","errorMsg":"Get accesstoken failed. Username or password error!"}

for all regions.

I am sure I am using the correct login and password: logged out, closed the app and logged back into the Smart Life app with the same credentials on my iPhone.

Region issue

Hi, may i know if i have an account in singapore. How do i change the region and the endpoints url? Or the API is only for EU now?

Cloned functionality to a .net core library

Hi Mark
not an issue but just as an FYI, your library was the best example I could find that allowed me to fetch details of my Tuya devices and then switch them on and off!

I've cloned the function.js capabilities into a .net core library, hosted at https://gitlab.com/skotl/tuya.net, as I'll be calling this (hopefully ๐Ÿ˜„) from a Microsoft Teams SDK app.

I hope it's ok to give it a mention and let people know that if they're looking for a .net library then this is available.

Thanks for your great work on this!
Cheers
Scott

Authentication

Hi,

for a few weeks now, every time I restart HA, I've been asked to re-authenticate myself in Smartlife. Can this be fixed?
I heard it was similar at TUYA, they probably fixed it at Tuya. Thanks Udo

Cant login with this API

Hi, why i cant login to access smart life devices with this API?

Already changed country code to 60

var data = {
"userName": username,
"password": password,
"countryCode": 60,
"bizType": "smart_life",
"from": "tuya",
}

get login failed error, I'm sure username and pass is right because i can login with the smartlife apps..

Am i wrong something here?

Btw, I'm from Malaysia

Message Center API

Hi, just wondering is there a way to pull the message center/alerts from tuya using a similar ajax functions? Really appreciate if you can guide me to the payload message header or to include in the future updates. I would love to make a donation to support this awesome project!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.