diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json b/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json index f01dc75..c724f44 100644 --- a/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json +++ b/custom_components/xiaomi_miio_airconditioningcompanion/manifest.json @@ -10,8 +10,8 @@ "iot_class": "local_polling", "issue_tracker": "https://github.com/syssi/xiaomi_airconditioningcompanion/issues", "requirements": [ - "construct==2.10.56", + "construct==2.10.68", "python-miio>=0.5.12" ], - "version": "2023.6.0.4" + "version": "2023.12.0.0" } diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/services.yaml b/custom_components/xiaomi_miio_airconditioningcompanion/services.yaml index 54bb9b6..745da73 100644 --- a/custom_components/xiaomi_miio_airconditioningcompanion/services.yaml +++ b/custom_components/xiaomi_miio_airconditioningcompanion/services.yaml @@ -1,24 +1,37 @@ climate_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.' + 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: - description: "Name of the entity to learn command from." - example: "xiaomi_miio_airconditioningcompanion.xiaomi_miio_device" + name: Entity ID + description: Name of the xiaomi miio airconditioningcompanion entity. + selector: + entity: + integration: xiaomi_miio_airconditioningcompanion + domain: climate slot: - description: "Define the slot used to save the IR command. Defaults to slot ID 30." - example: "30" + name: Slot + description: Define the slot used to save the IR command. Defaults to slot ID 30. + example: 30 timeout: - description: "Define the timeout in seconds, before which the command must be learned." - example: "30" + name: Timeout + description: Define the timeout in seconds, before which the command must be learned. + example: 30 climate_send_command: - description: 'Send captured infrared command or device configuration.' + name: Send command + description: Send captured infrared command or device configuration. fields: entity_id: - description: "Name of the acpartner entity." - example: "xiaomi_miio_airconditioningcompanion.xiaomi_miio_device" + name: Entity ID + description: Name of the xiaomi miio airconditioningcompanion entity. + selector: + entity: + integration: xiaomi_miio_airconditioningcompanion + domain: climate command: - description: "Infrared command. Must start with FE or 01." + 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). diff --git a/custom_components/xiaomi_miio_airconditioningcompanion/strings.json b/custom_components/xiaomi_miio_airconditioningcompanion/strings.json new file mode 100644 index 0000000..3c53523 --- /dev/null +++ b/custom_components/xiaomi_miio_airconditioningcompanion/strings.json @@ -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." + } + } + } + } +}