IoT Commit : IoT Github Action

My Workflow
What does this github action do ?
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.
Few Benefits of the Github Action:
  • The on and off event of the lights for specified time let you know that this much time has been passed(here it is 3600s). So inshort, this action will work as Alarm or timer for you but little bit interesting one.
  • To start the lights on again for 3600 seconds(time can be changed) you need to commit code again on github. So you can do your task effectively and quickly.
  • Submission Category:
    Interesting IoT
    Yaml File or Link to Code
    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 }}
    Secrets Configuration :
    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).
    Image description
    Add email and password as Repository secrets.

    Limitations :
  • The process only works if your smart lights are connected to VeSync.
  • Few a times the process quits automatically.
  • Only few well known smart lights brand can be connected to VeSync.
  • License
    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.

    26

    This website collects cookies to deliver better user experience

    IoT Commit : IoT Github Action