This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Get MAC address - 'lescan' is persistent, look out for 'LYWSD02' and then CTRL+C and note MAC address: | |
hcitool lescan | |
# 2. Install python3 package: | |
pip3 install lywsd02 | |
# 3. Python3 script: | |
#!/usr/bin/env python3 |