Mon problème
Salut.
J’ai une pergola bioclimatique avec des bandeaux LEDs intégrés.
Je peux les allumer avec cette requête HTTP:
http://192.168.0.159/zns.cgi?cmd=l&o=64&p=255
Et les éteindre avec : http://192.168.0.159/zns.cgi?cmd=l&o=64&p=0
Ou les dimmer en faisant varier le p= entre 0 et 255 donc ![]()
Je me suis donc basé sur ce bout de doc pour écrire ces lignes dans mon configuration.yaml :
rest_command:
pergola_light_on:
url: "http://192.168.0.159/zns.cgi?cmd=l&o=64&p=255"
method: put
content_type: "application/x-www-form-urlencoded"
pergola_light_off:
url: "http://192.168.0.159/zns.cgi?cmd=l&o=64&p=0"
method: put
content_type: "application/x-www-form-urlencoded"
Au passage, j’ai voulu déplacer le code dans un fichier rest-command.yaml et faire :
rest_command: !include rest_command.yaml
Mais HA n’aime pas, est-ce normal ?
Bref, j’ai ensuite créé l’automatisation suivante :
- id: '1682451293801'
alias: On_Light_Pergola
description: ''
trigger:
- platform: device
domain: mqtt
device_id: 970372b336a659eeb5c93e30b257beee
type: action
subtype: single_left
discovery_id: 0x00158d0001e0f746 action_single_left
condition: []
action:
- service: rest_command.pergola_light_on
mode: single
J’ai bien la tace de mon automatisation quand j’appuie sur mon interrupteur mais la pergola ne s’allume pas.
J’ai ça dans la trace :
Executed: April 25, 2023 at 21:52:13
Result:
params:
domain: rest_command
service: pergola_light_on
service_data: {}
target: {}
running_script: false
limit: 10
J’ai dû louper un truc important mais quoi ??
Merci de votre aide.
Ma configuration
[center]## System Information
| version | core-2023.4.6 |
|---|---|
| installation_type | Home Assistant Supervised |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python_version | 3.10.10 |
| os_name | Linux |
| os_version | 5.10.0-21-amd64 |
| arch | x86_64 |
| timezone | Europe/Paris |
| config_dir | /config |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| GitHub API Calls Remaining | 4811 |
| Installed Version | 1.32.1 |
| Stage | running |
| Available Repositories | 1269 |
| Downloaded Repositories | 9 |
Home Assistant Cloud
| logged_in | false |
|---|---|
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Home Assistant Supervisor
| host_os | Debian GNU/Linux 11 (bullseye) |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2023.04.1 |
| agent_version | 1.5.1 |
| docker_version | 23.0.4 |
| disk_total | 115.4 GB |
| disk_used | 9.0 GB |
| healthy | true |
| supported | true |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | SSH & Web Terminal (13.1.0), Studio Code Server (5.5.7), Samba Backup (5.2.0), Z-Wave JS (0.1.79) |
Dashboards
| dashboards | 2 |
|---|---|
| resources | 4 |
| views | 6 |
| mode | storage |
Recorder
| oldest_recorder_run | April 16, 2023 at 15:33 |
|---|---|
| current_recorder_run | April 25, 2023 at 21:51 |
| estimated_db_size | 321.06 MiB |
| database_engine | sqlite |
| database_version | 3.38.5 |

