IoT Light Control GUI App – Python + MQTT + CTkinter | FuzzuTech Project
Demo : Click Video 👇👇👇 Description: Add YouTube video embed , short explanation of code, screenshots (from your GUI), and copy description content. Features: ✅ Full working Python code ✅ Real-time IoT demo with MQTT ✅ Beginner-friendly project with GUI Code : # gui_light.py import customtkinter as ctk import paho.mqtt.client as mqtt import json BROKER = "test.mosquitto.org" TOPIC_CMD = "fuzzutech/home/livingroom/light/cmd" TOPIC_STATE = "fuzzutech/home/livingroom/light/state" state = "OFF" def on_connect(client, userdata, flags, rc): print("Connected:", rc) client.subscribe(TOPIC_STATE) def on_message(client, userdata, msg): global state try: payload = msg.payload.decode() data = json.loads(payload) state = data.get("state", "OFF") status_label.configure(text=f"Light is {state}", text_color="green" if s...