bruxy70 / Home-Assistant-ESPHome-Weather-Station

Nextion display with ESP8266 microcontroller (Wemos D1 mini) showing Home Assistant temperature sensors and weather forecast
MIT License
171 stars 30 forks source link

using TFT display with spi. #3

Open wisesokol opened 4 years ago

wisesokol commented 4 years ago

Is it possible to run your project on TFT with spi interface? I wanted to make weather station by adafruit, but I liked your project more. The display I bought is TFT 2.4 spi touch.

bruxy70 commented 4 years ago

I suppose it is. If your display is supported here https://esphome.io/index.html#display-components Or you can do that as a custom SPI device? https://esphome.io/custom/spi.html In any case, you'd have to basically change the whole display part. If you do that, let me know, we can perhaps share that for the others.

beatagerger commented 3 years ago

Hallo, mit Nextion und Internetwetter habe ich keine Probleme, auch verschiedene Räume kann in Nextion erstellen (Touch) aber wie verbinde ich die Räume mit der Anzeige? (viele ESP8266 mit eigenen Nextion zu eine große "Zentral-Display")?

bruxy70 commented 3 years ago

The display communicates with the microcontroller using UART communication - via 4 wire SPI bus - TX, RX, and 5V.

beatagerger commented 3 years ago

Hallo bruxy, ja. Salon: ESP8266 Wetterstation mit Nextion 3,5 Zoll) (D4) und BME (D1 u D2) Hier auch Wettervorhersage von Openweather Küche: ESP8266 (DHT)Temperatur/Humidity/Messior(Pflanzen)-Anzeige mit Nextion (2,8 Zoll) Eingang: ESP8266 (BME) Messer Aussentemperatur/Hum/At Wintergarten: ESP8266 Temperatur/Humidity-Anzeige. Aber wie sende ich alle Daten von Küche, Wintergarten & CO. auf ein anderes Gerät (ESP 32 oder 8266 mit Nextion 7") im selben WLAN?????

beatagerger commented 3 years ago

von 3 oder 4 ESP (Pool Wasser Temperatur von Garten) Daten anzeigen auf ein anderes Gerät, ESP mit Nextion im selben WLAN?

bruxy70 commented 3 years ago

Sorry @beatagerger , I do not speak German. But from what I understand - the individual sensors will pass the temperature/humidity to Home assistant (via API, or MQTT) over WiFi. Or you can use any other sensors, like Zigbee. Then the ESP32 or 8266 with display will read the values from Home Assistant and display them on the screen. It will not communicate directly to the sensors.

beatagerger commented 3 years ago

Google übersetzt gut.... hi-hi-hi... Ich bin zu blöd zu Pi und Pinguin.... Deshalb verwende ich Arduino. Wie kann man auf ein anderes Gerät per WLAN senden? Ich habe LED-Strip an ESP8266, diese kann auch GoogleAssistant ein/ausschalten. Aber wie leite ich Daten von einem ESP auf ein andere (ohne ESP-Server)

beatagerger commented 3 years ago

ich kann auf Thingspeak Daten senden. Das funktioniert gut. Alle Telefonen zeigen es an. Aber der große Nextion nicht.

beatagerger commented 3 years ago

image

Im Touch (Nextion) kann ich blättern. Das funktioniert. Nur wie mache ich es, wenn ich einen Raum anklicke, von diesem Raum Temperatur anzeigen?

beatagerger commented 3 years ago

Jeder Raum hat seinen eigenen Sensor. Messen, Daten an Thingspeak senden, Online-Wetter (Openwether) funktioniert. Nur das "Daten sammeln" oder auf ein andere Nextion senden, das funktioniert nicht.

beatagerger commented 3 years ago

Ich verstehe den ESP-Home nicht. Würde gerne nutzen, nur wie machen? Muss ich etwas auf ESP8266/32 erstellen? Wenn ja, was? Ich finde es nicht. Ist das auch wie Thingspeak? Ein API?

bruxy70 commented 3 years ago

https://esphome.io/components/wifi.html https://esphome.io/components/api.html

beatagerger commented 3 years ago

danke. gerade hier lese ich. es gibt hier viele Beispiele, aber wie ich einen ESP-Home auf Android mache, finde ich nicht. ich finde nur, wie ich einen NODEMCU dazu füge Ist ESP-Home nur für Raspi?

bruxy70 commented 3 years ago

ESPHome is a system to control your ESP8266/ESP32 by simple yet powerful configuration files and control them remotely through Home Automation systems. https://esphome.io/ I do not think it works for RPi. I do not have any experience with RPi, sorry.

beatagerger commented 3 years ago

Danke. Ich möchte keinen Raspi. Ich weiß aber noch immer nicht welchen Code (Sketch) ich auf ESP laden soll? Und auf welcher Internetseite ist die Einrichtung? Ich habe in Youtube auch gesucht. (wird immer MQTT gezeigt, also Raspi) Kannst mir bitte die Internetseite schicken, wo die Einrichtung (Registrieren) erfolgt?

beatagerger commented 3 years ago

ich habe endlich etwas gefunden. https://www.youtube.com/watch?v=toANvJKUH3M

Wie installiert man deine Variante? Gibt es dafür einen Sketch auch?

beatagerger commented 3 years ago

also das war auch nichts... (Server mit Telefon) Ich hoffe, das bringt mich weiter: https://community.home-assistant.io/t/home-assistant-community-add-on-visual-studio-code/107863

beatagerger commented 3 years ago

image Endlich!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Gefunden! now, let´s go starting....

bruxy70 commented 3 years ago

ESPHome is an addon to Home Assistant. If you do not have Home Assistant, you have to look for another solution.

beatagerger commented 3 years ago

Bitte! "Home Assistant"??????????? Alexa? Google? Diese kann man mit IFTT kompliiren, Wie Home Assistant?

beatagerger commented 3 years ago

image diese?

bruxy70 commented 3 years ago

If you want a solution for Alexa or Google, then buy a packaged solution that works with one of these services (they would have their logo on the packaging), and use Google/Alexa display. So to save you some time, you can stop looking in here and look on Amazon instead.

This repo is a DYI project, for people who like that kind of stuff. And for that HA is a great platform, since it is open. And ESPHome is Home Assistant add-on.

beatagerger commented 3 years ago

Ich habe schon Alexa und auch Google als Assintant. IFTT hilft dabei auch ESP dazu fügen (wenn erwünscht) Wenn aber meine Geräte und Anzeige damit nicht funktioniert, muss ich andere Lösung suchen. Bisher war mir ESP Home nicht bekannt. Das ist für mich neu. Ich weiß nicht,

beatagerger commented 3 years ago

Also HOME ASSINTANT lauft auch auf Android Tablet (13 Zoll) Aber wie es dennoch auf einen Nextion anzeigt, was ich dort habe will, weiß ich immer noch nicht.............

beatagerger commented 3 years ago

also. Wenn nicht richtig, biite um Erklärung.... ESP HOME = SERVER (wegen große Datenmengen nicht gut auf NODEMCU, sondern auf Raspi, aber es funktioniert auf ESP32) ESP HOME ASSISTANT = Verbinden einen NODEMCU mit SERVER (HOME)

Aber! ASSISTANT schickt Daten an HOME. (das kann man auch auf Google, oder Alexa mit IFTT) ASSISTANT = NODEMCU=Client.

Aber! Es sollte möglich sein, in einem WLAN viele Client untereinander verbinden können (ohne HOME SERVER)

bruxy70 commented 3 years ago

Not sure I follow.

Home Assistant is an Open Source Home Automation solution. It runs on a number of platforms, including RPi, but also virtual machine or Linux Docker container.

ESPHome is an add-on to Home Assistant. I do not think you can use it without Home Assistant - it compiles the firmware for ESP8266/ESP32 from Home Assistant, loads it to the micro-controller, and communicates with Home Assistant through Home Assistant API or MQTT.

I understand that you do not have Home Assistant. From your comments, I gather that this is too complicated for you - why should you need Home Assistant - you want to communicate with Alexa directly, or via IFTTT.

And I agree, that having Home Assistant just because of this makes no sense. I have Home Assistant as a central point of my home automation - and there are many reasons why I decided to do that, But you might have different reasons and Home Assistant might not be the best solution for you.

If this is the case, then you came to a wrong place. This solution is based on an integration with Home Assistant. If you do not have it and do not plan to have it, you are just loosing your time here. Drop it and look for other solutions. Maybe Tasmota might be the answer. I do not know, I do not really have an experience with IFTTT or direct integration of DYI solutions with Alexa. Sorry

beatagerger commented 3 years ago

Hi, I've been using "assistants" since Cortana, Alexa and Google were around. I've started with automation for over 15 years, especially with Sonof, because they can operate all "assistants". My Galusie goes up and down automatically, depending on whether the sun goes up or down. The lights, like Hue, also work great. I have integrated an LED strip into the ESP 8266. I can also operate it on the Android (it's called "WLED")

My question was because Arduino is to be installed on Windows, but MQTT is more like Ubuntu, don't understand why this is supposed to be? Raspi is more like Ubuntu, has nothing to do with Arduino.

Anyone can have a "Home Assistant", but in different ways. I have a NAS, but not from Synergie, and unfortunately I still haven't found anything in years that I could run (where there is also PLEX etc.) Running a Windows PC 24 hours a day is an exaggeration.

So I prefer Google, Alexa, and CO. (All devices have their own server, and I just have to make sure that they are compatible with each other. For example, not only Philips lights work with HUE, and the TUYA devices can also be linked to EWELINK or SMARTHOME. ......) From vacuum cleaner robots to pool pumps, everything runs automatically with us.

But I still haven't figured out what this client, "ESP-HOME Assistant" is for? What should it connect to? What should it serve?

With TFFT I can also connect any Nodemcu to Google or Alexa. You only have to give a real name instead of having the router assign an IP address (set a fixed IP in the router)

I use Node mcu more as a thermostat, water level tester, with sensors ... To be able to operate the heating properly, to be able to keep pool water warm. Do not pour over plants.

What drives me now is a real central weather station ...... Not such "mini weather forecasts", with which the Internet is full, on mini OLED displays ..... For me, a "station" means everyone Collect measured values ​​and show them on a display ..... (Nextion with 10 "but thanks to Thinspeak it also works on a tablet)

Since the ITEAD sketch caused quite a headache and had to read a lot, I came across the "HOME ASSISTANT" page ...... I think the many translations mean that some things are thought and used differently from what they were actually intended for .....

What I found in Github, so to include a NODEMCU in Smarthome as a client, does not mean "HOMEASSISTANT" ....... As a clien, it is part of a smart home, whereby a smart home also requires an assistant that gives the commands for control.

I do it as a voice command. My automation takes place via the display, where I configure the various devices. E.g .: The pool is cleaned daily. With robot and filter system, where the water is also heated, and in addition to that, fresh water is also replenished when the water level falls (otherwise the filter pump has a problem) The NODEMCUs monitor the temperature and water level; Alexa switches the pump, heater and filter. Super easy to set up in IFFTT ... "if that, then that"

Best regards

Gesendet von Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 für Windows 10

Von: Vaclavmailto:notifications@github.com Gesendet: Freitag, 12. Februar 2021 20:47 An: bruxy70/Home-Assistant-ESPHome-Weather-Stationmailto:Home-Assistant-ESPHome-Weather-Station@noreply.github.com Cc: beatagergermailto:beatagerger@msn.com; Mentionmailto:mention@noreply.github.com Betreff: Re: [bruxy70/Home-Assistant-ESPHome-Weather-Station] using TFT display with spi. (#3)

Not sure I follow.

Home Assistant is an Open Source Home Automation solution. It runs on a number of platforms, including RPi, but also virtual machine or Linux Docker container.

ESPHome is an add-on to Home Assistant. I do not think you can use it without Home Assistant - it compiles the firmware for ESP8266/ESP32 from Home Assistant, loads it to the micro-controller, and communicates with Home Assistant through Home Assistant API or MQTT.

I understand that you do not have Home Assistant. From your comments, I gather that this is too complicated for you - why should you need Home Assistant - you want to communicate with Alexa directly, or via IFTTT.

And I agree, that having Home Assistant just because of this makes no sense. I have Home Assistant as a central point of my home automation - and there are many reasons why I decided to do that, But you might have different reasons and Home Assistant might not be the best solution for you.

If this is the case, then you came to a wrong place. This solution is based on an integration with Home Assistant. If you do not have it and do not plan to have it, you are just loosing your time here. Drop it and look for other solutions. Maybe Tasmota might be the answer. I do not know, I do not really have an experience with IFTTT or direct integration of DYI solutions with Alexa. Sorry

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/bruxy70/Home-Assistant-ESPHome-Weather-Station/issues/3#issuecomment-778415095, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN6UJIAZJW6NZZXV74YSAELS6WAVTANCNFSM4KGXYQAA.

beatagerger commented 3 years ago

Hi,

I think, you misunderstood me. I have smart home. I also have 2 ladies who assist me. I've already automated a lot. I don't know "ESP HOME", so I read it, I just don't see the point, but maybe because I don't like Ubuntu or Raspery.

Gesendet von Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 für Windows 10

Von: Vaclavmailto:notifications@github.com Gesendet: Freitag, 12. Februar 2021 13:29 An: bruxy70/Home-Assistant-ESPHome-Weather-Stationmailto:Home-Assistant-ESPHome-Weather-Station@noreply.github.com Cc: beatagergermailto:beatagerger@msn.com; Mentionmailto:mention@noreply.github.com Betreff: Re: [bruxy70/Home-Assistant-ESPHome-Weather-Station] using TFT display with spi. (#3)

If you want a solution for Alexa or Google, then buy a packaged solution that works with one of these services (they would have their logo on the packaging), and use their display. So to save you some time, you can stop looking in here and look on Amazon instead.

This repo is a DYI project, for people who like that kind of stuff. And for that HA is a great platform, since it is open. And ESPHome is Home Assistant add-on.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/bruxy70/Home-Assistant-ESPHome-Weather-Station/issues/3#issuecomment-778167279, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN6UJIDYTV4IU7JKQJMRZSTS6UNJXANCNFSM4KGXYQAA.

beatagerger commented 3 years ago

I still don't know what this is, "HOME ASSISTANT"

Gesendet von Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 für Windows 10

Von: Vaclavmailto:notifications@github.com Gesendet: Freitag, 12. Februar 2021 13:21 An: bruxy70/Home-Assistant-ESPHome-Weather-Stationmailto:Home-Assistant-ESPHome-Weather-Station@noreply.github.com Cc: beatagergermailto:beatagerger@msn.com; Mentionmailto:mention@noreply.github.com Betreff: Re: [bruxy70/Home-Assistant-ESPHome-Weather-Station] using TFT display with spi. (#3)

ESPHome is an addon to Home Assistant. If you do not have Home Assistant, you have to look for another solution.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/bruxy70/Home-Assistant-ESPHome-Weather-Station/issues/3#issuecomment-778163936, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN6UJIAHHAJIQUPPLNYWVG3S6UMNZANCNFSM4KGXYQAA.

beatagerger commented 3 years ago

homeassistant (blue house) can be found in Android, Google Home, Alexa, aös to install or download as "API" for ESP have not yet found .......... In IO I only found packages. Not the API or Sketch. I know that many people are afraid of "their data", so they prefer a server at home ...... I don't ..... I also know that with TASMOTA or chips sonoff can do a lot ...... But soldering is not really my thing, especially when such micro parts are possible .......

I once sat in a wheelchair for over a year due to an accident ... That's when I realized that it wouldn't work without automation, if, as a robot, I am sick or cannot ....... That's how I started, but it's also addicting because you always find something ...... Gesendet von Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 für Windows 10

Von: Vaclavmailto:notifications@github.com Gesendet: Freitag, 12. Februar 2021 20:47 An: bruxy70/Home-Assistant-ESPHome-Weather-Stationmailto:Home-Assistant-ESPHome-Weather-Station@noreply.github.com Cc: beatagergermailto:beatagerger@msn.com; Mentionmailto:mention@noreply.github.com Betreff: Re: [bruxy70/Home-Assistant-ESPHome-Weather-Station] using TFT display with spi. (#3)

Not sure I follow.

Home Assistant is an Open Source Home Automation solution. It runs on a number of platforms, including RPi, but also virtual machine or Linux Docker container.

ESPHome is an add-on to Home Assistant. I do not think you can use it without Home Assistant - it compiles the firmware for ESP8266/ESP32 from Home Assistant, loads it to the micro-controller, and communicates with Home Assistant through Home Assistant API or MQTT.

I understand that you do not have Home Assistant. From your comments, I gather that this is too complicated for you - why should you need Home Assistant - you want to communicate with Alexa directly, or via IFTTT.

And I agree, that having Home Assistant just because of this makes no sense. I have Home Assistant as a central point of my home automation - and there are many reasons why I decided to do that, But you might have different reasons and Home Assistant might not be the best solution for you.

If this is the case, then you came to a wrong place. This solution is based on an integration with Home Assistant. If you do not have it and do not plan to have it, you are just loosing your time here. Drop it and look for other solutions. Maybe Tasmota might be the answer. I do not know, I do not really have an experience with IFTTT or direct integration of DYI solutions with Alexa. Sorry

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/bruxy70/Home-Assistant-ESPHome-Weather-Station/issues/3#issuecomment-778415095, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AN6UJIAZJW6NZZXV74YSAELS6WAVTANCNFSM4KGXYQAA.

beatagerger commented 2 years ago

A year ago I asked a few questions, but probably because of the translation, they didn't understand me. Even then, I asked the question why "NSPanel was invented" lately.

However, just like a year ago, it wasn't about "SPI connection"

this is wrong...

It is a connection "UART" or "communication port"...

not "4-wire SPI", but "2-wire communication" (TX-RX)

So that's a little misleading...

Just like a year ago, in "ESPHome" and NOT in Home Assistant (HA) there are still problems related to Nextion, especially "Page Display"

My situation was this:

ESP connected to sensors + display (Nextion). All values ​​(value of sensors) are sent to HA via MQTT. Today I know this is called "mqtt publish".

But the problem is from HA import to Nextion. So the query, as "client".

A year ago I was shown how it works with NodeRed. Not in ESPHome...

In Home Assistant, but with the help of NodeRed.

ESPHome (I already know that today) is a replacement for ArduinoIDE, or EasyESP, nothing else, it's like "ESP-Flash"...

It's a pity that nobody could explain it to me back then... By the way, I still don't use ESPHome to this day because it just "bitters way too much". I've stuck with IDE, or EasyESP, to this day