Light-Commit
Home IoT device based Github Actions
Blog : https://dev.to/star_trooper/iot-commit-iot-github-action-369n
This action is basically fun IoT base project. It basically connects to the home smart lights with the help of VeSync's python package ,which I have used in this project and whenever someone makes commits on github the lights get on for few mins(Here I have set the timer to 3600s you can change if you want). And after the specified time the lights get automatically off. To make lights on again you have to create commit again.
Interesting IoT
Blog : https://dev.to/star_trooper/iot-commit-iot-github-action-369n
Usage:
Create .github/workflows/main.yml
directory in your repository
name: smart light action
on:
push:
branches: [ master ]
jobs:
smart_lights_job:
runs-on: ubuntu-latest
name: Turn on smart lights
steps:
- uses: actions/checkout@v2
- name: Trigger lights
uses: StarTrooper08/Light-Commit
with:
VESYNC_PASS: ${{ secrets.VESYNC_PASS }}
VESYNC_EMAIL: ${{ secrets.VESYNC_EMAIL }}
Add 2 parameter(VESYNC email and password) as repository secrets.
You can name the secrets(recommended) as above or different if you used different name don't forget to change it in other yaml code too.
Hardware config : You need to signup on VeSync portal with your email and connect smart light with it(you can also use Android App from playstore).
Add email and password as Repository secrets.
Limitations :
The MIT License
Copyright (c) 2021 StarTrooper08
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.