zjleblanc / zjleblanc.kasa / 1.1.0 / module / smart_device Automate kasa smart devices | "added in version" 1.0.0 of zjleblanc.kasa" Authors: Zach LeBlanc (@zjleblanc)zjleblanc.kasa.smart_device (1.1.0) — module
Install with ansible-galaxy collection install zjleblanc.kasa:==1.1.0
collections: - name: zjleblanc.kasa version: 1.1.0
Use this module to automate Kasa smart devices in your home or business.
- name: Get smart device info zjleblanc.kasa.smart_device: target: 192.168.0.100
- name: Get smart devices info zjleblanc.kasa.smart_device: target: - 192.168.0.100 - 192.168.0.101 - 192.168.0.102
- name: Set smart device alias zjleblanc.kasa.smart_device: target: 192.168.0.100 alias: "Backyard Lights"
- name: Turn smart device on zjleblanc.kasa.smart_device: target: 192.168.0.100 state: enabled
- name: Turn smart devices off zjleblanc.kasa.smart_device: target: - 192.168.0.100 - 192.168.0.101 - 192.168.0.102 state: disabled
mac: description: The smart device mac address. required: false type: str alias: description: The smart device alias (as shown in Kasa app). required: false type: str state: choices: - enabled - disabled - updated description: The desired state of the smart device required: false type: str target: default: [] description: The target ip address for the smart device elements: str required: true type: list
smart_devices: description: The target smart device info returned: always type: list