initial commit

This commit is contained in:
greywolf 2019-09-29 19:30:33 +02:00
parent 8e71068a3d
commit dd615a11ad
9 changed files with 166 additions and 1 deletions

23
tasks/per_shutter.yml Normal file
View 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