Version 3.1.0-beta4
Corrects the per-remote-type preset tables used by HA Auto Discovery and exposes them via the REST API so external integrations (HA custom integration, scripts) know exactly which commands each configured remote supports.
⚠️ This is a beta release — please report issues at https://github.com/arjenhiemstra/ithowifi/issues
Highlights
- Preset tables now match the actual RF command maps in
IthoCC1101.cpp. Previously several remote types had a too-narrow preset list (e.g. RFT RV / RFT CO2 / RFT CVE). The published presets are now derived from the sameRFT*_Remote_Map[]that the radio uses for transmission. - New
presetsfield on every remote entry inGET /api/v2/remotesandGET /api/v2/vremotes, in wire format (e.g.low,medium,high,timer1,timer2,timer3). Intended for external consumers that need to know which commands each remote supports without duplicating the table client-side. - Web UI label fix: the
itho_vremoteapisetting's label was misleading — it's now labelled "Map API key "command" to virtual remote 0", which is what it actually does.
Bug Fixes
- RFT CVE remotes were missing
Awayfrom the preset list. The RF command map has a validithoMessageAwayCommandBytesentry for CVE. Added. - RFT RV remotes were missing
LowandHigh. Same cause. Added. - RFT CO2 remotes were missing
LowandHigh. Same cause. Added. - RFT AutoN remotes were missing
AwayandMedium(they were sharing a preset row with RFT Auto, which is a different type). Split into their own case with the correct set:Away,Low,Medium,High,Auto,AutoNight,Timer 10/20/30min. - RFT Spider remotes were missing almost everything — the preset list was just
Low,Highbut the RF command map supports Low, Medium, High, Auto, AutoNight, and all three timers. Full list now published.
API
- CHANGED:
GET /api/v2/remotes—remotes[*]entries now include apresetsfield (wire-format comma-separated string) reflecting the commands supported by each remote's type. - CHANGED:
GET /api/v2/vremotes— same addition onvremotesinfo[*]. - UNCHANGED:
remotesinfoshape, MQTT publish format, existing preset commands — all backwards-compatible.
Internal
- New
HADiscConfig::getWirePresetsForType(uint16_t remoteType)static helper, declared inHADiscConfig.hand defined inHADiscConfig.cpp. Kept in lockstep with the existing human-readablegetPresetsForType()used by HA MQTT auto-discovery. IthoRemote::Remote::get()now emitsobj["presets"]for every remote it serializes.
Compatibility
Fully backwards-compatible with 3.1.0-beta3.
- Existing consumers of
/api/v2/remotesand/api/v2/vremotessee only new fields; nothing removed or renamed. - HA MQTT Auto Discovery users see the corrected preset list on their remotes'
selectentities after the next discovery cycle. Automations that previously worked with the (too-narrow) list still work; automations that tried to use a preset the device silently ignored may now actually apply. - The Home Assistant integration ithowifi-ha-integration version
0.5.0requires this firmware release to get accurate per-remote preset lists. On older firmware (3.1.0-beta3or earlier) it falls back to a conservativelow / medium / highset.
Firmware binary
Firmware binary (CVE HW rev.2 and NON-CVE):
https://github.com/arjenhiemstra/ithowifi/releases/download/Version-3.1.0-beta4/nrgitho-v3.1.0-beta4.bin