Jeedom integration

I was looking for something about calling Jeedom from HA. My Jeedom control all my Zwave automation. No single topic about it in these forum pages…
Jeedom is capable to be call with API or simple URL… So trying RESTful Command with no success, I discover HA is able also to do basic HTTP call with “switch” and command line. Fighting with quotes, I finaly could send command to jeedom and get status. Jeedom return minimal data, so perfect to avoid parsing answers. I can switch on/off my pump, get status ans also get power usage as “sensor”.

Enjoy below exemple… (french text…)

command_line:
  - switch:
      unique_id: thx113856
      name: "Piscine pompe"
      command_on: 'curl "http://192.168.1.42/core/api/jeeApi.php?apikey=mySecretAPIkey&type=cmd&id=667"'
      command_off: 'curl "http://192.168.1.42/core/api/jeeApi.php?apikey=mySecretAPIkey&type=cmd&id=668"'
      command_state: 'curl "http://192.168.1.42/core/api/jeeApi.php?apikey=mySecretAPIkey&type=cmd&id=669"'
      scan_interval: 6
      value_template: "{{ value_json == 1 }}"
  - sensor:
      unique_id: thx113869
      name: PowerPoolPump
      command: 'curl "http://192.168.1.42/core/api/jeeApi.php?apikey=mySecretAPIkey&type=cmd&id=666"'