Skip to content

A Journey in to MQTT With Roller Shutters, Mosquitto, HomeAssistant & Low Powered Micro-Controllers

A Journey in to MQTT With Roller Shutters, Mosquitto, HomeAssistant & Low Powered Micro-Controllers

WIZnet

Published January 02, 2023

Original author: Shane Baldacchino · ItalyOriginal source (new tab)

A Journey in to MQTT With Roller Shutters, Mosquitto, HomeAssistant & Low Powered Micro-Controllers

Components

Hardware components

Project description

The Arduino needs to know what to do. I thought about explaining this but I think for those techincally inclined the code speaks volume below but in essence we are Establishing an IP connection Connecting to the MQTT Broker, Mosquitto Subscribing to topics Listening for MQTT messages Taking action on received messages Publishing updates to MQTT broker on state change // INCLUDE SYSTEM LIBRARIES #include <util.h> #include <Ethernet2.h> #include <SPI.h> #include <PubSubClient.h> //Setup Ethernet Controller byte mac[] = { 0x90, 0xA2, 0xDA, 0x10, 0XD0, 0x66 }; byte gateway[] = { 10, 0, 0, 1 }…

Keep reading with a free account

Guests can read 15 projects per visit. Log in or create a free account to read the full description, open the documents and join the comments.