Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/AnthonyKNorman/ESP8266-Home-Assistant-RGB-Bulb
This Micropython project is to Hack a TYWE3S board in a cheap WiFi RGB Bulb
https://github.com/AnthonyKNorman/ESP8266-Home-Assistant-RGB-Bulb
Last synced: 25 days ago
JSON representation
This Micropython project is to Hack a TYWE3S board in a cheap WiFi RGB Bulb
- Host: GitHub
- URL: https://github.com/AnthonyKNorman/ESP8266-Home-Assistant-RGB-Bulb
- Owner: AnthonyKNorman
- Created: 2018-10-12T09:49:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-12T09:56:38.000Z (about 6 years ago)
- Last Synced: 2024-04-22T12:33:10.705Z (8 months ago)
- Language: Python
- Size: 4.88 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-micropython - ESP8266-Home-Assistant-RGB-Bulb - This MicroPython project is to hack a TYWE3S board in a cheap WiFi RGB Bulb. (Libraries / Communications)
README
# ESP8266-Home-Assistant-RGB-Bulb
This Micropython project is to Hack a TYWE3S board in a cheap WiFi RGB BulbYou can follow the variuos teardown discussions here https://community.home-assistant.io/t/cheap-uk-wifi-bulbs-with-tasmota-teardown-help-tywe3s/40508?u=beantree
My user name is beantree
I managed to flash Micropython onto the TYWE3S board. I then found that each of the red, green, blue and white LEDs were controlled by independent Pins on the processor. Each of those Pins can be driven by PWM, which means the ability to control the brightness.
This code exposes that ability via an MQTT server, which, in turn, means I can use Home Assistant to control the bulb.
You can see my screenshot from HA in the discussion link.
tywe3s.py contains the main code. You need to edit this to set your wifi credentials and the address of your MQTT server.
main.py just menas the tywe3s.py autoruns at power up.