Split-Klimagerät im Serverraum über Hermetry mit einem 16-A-Steckdosenrelais ein- und ausschalten
Von English mit KI übersetzt ·
Vielleicht ist dies das falsche Unterforum, es ist halb Hardware und halb „Wie mache ich das in Hermetry?“.In unserem Büro gibt es einen kleinen Serverraum mit einem wandmontierten Split-Klimagerät (Inverter-Typ, etwa 3,5 kW Kühlleistung). Diesen Sommer ist es zweimal an einem Freitagabend ausgefallen, und bis Montag hat es niemand bemerkt. Dort habe ich bereits einen Temperatursensor auf einem ESP32, der jede Minute room.temp an Hermetry sendet, und darauf einen Alarm. Was ich jetzt noch möchte, ist der andere Teil: das Klimagerät von einem Dashboard aus und später auch über eine Regel schalten.Mein Plan war günstig. Ich habe eine 16-A-Steckdose mit einem ESP8266 darin gekauft, meine eigene Firmware darauf geflasht und ihrem Profil einen Befehl plug.set gegeben (Parameter on, Ja/Nein). Die Steckdose abonniert v1/rpc/req/+ und antwortet auf v1/rpc/res/{id}. Auf meinem Schreibtisch mit einem Ventilator funktioniert es über eine Switch-Karte, ich sehe „Done.“ und der Status kommt zurück.Bevor ich das Klimagerät anschließe: Ist es ein sinnvoller Weg, eine Split-Einheit durch Trennen der Netzspannung zu steuern? Die Steckdose ist mit 16 A ohmsch angegeben. Ich habe keine Ahnung, wie hoch der Einschaltstrom des Außengeräts ist, und ich weiß auch nicht, ob das Klimagerät nach einer Rückkehr der Stromversorgung von selbst wieder anläuft.
Sorry if this is the wrong sub-forum, it is half hardware and half „how do I do this in Hermetry“.
We have a small server room in our office with one wall-mounted split AC (inverter type, about 3.5 kW cooling). Twice this summer it tripped on a Friday evening and nobody noticed until Monday. I already have a temperature sensor in there on an ESP32 that sends room.temp to Hermetry every minute, and an alarm on it. What I want now is the other half: switch the AC from a board, and later from a rule.
My plan was cheap. I bought a 16 A plug with an ESP8266 inside, flashed my own firmware on it and gave its profile a plug.set command (param on, Yes/no). The plug subscribes to v1/rpc/req/+ and answers on v1/rpc/res/{id}. On my desk with a fan it works from a Switch card, I see „Done.“ and the state comes back.
Before I plug the AC into it: is cutting mains to a split unit a sane way to control it? The plug says 16 A resistive. I have no idea what the inrush of the outdoor unit is, and I also do not know if the AC comes back by itself when power returns.
Von English mit KI übersetzt ·
Wir haben genau das in einem Hotel-Büro ausprobiert. Nach der Rückkehr der Stromversorgung blieb das Gerät mit einem Piepton im Standby und benötigte die Fernbedienung. Für uns hat das Abschalten der Stromversorgung das Gerät daher nur ausgeschaltet, nie wieder eingeschaltet.
We tried this exact thing in a hotel back office. After the power came back the unit sat in standby with a beep and needed the remote. So for us cutting power only ever turned it off, never on.
Von English mit KI übersetzt ·
Ein separater Punkt zur Klimatechnik. Diese Steckdose steht in Ihrem Serverraum und kann dort eine Last schalten, also behandeln Sie sie wie jedes andere Gerät mit Zugriff. Belassen Sie ihr Profil bei nur TLS, geben Sie ihr ein eigenes Profil statt das Sensorprofil zu teilen, und tragen Sie den öffentlichen Bereich Ihres Büros unter Erlaubte Netzwerke ein, damit ein von dieser Steckdose kopiertes Token überall sonst nutzlos ist. Billige Steckdosen werden häufiger geöffnet und ausgelesen, als man denkt.
Separate point from the HVAC side. That plug sits in your server room and can switch a load there, so treat it like any other device with access. Keep its profile TLS only, give it its own profile instead of sharing the sensor one, and put your office’s public range under Allowed networks so a copied token from that plug is useless anywhere else. Cheap plugs get opened up and dumped more often than people think.
Von English mit KI übersetzt ·
Brian, erledigt, es hat jetzt ein eigenes Profil und der Office-Bereich ist fixiert.emily23, du hast recht und das macht meinen Plan zunichte. Ich habe es in der Mittagspause getestet: Stecker 30 Sekunden gezogen, wieder eingesteckt, das Innengerät hat zweimal gepiept und blieb aus. Der Stecker kann es also nur abschalten, und einen Inverter-Kompressor mitten im Zyklus abzuwürgen ist wahrscheinlich auch nicht gut.
Brian, done, it has its own profile now and the office range is pinned.
emily23 you are right and that kills my plan. I tested it at lunch: pulled the plug for 30 seconds, plugged back, the indoor unit beeped twice and stayed off. So the plug can only kill it, and killing an inverter compressor mid-cycle is probably not great either.
Von English mit KI übersetzt ·
Ich bin im IoT-Bereich neu, kenne mich aber mit HVAC aus unseren Gebäuden ein wenig aus, und wir hatten dieselbe Diskussion mit unserem Installateur.Finger weg vom Netz. Die meisten Wand-Splitgeräte dieser Größe haben an der Platine der Inneneinheit einen Anschluss für einen externen Ein/Aus-Kontakt (Installateure nutzen ihn für Keycard-Schalter in Hotels und für die Abschaltung über die Brandmeldezentrale). Manche Marken benötigen dafür einen kleinen Schnittstellenadapter; die Teilenummer für Ihr Modell kennt der Installateur. Ein geschlossener Kontakt bedeutet Betrieb, ein offener Kontakt bedeutet Stopp, und das Gerät durchläuft seine normale Start- und Stoppfolge, sodass der Verdichter geschützt ist und es nach einem Stromausfall nach seiner eigenen Logik von selbst wieder anläuft.Das Steckdosenrelais schaltet also nicht mehr die Klimaanlagenlast, sondern nur noch diesen Kleinspannungskontakt. Ihre ESP8266-Firmware und der Befehl plug.set bleiben genau so, wie sie sind; ich würde ihn in etwas wie ac.enable umbenennen, damit niemand glaubt, er schalte den Strom ab.Auf der Hermetry-Seite haben wir Folgendes gemacht:
- Der Befehl ist im Reiter Befehle des Profils auf der Stufe Basic, sonst sendet die Platine ihn nicht
- Schalterkarte, Aktueller Zustand an einen Schlüssel gebunden, den das Gerät tatsächlich meldet (wir haben den Laufstatuskontakt der Inneneinheit,
ac.running, ausgelesen), nicht an den Befehl - eine Regel:
room.tempsteigt über 27 und bleibt dort 5 Minuten, dann Befehlac.enablesenden mitontrue, dann Personen benachrichtigen
Die Seite zu Steuerkarten erklärt die Stufen- und Aktueller-Wert-Teile: Control cards. Den realen Zustand zurückzulesen hat uns gerettet: Ein Schalter, der „ein“ anzeigt, weil man ihn angeklickt hat, ist schlimmer als gar kein Schalter.
I am new to the IoT side but HVAC I know a bit from our buildings, and we had the same discussion with our installer.
Leave the mains alone. Most wall splits of that size have a connector on the indoor unit board for an external on/off contact (installers use it for key card switches in hotels and for fire panel shutdown). Some brands need a small interface adapter for it, the installer will know the part number for your model. A closed contact means run, open means stop, and the unit does its normal start and stop sequence, so the compressor is protected and it restarts after a power cut on its own logic.
So the plug relay does not switch the AC load any more, it only switches that low voltage contact. Your ESP8266 firmware and the plug.set command stay exactly as they are; I would rename it to something like ac.enable so nobody thinks it cuts power.
On the Hermetry side what we did:
- the command is Basic tier in the profile’s Commands tab, otherwise the board will not send it
- Switch card, Current state bound to a key the unit really reports (we read the indoor unit’s run status contact,
ac.running), not to the command - a rule:
room.temprises above 27 and stays so for 5 minutes, then Send a commandac.enablewithontrue, then Tell people
The control card page explains the tier and current value parts: Control cards. Reading back the real state is the part that saved us, a switch that shows „on“ because you clicked it is worse than no switch.
Von English mit KI übersetzt ·
Update für alle, die das später finden. Unser Gerät hat den Fernbedienungsanschluss zum Ein- und Ausschalten; der Installateur hat am Donnerstag ein zweiadriges Kabel daran angeschlossen. Der Stecker schließt jetzt nur noch einen potentialfreien Kontakt; ich habe den Relaisausgang aus dem Steckergehäuse in eine kleine DIN-Dose geführt. Der Laufstatus kommt über einen freien GPIO als ac.running zurück.Die Regel hat gestern tatsächlich ausgelöst, als der Raum 27.4 erreichte; die Klimaanlage startete und ich bekam die Benachrichtigung. Einen Fehler hatte ich am Anfang: Ich hatte Ask vor dem Schalten über den Schalter ausgeschaltet und es nach Rachels Kommentar zum versehentlichen Klicken wieder eingeschaltet.
Update for anyone finding this later. Our unit has the remote on/off terminal, the installer fitted a two wire cable to it on Thursday. The plug now just closes a dry contact, I took the relay output out of the plug housing into a small DIN box. The run status comes back on a spare GPIO as ac.running.
The rule fired for real yesterday when the room hit 27.4, the AC started and I got the notification. One thing I had wrong at first: I had turned off Ask before running on the switch, put it back on after Rachel’s comment about clicking things by accident.
- Du musst angemeldet sein, um auf dieses Thema antworten zu können.
Mitdiskutieren
Melde dich an, um Fragen zu stellen und zu beantworten, hilfreiche Beiträge mit „Gefällt mir“ zu markieren und die Antwort zu kennzeichnen, die dein Problem gelöst hat. Jeder Beitrag bringt Punkte und Stufen.

