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 Light bulb L530E? #6

Closed
SrZorro opened this issue Feb 17, 2021 · 7 comments
Closed

Support for Light bulb L530E? #6

SrZorro opened this issue Feb 17, 2021 · 7 comments

Comments

@SrZorro
Copy link

SrZorro commented Feb 17, 2021

There is any plans about implementing the L530E? I have that light bulb, If I could have some pointers about the API and whatnot I could try to do a pull request for it.

@dickydoouk
Copy link
Owner

I don't have that light bulb but I would image on/off/dim functionality should work. Not sure about colour/hue setting as I am unclear the property name. Can you confirm if the API can turn the bulb on/off. You can use the api.test.js file and put your credentials in at the top and rename one of the xtest functions to test then run npm test. Would be useful if you could paste here the result of the getDeviceInfo result. Thanks

@SrZorro
Copy link
Author

SrZorro commented Feb 17, 2021

Perfect, tomorrow I will do that and come back with the results 👍

Edit: Tomorrow will be this weekend, sorry for the delay

@SrZorro
Copy link
Author

SrZorro commented Feb 20, 2021

Perfect, all methods are working.

getDeviceInfo

{
   "device_id":"<device id>",
   "fw_ver":"1.1.8 Build 20201210 Rel. 55943",
   "hw_ver":"1.0.0",
   "type":"SMART.TAPOBULB",
   "model":"L530 Series",
   "mac":"<mac addres>",
   "hw_id":"<hw_id>",
   "fw_id":"<fw_id>",
   "oem_id":"<oem_id>",
   "specs":"EU",
   "lang":"es_ES",
   "device_on":true,
   "on_time":711,
   "overheated":false,
   "nickname":"bedroom",
   "avatar":"floor_lamp_1",
   "brightness":10,
   "dynamic_light_effect_enable":false,
   "color_temp":6000,
   "default_states":{
      "type":"last_states",
      "state":{
         "brightness":10,
         "color_temp":6000
      }
   },
   "time_diff":60,
   "region":"Europe/Madrid",
   "longitude":"<longitude int>",
   "latitude":"<latitude int>",
   "has_set_location_info":true,
   "ip":"<local id>",
   "ssid":"<ssid>",
   "signal_level":3,
   "rssi":-37
}```

@dickydoouk
Copy link
Owner

Thats excellent, thanks for doing that. I'm glad it works.

Looks like the property name for the colour is color_temp so will leave this ticket open till we add that property.

@SrZorro
Copy link
Author

SrZorro commented Feb 23, 2021

There should be more properties, I will change the settings from the app and document all the actions, because I don't see an option for the hsl value

@dewhurstwill
Copy link
Contributor

dewhurstwill commented May 27, 2021

I have written a colour conversion & api helper, feel free to review and merge.
PR #7
@dickydoouk

@dickydoouk
Copy link
Owner

Closing this issue as PR working

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

3 participants