Can I switch the 12V garden lighting in my residential complex on and off with Hermetry City, or is there another way for now?
Translated from Türkçe by AI ·
Hello. I am on the management board of my residential complex. There are 12V LED wall lights along the garden path and at the car park entrance. They are powered by a solar panel + 100 Ah battery and are currently switched on and off by a mechanical time switch with a potential-free contact. Every time the seasons change someone has to go and adjust the clock, and nobody does 🙂My plan: switch the lamps with a Raspberry Pi Zero 2 W and manage them from Hermetry. I saw on the forum that Hermetry City is meant for street lighting and city services, so I am writing here. I have two questions:
- Can Hermetry City be used for this, and how do I open it?
- What is the easiest way to switch the 12V side? The total current of the lamps is around 4 A. Relay or MOSFET?
I can handle the backend side, but I am a beginner in electronics.
Selam. Oturduğum sitede yönetim kurulundayım, bahçe yolunda ve otopark girişinde 12V LED aplikler var. Güneş paneli + 100 Ah akü ile besleniyorlar, şu an kuru kontaklı mekanik bir zaman saati ile açılıp kapanıyor. Saat her mevsim değişince birinin gidip ayarlaması gerekiyor, kimse de gitmiyor 🙂
Planım: bir Raspberry Pi Zero 2 W ile lambaları anahtarlamak ve Hermetry’den yönetmek. Forumda Hermetry City’nin sokak aydınlatması ve şehir hizmetleri için olduğunu gördüm, o yüzden buraya yazdım. İki sorum var:
- Hermetry City bu iş için kullanılabiliyor mu, nasıl açılıyor?
- 12V tarafını en kolay nasıl anahtarlarım? Lambaların toplam akımı 4 A civarı. Röle mi, MOSFET mi?
Backend tarafını hallederim ama elektronikte acemiyim.
Translated from Türkçe by AI ·
I looked into City too, but I couldn’t find a page in the docs describing what it offers. A regular device + rules is already enough for this job.
City’ye ben de baktım ama dokümanlarda ne sunduğunu anlatan bir sayfa bulamadım. Bu iş için normal cihaz + kurallar yetiyor zaten.
Translated from Türkçe by AI ·
I’d just get a relay module, that’s the easiest. One pin from the Pi, done.
Röle modülü al geç bence, en kolayı. Pi’den bir pin, bitti.
Translated from Türkçe by AI ·
A relay would work too, but for two switchings a day a MOSFET is quieter and cleaner. My suggestion:A logic-level N-channel MOSFET (like IRLZ44N), low-side wiring. The positive of the lamps goes directly to 12V, the negative to the MOSFET’s drain, and the source to the battery (negative). Put a 100 Ω series resistor from the Pi’s GPIO to the gate, and a 10k pull-down between gate and source. Without the pull-down the lamps will flicker while the Pi boots. At 4 A the IRLZ44N runs comfortably without a heatsink. Don’t forget to join the Pi’s negative with the battery’s negative.For scheduling, use the Rules card in Hermetry:
- When: Sunrise or sunset, sunset, offset -15 minutes
- Then: Send command, device Pi, command
light.set, parameteron: true - A second rule: sunrise,
on: false
You need to add the command to the Commands catalog of the device profile. The site’s location must also be entered, otherwise the card won’t save: the location of the nearest asset on the device is used. Details: Rules card: triggers.On the Pi side, subscribe to the topic v1/rpc/req/+, drive the pin when light.set arrives, and reply via v1/rpc/res/<id>. That way the seasonal worry goes away too.
Röle de olur ama günde iki anahtarlama için MOSFET daha sessiz ve temiz. Benim önerim:
Lojik seviyeli N-kanal bir MOSFET (IRLZ44N gibi), low-side bağlantı. Lambaların artısı doğrudan 12V’a, eksisi MOSFET’in drain’ine, source aküye (eksi). Gate’e Pi’nin GPIO’sundan 100 Ω seri direnç, gate ile source arasına 10k pull-down. Pull-down olmazsa Pi açılırken lambalar yanıp söner. 4 A’de IRLZ44N soğutucusuz rahat çalışır, Pi’nin eksisi ile akünün eksisini birleştirmeyi unutma.
Zamanlama için Hermetry’de Kurallar kartını kullan:
- Ne zaman: Gün doğumu veya gün batımı, gün batımı, ofset -15 dakika
- Sonra: Komut gönder, cihaz Pi, komut
light.set, parametreon: true - İkinci bir kural: gün doğumu,
on: false
Komutu cihaz profilinin Commands kataloğuna eklemen lazım. Bir de yerin konumu girilmiş olmalı, yoksa kart kaydetmiyor: cihazın üstündeki en yakın varlığın konumu kullanılıyor. Ayrıntılar: Kurallar kartı: tetikleyiciler.
Pi tarafında v1/rpc/req/+ konusuna abone ol, light.set gelince pini sür, cevabı v1/rpc/res/<id> ile dön. Mevsim derdi de böylece kalmaz.
Translated from Türkçe by AI ·
Derya Hanım, thank you very much, it has been working for two days. On the first save the card showed a location warning; after I added the site as an asset and entered the coordinates, it saved. I connected the MOSFET with a pull-down, and now the lights no longer blink while the Pi boots. I had also tried a relay, but the clicking sound apparently bothered the guard 😄
Derya Hanım çok sağ olun, iki gündür çalışıyor. İlk kaydetmede kart konum uyarısı verdi, siteyi varlık olarak ekleyip koordinatı girince kaydetti. MOSFET’i pull-down ile bağladım, Pi açılırken lambalar artık yanıp sönmüyor. Röle de denemiştim, tık sesi bekçiyi rahatsız ediyormuş 😄
Translated from Türkçe by AI ·
We have the same setup in a park lighting test as well, and it works without problems with a sunset offset. Also send the battery voltage as telemetry, so if the panel is not enough in winter you will see it in advance.
Bizde de bir park aydınlatma denemesinde aynı kurgu var, gün batımı ofsetiyle sorunsuz gidiyor. Akünün gerilimini de telemetri olarak gönder, kışın panel yetmezse önceden görürsün.
- You must be logged in to reply to this topic.
Join the conversation
Sign in to ask and answer, like helpful posts and mark the reply that solved your problem. Every contribution earns points and levels.

