Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

command_line #38

Closed
matteos1 opened this issue Jun 10, 2023 · 1 comment
Closed

command_line #38

matteos1 opened this issue Jun 10, 2023 · 1 comment

Comments

@matteos1
Copy link

matteos1 commented Jun 10, 2023

La configurazione della riga di comando binary_sensor utilizzando YAML è stata spostata.

Consulta la documentazione per spostare la tua configurazione YAML nella chiave di integrazione e riavvia Home Assistant per risolvere questo problema.
C'è un command line che dovrebbe essere formattato.
grazie

  • platform: command_line # check URL
    name: download_file # shakemap
    device_class: connectivity
    command: >
    local=$(echo "{{ states('input_text.ingv_path_image') }}" | cut -d" " -f1);
    remote=$(echo "{{ states('input_text.ingv_path_image') }}" | cut -d" " -f2);
    rm -f "$local";
    curl -sSf -Lk -m 5 "$remote" --create-dirs -o "$local" &&
    echo "ON" || echo "OFF"
    scan_interval: 525600 # 1 year
    value_template: "{{ value }}"
@caiosweet
Copy link
Owner

Fixed. Grazie @matteos1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants