Reverse engineering del protocollo IR (HITACHI_AC 28 byte) del telecomando RAR-6NE1 e custom component ESPHome bidirezionale (TX + RX) per Home Assistant. - esphome/: custom component hitachi_rar6ne1 (climate_ir::ClimateIR) + config - src/: firmware Arduino di cattura IR con web UI (strumento di diagnostica) - README.md: documentazione completa (protocollo, decode, checksum, gotcha) - Segreti esclusi dal versionamento (vedi *.example e .gitignore) - Licenza GPL-3.0 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
21 lines
707 B
Python
21 lines
707 B
Python
import esphome.codegen as cg
|
|
from esphome.components import climate_ir
|
|
|
|
# API ESPHome recente (>= 2025.x): helper a funzione
|
|
# climate_ir_with_receiver_schema(class) + new_climate_ir(config).
|
|
# NB: non disponibile su 2024.12.x (li' era CLIMATE_IR_WITH_RECEIVER_SCHEMA
|
|
# costante + register_climate_ir). Aggiornare ESPHome.
|
|
AUTO_LOAD = ["climate_ir"]
|
|
CODEOWNERS = ["@francescozanin"]
|
|
|
|
hitachi_rar6ne1_ns = cg.esphome_ns.namespace("hitachi_rar6ne1")
|
|
HitachiRar6ne1Climate = hitachi_rar6ne1_ns.class_(
|
|
"HitachiRar6ne1Climate", climate_ir.ClimateIR
|
|
)
|
|
|
|
CONFIG_SCHEMA = climate_ir.climate_ir_with_receiver_schema(HitachiRar6ne1Climate)
|
|
|
|
|
|
async def to_code(config):
|
|
await climate_ir.new_climate_ir(config)
|