{"schema_version":"1.0","service":"Publicasta","type":"article","id":236,"slug":"renter_friendly_dumb_ac_home_assistant_2026_07_31","title":"不冒租房风险，让老空调变聪明","excerpt":"租房里的 AC automation 可以很有用，但安全路线取决于机器：IR、thermostat terminals、rated controller，或者完全不自动化。","language":"zh","default_language":"en","canonical_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=zh","image":{"url":"https://publicasta.com/storage/projects/14/pages/236/2026/07/fd85c6e2-dafa-465a-8336-8c5288efc19d.webp","alt":"老式公寓空调、local smart-home 控制器和温度传感器"},"publisher":{"id":14,"slug":"smart_home","name":"Smarter Home","url":"https://publicasta.com/smart_home"},"author":{"name":"Anton R"},"published_at":"2026-07-31T17:15:13+00:00","updated_at":"2026-07-31T17:15:13+00:00","content_markdown":"很多公寓里的空调其实很适合接入 smart home，只差它本身一点也不 smart。它能制冷，也许还能用很多年，但控制方式只有机身上的两个 plastic knobs。没有 remote，没有 wall thermostat，没有 schedule，没有 occupancy logic，租客也不能随便拆开外壳动手改线。\n\n ![老式公寓空调、local smart-home 控制器和温度传感器](https://publicasta.com/storage/projects/14/pages/236/2026/07/fd85c6e2-dafa-465a-8336-8c5288efc19d.webp)\n\n 所以 Prilik 的项目 \"Turning a dumb AC unit smart (without losing my security deposit)\" 会在 Hacker News 上引起讨论。作者住在纽约租来的公寓，墙上是一台 PTAC-style wall unit，用 analog knobs 控制。他没有换空调，也没有碰 line-voltage wiring，而是做了一个可拆的适配器：ESP32、stepper motor、shaft coupler、bracket、binder clip 和 padding。电机转动温度旋钮，Home Assistant 根据 MQTT 和房间里的 temperature sensor 决定何时动作。\n\n 这个方案聪明，也有意保留了一点 janky。值得学习的不是复制这个支架，而是先判断你家的空调适合哪条安全路径。\n\n ## 先确认控制方式\n\n 买任何设备前，先问一个很普通的问题：这台空调现在怎样接收命令？\n\n 如果它有 infrared remote，通常最简单的是 IR controller。Broadlink、Sensibo、Cielo 类设备可以发送和遥控器相同的指令。Home Assistant 也有 Broadlink integration，许多商业 AC controllers 还带温湿度功能。这对 renters 友好，因为不碰 mains wiring，也不改机器内部。缺点是状态同步：如果有人用原遥控器或机身按钮，controller 可能不知道真实 mode。\n\n 如果机器有 thermostat terminals，先看这条路。某些 PTAC 和 through-wall units 支持 wall thermostat 或 accessory kit。这不一定该由租客自己做，但通常是更干净的技术方案。不要在面板后面猜，去问 landlord 或 HVAC technician。\n\n 如果只有机械旋钮，noninvasive actuator 可能可行。Prilik 的项目没有切换 compressor power，只是移动人手原本会移动的控制件。这样不用剪线，也容易拆除。但它仍然需要可靠机械结构、manual fallback 和安全的 failure mode。\n\n 如果计划是“随便买个 smart plug 控整台 AC”，先停一下。空调电流大，有 compressor，有时还使用普通 smart plugs 不支持的插头。原项目就因为 NEMA 5-20P plug 和 rapid power cycling 对 compressor 的风险，放弃了普通 smart plug。\n\n ## Home Assistant 真正带来的东西\n\n smart 的部分不是电机，而是它周围的 thermostat behavior。\n\n Home Assistant Generic Thermostat 可以把一个 switch-like entity 配合 temperature sensor 当作 thermostat 使用。文档里有 `ac_mode`、`cold_tolerance`、`hot_tolerance` 和 `min_cycle_duration`。在 cooling mode 下，这能避免目标温度附近频繁开关。房间里的独立传感器很重要，因为出风口温度不等于床边或书桌旁的体感温度。\n\n 实用配置不只是 remote control。它可以睡前预冷，window sensor 发现开窗时减少工作，没人时提高 target，并限制最短运行或休息时间。它也必须保留 manual override。如果 Home Assistant、Wi-Fi、MQTT 或 ESP32 出问题，你应该还能走过去按老办法控制 AC。\n\n 微控制器层可以考虑 ESPHome。Hacker News 评论里多次提到，ESP32 项目用 ESPHome configuration 往往比 custom firmware 更好维护。它也适合 local-first smart home：设备与 Home Assistant 通信，不依赖 vendor cloud。\n\n ## 安全边界\n\n Climate control 不是控制台灯。坏的失败方式可能让硬件过热、short-cycle compressor、让 switch 卡在中间位置，甚至造成 fire risk。\n\n 没有资格和授权，不要碰 line-voltage wiring。不要绕过 safety cutoffs。不要使用没有认证、current rating 不合适、插头不兼容或不适合这种 load 的 smart plug。便宜模块上写着 15 A，不等于它就是安全的 AC controller。\n\n Short cycling 要特别注意。Compressor 通常不应该刚停就马上启动。如果 automation 控制电源或 thermostat call，就要有 restart delay，或者使用自带 compressor protection 的设备。Home Assistant 可以帮助实现 minimum cycle behavior，但设计糟糕的 automation 仍然危险。\n\n 机械 hack 也有风险。Stepper mount 可能下垂并卡住。Servo 可能没有把 switch 推到位。Tape and binder clips 适合有人看着的 weekend experiment，不一定适合 unattended summer appliance controller。设计时要让失败回到安全、无聊的状态。\n\n ## Renter-friendly 不等于没有后果\n\n 可逆项目比隐藏改装好，但 lease 和 building rules 仍然重要。动手前给机器拍照。没有许可，不要钻孔、切割、焊接或永久粘贴。原来的 knobs and covers 要能恢复。维修人员来时，最好十分钟内能还原。\n\n 最适合租房的升级通常是可见且 removable 的：架子上的 IR blaster、temperature sensor、Home Assistant automation，或不会留下痕迹的 clip-on actuator。如果需要真正的 thermostat wiring，先申请许可。若答案是否定的，不要把押金问题变成 electrical problem。\n\n ## 买、做，还是放弃\n\n 如果 AC 有遥控器，而你只想要 schedules、remote access 和按温度调节的舒适度，买 IR controller。它没有 ESP32 好玩，但更容易解释，也更容易拆除。\n\n 如果你已经运行 Home Assistant，并且想要 local schedules、occupancy logic、window sensors 或更好的 hysteresis，就配一个 temperature sensor。这个逻辑层可以服务于 IR、thermostat terminals、正确 rated switch 或 custom actuator。\n\n 只有在普通路径都不合适时，才考虑 DIY hardware：没有 IR remote，没有可用的 low-voltage terminals，没有安全 smart outlet，也没有改动机器的许可。即便如此，也先设计 reversibility。$15 的零件清单如果换来两个晚上、坏掉的旋钮和闷热房间，就不便宜。\n\n 如果 AC 已损坏，plug/outlet 发热，circuit 已过载，power loss 后行为不稳定，或你做不出 manual fallback，就不要自动化。更好的选择是 maintenance、联系 landlord、换更安全的设备，或者什么也不做。\n\n ## 实用检查表\n\n 检查 plug type 和 nameplate current。找到 manual。查 thermostat terminals 文档，但不要打开危险部位。确认 power loss 后是否有 restart delay，是否记住设置。把 temperature sensor 放在人真正坐着或睡觉的位置。经常开窗就加 window sensor。Automations 要简单：一个 target、清楚的 hysteresis、minimum cycle protection 和明显的 off switch。\n\n 系统先在你在家的时候运行。观察几个 cycles。小心检查 plug 和 outlet 是否异常发热。确认支架不会慢慢移位，AC 仍能手动操作。之后再考虑让它整夜工作。\n\n 结论很简单：为了 smart home，不必换掉还能工作的老空调。但 compressor 不能像台灯一样自动化。选择最不侵入、且适合你这台机器的控制路径。有 IR 或真正的 thermostat terminals 时，优先用它们。Home Assistant 负责逻辑，不是忽视 electrical and mechanical safety 的借口。租房里最好的 smart-home upgrade，应该能让房间凉下来，能熬过 network outage，也能在搬家时干净拆掉。","available_translations":[{"language":"ar","title":"كيف تجعل مكيفاً قديماً أذكى من دون المخاطرة بالشقة","html_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=ar","markdown_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=ar","json_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=ar","api_url":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=ar"},{"language":"de","title":"Eine alte Klimaanlage smarter machen, ohne die Wohnung zu riskieren","html_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=de","markdown_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=de","json_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=de","api_url":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=de"},{"language":"en","title":"Make an old air conditioner smarter without risking the apartment","html_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=en","markdown_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=en","json_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=en","api_url":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=en"},{"language":"es","title":"Cómo hacer más listo un aire acondicionado viejo sin arriesgar el piso","html_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=es","markdown_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=es","json_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=es","api_url":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=es"},{"language":"fr","title":"Rendre un vieux climatiseur plus intelligent sans risquer la location","html_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=fr","markdown_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=fr","json_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=fr","api_url":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=fr"},{"language":"pl","title":"Jak zrobić stary klimatyzator smart bez ryzyka dla mieszkania","html_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=pl","markdown_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=pl","json_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=pl","api_url":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=pl"},{"language":"ru","title":"Как сделать старый кондиционер умнее и не рисковать квартирой","html_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=ru","markdown_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=ru","json_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=ru","api_url":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=ru"},{"language":"zh","title":"不冒租房风险，让老空调变聪明","html_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=zh","markdown_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=zh","json_url":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=zh","api_url":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=zh"}],"_links":{"self":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=zh","api":"https://publicasta.com/api/public/v1/channels/smart_home/articles/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=zh","html":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=zh","canonical":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31?lang=zh","markdown":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.md?lang=zh","json":"https://publicasta.com/smart_home/renter_friendly_dumb_ac_home_assistant_2026_07_31.json?lang=zh","channel":"https://publicasta.com/api/public/v1/channels/smart_home","channel_articles":"https://publicasta.com/api/public/v1/channels/smart_home/articles","search":"https://publicasta.com/api/public/v1/search","documentation":"https://publicasta.com/api-docs#reading-publicasta","openapi":"https://publicasta.com/api-docs/openapi.json","llms":"https://publicasta.com/llms.txt"}}