Hi
I have Wemos D1 mini and Wemos relay shield. Where can i find some working code for that ? Can’t find anything…
Relay pic https://i.imgur.com/gPuHOcM.png
Hi
I have Wemos D1 mini and Wemos relay shield. Where can i find some working code for that ? Can’t find anything…
Relay pic https://i.imgur.com/gPuHOcM.png
It is just a switch toggle. There should be an example to turn a LED on/off in the Arduino IDE, it is the same thing. I believe the relay uses D1 as the switch.
Finally found switching code from here. https://diyprojects.io/esp8266-dht22-mqtt-make-iot-include-home-assistant/#.Wows_KiWaUk
Wemos d2 to relay d1 and it works. Sorry im just new in this business
tasmota support wemos d1 mini. then mqtt from there try drzzs on youtube
Hi,
I’m novice in Mqtt… and bad in English.
I try to configure my Wemos relay shield, with this configuration in configuration.yaml:
switch:
- platform: mqtt
name: "Lampe"
command_topic: "lampe/gpio/5"
state_topic: "lampe/gpio/5/state"
payload_on: "1"
payload_off: "0"
qos: 1
retain: true
And nothing happened…
The Wemos is connected with HA, I can read Humidity and temperature from them:
MQTT : Connected to broker with client ID: ESPClient_2C:F4:32:13:14:46
822211: Subscribed to: lampe/#
822213: EVENT: MQTT#Connected
822387: DHT : Temperature: 0.00
822387: DHT : Humidity: 86.00
822390: EVENT: DHT#Temperature=0.00
822437: EVENT: DHT#Humidity=86.00
822448: Domoticz: Sensortype: 2 idx: 289 values: 0.00;86.00;3
822935: SW : GPIO 5 Set to 1
I’m not able to create a device in ESPEasy because GPIO 5 is unavailable.
I’m on Domoticz and can trigger the relay in http, I would like to use HA instead Domoticz… What is the good way ?