smartHomeHub / SmartIR

Integration for Home Assistant to control climate, TV and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)
MIT License
2.02k stars 995 forks source link

Help with creating a custom json for my fan #1264

Open simoneluconi opened 3 months ago

simoneluconi commented 3 months ago

Hi, i'm trying to create a json for my fan (LEVOIT), but i can't find anywhere how the json should be formatted, it there a guideline somewhere?

I tried looking at other config file but i can't find a fan with the same or similar option as mine.

I need the button for:

How my json file should be formatted? Is this configuration correct or there is a better way?

{
  "manufacturer": "LEVOIT",
  "supportedModels": [
    "unknown"
  ],
  "supportedController": "Broadlink",
  "commandsEncoding": "Base64",
  "commands": {
    "off": "",    
    "on": "",
    "fan+": "",
    "fan-": "",
    "swing": "",
    "mute":"",
    "sleep":"",
    "mode": "",
    "timer": ""
  }
}

Thanks for the help.

chemelli74 commented 2 weeks ago

I'm interested in the list if possible commands as well

dgel27 commented 2 weeks ago

The problem is that remote sends all state, eg, it contain mode, fan mode, temperature, swing, clock, beep.. And you cannot send just fan+. To do this, need high level protocol and known of current state. Otherways, you have study all possibilities of combinations. Tasmota devices have integrated high level, so it possible to do with it