switch:
  - platform: rest
    name: "General Persianas"
    scan_interval: 30
    resource: http://10.10.1.153/relay/1
    body_on: 'turn=on'
    body_off: 'turn=off'
    timeout : 60
    is_on_template: '{{ value_json.ison == true}}'
    headers:
       content-type: application/x-www-form-urlencoded
