-
-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MQTT HomeAssistant relay control #1035
Comments
For connecting a relais, especially the dangerous D1-shields, read: https://bbqkees-electronics.nl/wiki/gateway/using-gateway-gpio.html Switching a gpio depends on ems-esp-version. You have not added the support-info, so i guess actual:
With HA integration i can't help. |
|
Yes, I know. That's why I made my own shield with an optoisolator. In addition, the relay is to switch the voltage-free (signal) contact.
I add analog output GPIO22, name relay. I add configuration.yaml: But it doesn't work. The relay works for me only as I directly control it from the EMS side. Unfortunately with the home assistant after adding the above code and trying to control it, nothing happens. I use ems-esp32s with firmware version 3.5: { |
Thx for the support info, you have ha-discovery enabled, so we need to fix this discovery to set the command topic right. |
Please check if discovery in https://github.com/MichaelDvP/EMS-ESP32/releases/tag/latest works. (I can not test, i don't use HA). |
I bought an EMS module from you and connected a WemosD1 S32 and a relay module to it. I added all this to my smart home "HomeAssistant". Unfortunately, I don't see any possibility for mqtt to add control of this relay directly from "HomeAssistant".
configuration.yaml I add this:
mqtt:
switch:
- name: "Piec1"
state_topic: "ems-esp/analogsensor_22"
command_topic: "ems-esp/analogsensor_22/set"
payload_on: "1"
payload_off: "0"
But isn't work.
Is it possible for me to be able to turn the relay on and off from within the smart home?
The text was updated successfully, but these errors were encountered: