ESP8266 oda düğümleri, ortada bir Pi, üstünde Hermetry: makul bir tasarım mı?
Yapay zekâ tarafından English dilinden çevrildi ·
Merhaba. 12 odalı bir misafirhaneyi yönetiyorum ve bu konuların hepsi bana yeni, bu yüzden lütfen sabırlı olun.Her odaya sıcaklık, nem ve kapı sensörleri ile birlikte bir de termosifon (geyser) sıcaklığı ölçmek istiyorum. Yeğenim bu düzeni önerdi ve her şeyi satın almadan önce mantıklı olup olmadığını öğrenmek istiyorum:
ESP8266 node per room (DHT22 + reed switch)
| Wi-Fi, MQTT
Raspberry Pi 4 in the office (Mosquitto + Node-RED)
| internet
Hermetry (dashboards, alarms to my phone)
Çoğu hafta yük atma (load shedding) yaşıyoruz, bu yüzden internet her seferinde 2 ila 4 saat kesiliyor. Bu sürede okumaları kaybetmek istemiyorum. İleride termosifonları panelden kapatmak da isteyebilirim. Bu uygulanabilir ve esnek mi, yoksa ortadaki Pi bir hata mı?
Hello. I manage a guest house, 12 rooms, and I’m new to all of this, so please be patient with me.
I want temperature, humidity and door sensors in each room, plus a geyser temperature. My nephew suggested this layout and I’d like to know if it is sensible before I buy everything:
ESP8266 node per room (DHT22 + reed switch)
| Wi-Fi, MQTT
Raspberry Pi 4 in the office (Mosquitto + Node-RED)
| internet
Hermetry (dashboards, alarms to my phone)
We get load shedding most weeks, so the internet goes down for 2 to 4 hours at a time. I don’t want to lose readings then. Later I may want to switch the geysers off from the dashboard. Is this feasible and flexible, or is the Pi in the middle a mistake?
Yapay zekâ tarafından English dilinden çevrildi ·
Uygulanabilir. Ancak Pi ile router’ı küçük bir UPS’e bağlayın, aksi halde yük atma sırasında Pi’nin size hiçbir faydası olmaz.
Feasible. Put the Pi and the router on a small UPS though, otherwise the Pi buys you nothing during load shedding.
Yapay zekâ tarafından English dilinden çevrildi ·
Bunun neredeyse aynısını birkaç küçük pompa istasyonunda çalıştırıyoruz, o yüzden bu konuda birkaç şey paylaşayım.Kesintileriniz göz önüne alındığında ortadaki Pi iyi bir tercih. Ağ geçidi olarak çalışmasını sağlayın: Hermetry’de “Bu cihaz bir ağ geçididir” olarak işaretlenmiş tek bir cihaz olsun ve Pi her odayı ilk bildirdiğinde o oda bir alt cihaz olarak eklensin. Node-RED, Mosquitto’dan oda mesajlarını toplasın, internet kesikken bunları bir dosyada ya da küçük bir SQLite tablosunda tutsun, sonra kendi zaman damgalarıyla gönderin:
topic v1/gw/telemetry
{"Room 4": [{"ts": 1793000000000, "values": {"temperature": 22.1, "humidity": 51, "door_open": 0}},
{"ts": 1793000300000, "values": {"temperature": 22.0, "humidity": 51, "door_open": 1}}]}
Herhangi bir veriye ts eklemeden önce Pi’nin doğru saate sahip olduğundan emin olun (açılıştan sonra NTP). Büyük bir birikim biraz daha yavaş boşalır, çünkü tekrar oynatmalar profilde kendi hız sınırına sahiptir; bu normaldir.Şofben kontrolü aynı Pi üzerinden yapılabilir. Alt bir cihaza gönderilen komut, ağ geçidine v1/gw/rpc üzerinden ulaşır; dolayısıyla Node-RED bunu dinleyip doğru odaya iletir. Ya da şofben kontrolcüsünü Hermetry’ye doğrudan bağlanan kendi cihazı yapabilirsiniz. Şofben için doğrudan bağlantıyı tercih ederim, daha az hareketli parça olur.Ağ geçidi konuları Devices behind a gateway sayfasında açıklanmıştır.
We run nearly this at a few small pump stations, so a couple of things from that.
The Pi in the middle is a good call because of your outages. Have it act as a gateway: one device in Hermetry marked “This device is a gateway”, and each room becomes a child device the first time the Pi reports it. Node-RED collects the room messages from Mosquitto, keeps them in a file or a small SQLite table while the internet is down, and then sends them on with their own timestamps:
topic v1/gw/telemetry
{"Room 4": [{"ts": 1793000000000, "values": {"temperature": 22.1, "humidity": 51, "door_open": 0}},
{"ts": 1793000300000, "values": {"temperature": 22.0, "humidity": 51, "door_open": 1}}]}
Make sure the Pi has the right time (NTP after boot) before you put a ts on anything. A big backlog drains a bit slower because replays have their own rate limit on the profile, that’s normal.
Geyser switching can go through the same Pi. A command sent to a child device comes down to its gateway on v1/gw/rpc, so Node-RED subscribes to that and passes it on to the right room. Or make the geyser controller its own device that connects to Hermetry directly. For a geyser I’d go direct, fewer moving parts.
Gateway topics are described in Devices behind a gateway.
Yapay zekâ tarafından English dilinden çevrildi ·
İkinizə de teşekkürler. UPS’i aldım, Pi iki haftadır ağ geçidi olarak çalışıyor. Geçen salı 4 saat elektrik kesildi ve sonrasında oda grafikleri hiç boşluk olmadan doldu. İlk denemede her oda için bir “Generic child” profili oluşturmuştum; sonra bağlanırken bir “type” göndermeyi öğrendim. Şofben kontrolcüsü kendi başına ayrı bir cihaz olacak.
Thank you both. Bought the UPS, the Pi has been running as the gateway for two weeks. Last Tuesday we had 4 hours off and the room charts filled in afterwards with no gap. The first try made a “Generic child” profile for every room, then I learned to send a “type” on connect. The geyser controller will be its own device.
- Bu konuyu yanıtlamak için giriş yapmış olmalısınız.
Sohbete katılın
Soru sormak ve yanıtlamak, yararlı gönderileri beğenmek ve sorununuzu çözen yanıtı işaretlemek için oturum açın. Her katkı puan ve seviye kazandırır.

