initial commit
This commit is contained in:
commit
9db11dbc76
9 changed files with 167 additions and 0 deletions
23
tasks/per_shutter.yml
Normal file
23
tasks/per_shutter.yml
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
---
|
||||
- name: shelly_shutter per_shutter | configure schedule
|
||||
# https://www.shellhacks.com/ansible-when-variable-is-defined-exists-empty-true/
|
||||
when: shutter_schedule_rule is defined
|
||||
uri:
|
||||
url: "http://{{ ansible_host }}/settings/roller/{{ current_shutter }}"
|
||||
method: POST
|
||||
body:
|
||||
schedule: true
|
||||
schedule_rule: "{{shutter_schedule_rule }}"
|
||||
tags:
|
||||
- configuration
|
||||
|
||||
- name: shelly_shutter per_shutter | configure basics
|
||||
# https://www.shellhacks.com/ansible-when-variable-is-defined-exists-empty-true/
|
||||
uri:
|
||||
url: "http://{{ ansible_host }}/settings/roller/{{ current_shutter }}"
|
||||
method: POST
|
||||
body:
|
||||
schedule: true
|
||||
schedule_rule: "{{shutter_schedule_rule }}"
|
||||
tags:
|
||||
- configuration
|
||||
Loading…
Add table
Add a link
Reference in a new issue