Hi guys,
A bit new so maybe my question will be simple for HA experts.
I have EDF tempo contract ; basically I wand to reduce/minimize consumption when days as expansaive (Red / rouge in french )
For this I will create automation to limit my consumption. Key element pass in the fact to manipulate attributs coming from this RTE API.
So far form dev/events. my entity :
[sensor.rte_tempo_couleur_actuelle] seems to return in state :
state = ‘Rouge’ ==> Today is a Red day and I have also following info : __________________________________________________
options:
- Bleu
- Blanc
- Rouge
- inconnu
attribution: Données fournies par data.rte-france.com
device_class: enum
icon: mdi:palette
friendly_name: RTE Tempo Couleur actuelle
Now in automation : I did not success to check the state of my condition :
extract form automation (basic test) :
condition:
- condition: state
entity_id: sensor.rte_tempo_couleur_actuelle
attribute: device_class
for:
hours: 0
minutes: 0
seconds: 0
state: Rouge
In history of automation : it failed to pass it.
Any idea to test the state Rouge coming ffrom this entity in Automation editor ?
ben
PS : See history status for this condition:
Exécuté : 10 décembre 2024 à 17:03:00
Résultat :
Result: false
entity_id/0
Exécuté : 10 décembre 2024 à 17:03:00
Résultat :
result: false state: enum wanted_state: Rouge