-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
70 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 24 additions & 11 deletions
35
custom_components/xiaomi_miio_airconditioningcompanion/services.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 44 additions & 0 deletions
44
custom_components/xiaomi_miio_airconditioningcompanion/strings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"services": { | ||
"climate_learn_command": { | ||
"name": "Learn command", | ||
"description": "Learn an IR command, press \"Call Service\", point the remote at the IR device, and the learned command will be shown as a notification in Overview.", | ||
"fields": { | ||
"entity_id": { | ||
"name": "Entity ID", | ||
"description": "Name of the xiaomi miio airconditioningcompanion entity." | ||
}, | ||
"slot": { | ||
"name": "Slot", | ||
"description": "Define the slot used to save the IR command. Defaults to slot ID 30." | ||
}, | ||
"timeout": { | ||
"name": "Timeout", | ||
"description": "Define the timeout in seconds, before which the command must be learned." | ||
} | ||
} | ||
}, | ||
"climate_send_command": { | ||
"name": "Send command", | ||
"description": "Send captured infrared command or device configuration.", | ||
"fields": { | ||
"entity_id": { | ||
"name": "Entity ID", | ||
"description": "Name of the xiaomi miio airconditioningcompanion entity." | ||
}, | ||
"command": { | ||
"name": "Command", | ||
"description": "Infrared command. Must start with FE or 01." | ||
}, | ||
"num_repeats": { | ||
"name": "Repeats", | ||
"description": "The number of times you want to repeat the command(s)." | ||
}, | ||
"delay_secs": { | ||
"name": "Delay Seconds", | ||
"description": "The time you want to wait in between repeated commands." | ||
} | ||
} | ||
} | ||
} | ||
} |