Get EDF Tempo information

Thank you Patrice!

We can add this to make a binary…

- platform: template
  sensors:
    ejp_on:
      friendly_name: "Edf : EJP"
      value_template: "{{ is_state('sensor.ejp_aujourd_hui', 'EST_EJP') }}"
      device_class: power   
      icon_template: >
        {% if is_state('binary_sensor.ejp_on','on') %} 
          mdi:alert
          red
        {% else %} 
          mdi:sleep
        {% endif %}
#        icon_color: >
#           if (state === 'on') return 'red';
#           return 'green';

- platform: template
  sensors:
    ejp_on_demain:
      friendly_name: "EdF : EJP Demain"
      value_template: "{{ is_state('sensor.ejp_demain', 'EST_EJP') }}"
      device_class: power   
      icon_template: >
        {% if is_state('binary_sensor.ejp_on_demain','on') %} 
          mdi:alert
          red
        {% else %} 
          mdi:sleep
        {% endif %}

If you don’t see any inconveniences, I’m going to do a cc on my blog in french.