How to control wifi relay by serial port of the ESP8266

Hi, thanks for your answer…

Sorry, but I don’t see why I should reveal my personal data and configuration publicly… Everyone in the world can read what we write here, the internet doesn’t forget… Only users are allowed to write, everyone is allowed to read and copy … This is not a “share your projects” page…

but troubleshooting…

As far as relays are concerned, I sent… There isn’t more of it in my yaml…

Your solution doesn’t work…

But I also read about the same problem on other sites… but ESP8266

here:
ESP8266 Relay (active low): how to prevent triggering on boot or reset (SOLVED) - #4 by wutr

I don’t know if I should also search for this file…

I have many relays myself, but none installed with ESPHome, but Arduino, Tasmota, EasyESP… But they are all the same in one thing:
there are different relays, “high/low” devices, so it has to be defined…

But that doesn’t work in ESPHome…

There are also different settings in Tasmota, I also have different relays, the 8-fold relays can also be connected differently, like the “single relays”… and the function (high/low) is also different…

But I still don’t quite understand why ESPHome is important for Home Assistant, all devices can be found via MQTT, even in Smartthings, which finds Sonoff devices (like Alexa and Google) very quickly, and Home Assistant without Smartthings is quite difficult does, with Sonoff, Ewelink, Tuya and Smarthome cloud devices… (there are few tricks, mostly with HACS)

Arduino also has a platform, “Cloud”, which apparently many don’t like, want to have “own cloud”, but it works…
Even, like Smarttings, is also free…

However, Home Assistant costs 5 EURO per month (Nabu Casa) and it only works partially…

I’m already considering not taking out a subscription to Nabu Casa for the next year, because if something only partially works, it’s of no value… Alexa also turns on the heating on the go, Amazon has almost everything is available and possible…

In Home Assistant I can’t even connect the relay, neither for the flower pump nor for the heating valve…

I bought a pi4 instead of a MiniPC, which would have been even cheaper…

what still annoys me:
at Amazon I pay almost the same for Prime, but I get support in my language and I can always be reached immediately…

I don’t pay anything with Google, but there is also great support in my language via chat immediately…

I don’t pay anything at Smartthings either, you’ve already paid enough for Samsung devices, but the support is also great…

The Arduino IDE is also free, and the support is also very good.

IOBrocker, I got support for NODERed last year, also in my language…

Home Assistant could be a good system, but not in this way…

----------------------------////----------------

that’s missing:

digitalWrite(Relay, HIGH);
pinMode(Relay, OUTPUT);
there are relays that work in reverse…
ON=LOW
OFF=HIGH

or the C+++ “language” as cmd…

on=1
off=0

I didn’t ask you to provide personal data. I asked you that when you provide your configuration, that you do so in the way the rules require, so that it appears as yaml, not as markup.

You posted this
output:

  • platform: ledc

    pin: GPIO21

    id: buzzer_out

Hard to say exactly what you intended as it is unreadable as yaml codde. I suspect you intended to post it as yaml, like this

output:
  - platform: ledc
    pin: GPIO21
    id: buzzer_out

But who knows as you can’t or won’t do a simple thing like post properly, despite being asked politely to do so.

Home Assistant costs nothng, Nabu Casa is optional and not essential.

Your choice, and nothing to do with choosing home assistant or esphome. Both work on a minipc.

ESP Home is simply a quick way to program an esp without having to write c or c++. If you are comfortable with the arduino ui and programming in c/c++ then all power to you. If you don’t like or cannot understand esphome then do not use it. Use arduino and mqtt.

I assume you mean in esphome. Which brings us back to not posting your code. We don’t want your personal stuff, just the relevant yaml, and the logs showing what doesn’t work.

hi. that was quick…

thanks…

I understand that getting data from others is the only way to improve anything, but I have over 50 devices…

When I click on “Download log data”, everything comes up, not individual devices…

---------------------////----------

how can I install ESPHome only on Pi? Without HA… like NodeRed… it also doesn’t work properly in HA recently… (“bad getawy”)

I don’t have MQTT and NodeRed in HA, so not in Docker…

ESPHome description is really an impertinence… Difficult to install without Linux knowledge…

On the HA pages there are at least “commands” that you should enter in PUTTY… But I can’t find any for ESPHome…

---------------------///////////-------------
So without nabucasa, HA has quite a few problems finding/connecting the devices…

Tuya doesn’t work at all…
Evelink is found, but not integrated… (also with NabuCasa) without Smartthings, HA can’t even find Sonoff, but Alexa, Google can find it without any problems…

Without Nabu Casa I would never have ended up at HA… I was looking for a way where the ESP’s would be integrated… After about 5 years, which have now passed since I started with it, I have However, I also found an SDK at Smartthings, which makes it possible to integrate ESPs… The installation on other platforms, such as Tasmota, EasyESP, Arduino (without line) is easier, like in ESPHome, or in HA. …

Are you doing this in esphome? Looks like you might be doing it in Home Assistant.

Really?

hi nick, thanks for your answer and support.

until a few days ago my system looked like this.

on pi4 = raspi OS 64bit vers.

With all hardware, i.e. WLAN and also LAN…

Mosquito and NodeRed also ran here, normally, on Raspi…

HA as “Core, Docker Verse” with “supervised”

As written: it worked…

I got calls in HA to update “NetworkManager”, I did that and since then HA hasn’t started anymore…

Yes, ESPHome was here in HA because I didn’t manage to install neither in Windows nor in Pi…

I do not understand the description, unfortunately it is described chaotically, but I did not find sufficient help on the Internet either, apparently many users are a bit overwhelmed (especially win users)

It is not understandable where and what to install…

In HA or in pi?

I wanted to run ESPHome other than HA because the Raspi4 has no issues creating/updating files, only the Pi3…

Raspberry is ok…

So I took my other Pi (the Pi3) where HA is installed as the OS to be able to continue using HomeAssistant at all…

I also changed my MQTT back, to HA…

Unfortunately I don’t have ESPHome anymore…

HA (on pi3) found the devices, also added them, but I can’t even “execute update”…

I will keep trying to install ESPHome somehow or do I have to reinstall all in Arduino…

Since this “network manager problem” NodeRed doesn’t work either, and it also has a problem in Pi 3… Hue Magic I had to press the button 5 times and “integrate”, and only then HA doesn’t work anymore asked about it when I deleted the complete NodeRed folder… Only now my automation is gone too… I need to find a solution how to get from one Node to another now without NodeRed and without EspHome, especially the Temperatures from Phillips Hue and the BLE measurements (BLE tracker)

If you have any idea as a solution, I’d appreciate it… (thanks for that)

You seem to have a lot of errors that are probably off topic in this thread. Maybe your network manager problem is sorted here. Supervisor unsupported after latest update 2022.09.1

Hello,

I don’t know what this “network manager” does, but it doesn’t matter either…

HA OS is running on pi3… after update (10.2l without problems, with MQTT+ESPHome-Nodered…

Pi 4 reinstall raspi.

how esphome on raspi os?

How to install esphome on raspberry pi OS - I would use it via docker per this page Getting Started with the ESPHome Command Line — ESPHome - which page I have already referred you to.

You really are off topic. Please start another topic, @ me in so I see it. This topic is bout controlling a wifi relay by serial port of esp8266, not about installing esphome.

Chinchilla - this worked for me - thanks.

I was under the impression we did not have to write all this.

But it works.

Hi Chinchilla,
I have just found this same wifi relay in an old box. and thought i would try to us it. I am new to ESPhome, how did you first connected to ESPhome through wifi? or USB? did you take the esp8266 off the board and onto a usb adapter for first connection to esp?
sorry for the dumb question.

D