Mise en marche et arrêt d'un split de climatisation de salle serveur depuis Hermetry avec un relais de prise 16 A
Traduit de English par IA ·
Je ne sais pas si c’est le bon sous-forum, c’est à moitié du matériel et à moitié « comment faire ceci dans Hermetry ».Nous avons une petite salle serveur dans notre bureau, avec un split mural (type inverter, environ 3,5 kW en refroidissement). Deux fois cet été, il s’est déclenché un vendredi soir et personne ne l’a remarqué avant le lundi. J’ai déjà un capteur de température sur un ESP32 qui envoie room.temp à Hermetry chaque minute, avec une alarme associée. Ce que je veux maintenant, c’est l’autre moitié : piloter la climatisation depuis un tableau de bord, et plus tard depuis une règle.Mon plan était peu coûteux. J’ai acheté une prise 16 A contenant un ESP8266, j’y ai flashé mon propre firmware et j’ai donné à son profil une commande plug.set (paramètre on, Oui/non). La prise s’abonne à v1/rpc/req/+ et répond sur v1/rpc/res/{id}. Sur mon bureau, avec un ventilateur, cela fonctionne depuis une carte Switch : je vois « Done. » et l’état revient.Avant de brancher la climatisation dessus : est-ce une bonne façon de la commander que de couper l’alimentation secteur d’un split ? La prise indique 16 A résistifs. Je ne connais pas l’appel de courant de l’unité extérieure et je ne sais pas non plus si la climatisation redémarre toute seule lorsque l’alimentation revient.
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.
Traduit de English par IA ·
Nous avons essayé exactement la même chose dans le bureau arrière d’un hôtel. Après le retour de l’alimentation, l’unité est restée en veille avec un bip et a eu besoin de la télécommande. Pour nous, couper l’alimentation ne faisait donc que l’éteindre, jamais le rallumer.
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.
Traduit de English par IA ·
Point distinct du côté CVC. Cette prise se trouve dans votre salle serveur et peut commuter une charge à cet endroit, donc traitez-la comme tout autre appareil ayant un accès. Gardez son profil en TLS uniquement, attribuez-lui un profil propre au lieu de partager celui du capteur, et placez la plage publique de votre bureau dans Réseaux autorisés afin qu’un jeton copié depuis cette prise soit inutilisable ailleurs. Les prises bon marché sont ouvertes et dumpées plus souvent qu’on ne le pense.
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.
Traduit de English par IA ·
Brian, c’est fait, il a maintenant son propre profil et la plage du bureau est épinglée.emily23, tu as raison et cela ruine mon plan. Je l’ai testé à midi : j’ai débranché la prise pendant 30 secondes, rebranché, l’unité intérieure a bipé deux fois et est restée éteinte. La prise ne peut donc que l’éteindre, et couper un compresseur inverter en plein cycle n’est probablement pas bon non plus.
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.
Traduit de English par IA ·
Je débute côté IoT, mais je connais un peu le CVC grâce à nos bâtiments, et nous avons eu la même discussion avec notre installateur.Ne touchez pas au secteur. La plupart des splits muraux de cette taille ont sur la carte de l’unité intérieure un connecteur pour un contact marche/arrêt externe (les installateurs l’utilisent pour les commutateurs à carte d’accès dans les hôtels et pour l’arrêt depuis le tableau incendie). Certaines marques nécessitent un petit adaptateur d’interface ; l’installateur connaîtra la référence pour votre modèle. Contact fermé signifie marche, contact ouvert signifie arrêt, et l’unité suit sa séquence normale de démarrage et d’arrêt, ce qui protège le compresseur et permet un redémarrage après une coupure de courant selon sa propre logique.Ainsi, le relais de prise ne commute plus la charge de la climatisation, il ne commute que ce contact basse tension. Votre firmware ESP8266 et la commande plug.set restent exactement tels quels ; je la renommerais en quelque chose comme ac.enable pour que personne ne croie qu’elle coupe l’alimentation.Côté Hermetry, voici ce que nous avons fait :
- la commande est en niveau Basic dans l’onglet Commandes du profil, sinon la carte ne l’envoie pas
- carte Interrupteur, État actuel lié à une clé que l’unité remonte réellement (nous lisons le contact d’état de marche de l’unité intérieure,
ac.running), et non à la commande - une règle :
room.tempdépasse 27 et y reste pendant 5 minutes, puis Envoyer une commandeac.enableaveconà true, puis Prévenir les personnes
La page des cartes de contrôle explique les parties niveau et valeur actuelle : Control cards. Relire l’état réel est ce qui nous a sauvés : un interrupteur qui affiche « activé » parce que vous avez cliqué est pire que pas d’interrupteur du tout.
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.
Traduit de English par IA ·
Mise à jour pour ceux qui tomberaient sur ce sujet plus tard. Notre unité dispose de la borne de marche/arrêt à distance ; l’installateur y a raccordé un câble deux fils jeudi. La prise ne fait maintenant que fermer un contact sec ; j’ai sorti la sortie du relais du boîtier de la prise pour la placer dans un petit boîtier DIN. L’état de marche remonte sur une GPIO libre sous le nom ac.running.La règle s’est déclenchée pour de bon hier, quand la pièce a atteint 27.4 ; la climatisation a démarré et j’ai reçu la notification. Une erreur de ma part au départ : j’avais désactivé Ask avant de passer par l’interrupteur, je l’ai réactivé après le commentaire de Rachel sur les clics accidentels.
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.
- Vous devez être connecté pour répondre à ce sujet.
Rejoignez la discussion
Connectez-vous pour poser et répondre à des questions, aimer les messages utiles et marquer la réponse qui a résolu votre problème. Chaque contribution rapporte des points et des niveaux.

