Skip to content

caitken-com/MQTT-Lightswitch-Controller-Software

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

MQTT-Lightswitch-Controller-V2

Copyright 2020 Bedrock Media Productions Pty Ltd www.bedrockmediaproductions.com.au

ARDUINO SCRIPT FOR RECEIVING BUTTON INPUTS OVER I2C AND PUBLISHING VIA MQTT

Features:

  • Single Arduino to read 96 inputs from MCP23017 IO expanders and publish events to MQTT.
  • Sends MQTT payloads as JSON formatted string for easy parsing within your favourite automation software.
  • Simple config.h file to edit your network and mqtt details, with main code ready to go without modification.
  • Configured to allow for multiple controllers.

Expected payloads

On (re)connection to MQTT broker:

{event: reconnected, ip: ###.###.###.###, controller: #}

On button press event:

{controller: #, button: #}

On heartbeat:

{event: status, ip: ###.###.###.###, controller: #}

Required libraries

CREDITS

Written by

  • Jon Oxer - Copyright 2015-2017 SuperHouse Automation Pty Ltd info@superhouse.tv
  • James Kennewell - Copyright 2019-2020 Bedrock Media Productions Pty Ltd james@bedrockmediaproductions.com.au
  • Chris Aitken @aitken85 - SuperHouse Automation Discord Server | github.com/caitken-com
  • Lusa @lusa - SuperHouse Automation Discord Server

DISTRIBUTION

The specific terms of distribution of this project are governed by the license referenced below.

LICENCE

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 3 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, see http://www.gnu.org/licenses/.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 82.0%
  • C 18.0%