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.06k stars 1.01k forks source link

Help with creating a custom json for my fan #1264

Open simoneluconi opened 4 months ago

simoneluconi commented 4 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 months ago

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

dgel27 commented 2 months 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