♫musicjinni

Node Red + Wemos Mini + Home Assistant (MQTT)+Alexa | Tutorial # 34

video thumbnail
In this tutorial, you will learn how to setup node red raspberry pi on Home Assistant and control Wemos D1 mini.

GitHub Code:

https://github.com/nassir-malik/Node-Red_Wemos_Mini_Alexa_HomeAssistant_MQTT_Switch


Function code:

var status = msg.payload;
msg={
"payload":status.toUpperCase(),
"topic": "netmedias/fan/switch",

};
return msg;


Home Assistant Config text:

mqtt:
password: "welcome"


light:

- platform: mqtt
name: "fan"
state_topic: "netmedias/fan/status"
command_topic: "netmedias/fan/switch"
optimistic: false
qos: 0

panel_iframe:
configurator:
title: Configurator
icon: mdi:wrench
url: http://192.168.0.22:3218

nodered:
title: Node-RED
icon: mdi:nodejs
url: http://192.168.0.22:1880/
Disclaimer DMCA