Giter VIP home page Giter VIP logo

mysensors_monitorsrelay's Introduction

MySensors (Monitors) Relay

Introduction

I've two screens attached to my main computer. I prefer to put it to sleep rather than shut it down every day , so I have to shutdown both screens everey evening, and turn them up every morning. As I am lazy, I've designed this node, to be able to either manually turn them on/off, or better, to automatically turn them off/on whenever the computer goes to sleep or wake up.

As always when adding a node into a room, I've also integrated a sensor to report the romm's temperature, instead of building a separate one.

Features

This MySensors node provides the following features :

  • Controls a Device state (On/Off) using a Relay
  • Switch the Device state via Radio (MySensors)
  • Toggle the Device state using a single push button
  • Feedback the device state using 2 leds (Green and Red)
  • also reports Room temperature every minutes
  • recovers the last state when powering up
  • blinks the green led while sending the temperature
  • blinks the red led while receiving a relay command

Script to trigger Switching the node upon Computer Sleep / WakeUp

On the Mac, I'm using the SleepWatcher script to trigger a mysensor command, fetching an 'action' URL from phpMydomo, whenever the Mac is going to sleep or to wakeUp. The 2 triggered scripts are as simple as:

on WakeUp :

wget http://IP_OF_MY_PHPMYDOMO/action?type=mysensors&preset=monitors_on

on Sleep :

wget http://IP_OF_MY_PHPMYDOMO/action?type=mysensors&preset=monitors_off

You would certainly find a equivalent solution on windows on Windows or Linux to trigger a script upon Sleep/WakeUp.

Schematic and Wiring

For simplicity, the radio module wiring is not described there. Please refer to this MySensors Page to learn how to conect the radio module.

schematic

wiring

License

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

mysensors_monitorsrelay's People

Contributors

soif avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.