Replies: 1 comment 1 reply
|
Tu sais qu'ici il y a déjà des automatistes pour les défis ? |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
De façon à tester mes automations entre les défis réels je désire créer une entité "defi_hilo_a_test" qui a les même données que defi_hilo.
En effectuant une extraction avec le API de HA j'obtiens le JSON suivant:
{
"entity_id": "sensor.defi_hilo",
"state": "recovery",
"attributes": {
"next_events": [
{
"event_id": 276,
"participating": true,
"configurable": false,
"period": "pm",
"total_devices": 10,
"opt_out_devices": 0,
"pre_heat_devices": 0,
"mode": "ambitious",
"allowed_kWh": 29.76,
"used_kWh": 4.45,
"used_percentage": 14.95,
"last_update": "2025-01-06T20:59:15.482265-05:00",
"phases": {
"settings_deadline": "2025-01-06T00:00:00-05:00",
"preheat_start": "2025-01-06T15:00:00-05:00",
"preheat_end": "2025-01-06T17:00:00-05:00",
"reduction_start": "2025-01-06T17:00:00-05:00",
"reduction_end": "2025-01-06T21:00:00-05:00",
"recovery_start": "2025-01-06T21:00:00-05:00",
"recovery_end": "2025-01-06T22:00:00-05:00"
},
"state": "reduction"
}
],
"icon": "mdi:calendar-check",
"friendly_name": "Defi Hilo"
},
"last_changed": "2025-01-07T02:00:01.713513+00:00",
"last_updated": "2025-01-07T02:00:01.713513+00:00"
},
Coment puis-je transférer cette information à l'entity "defi_hilo_a_test"
J'ai essayé avec lea Developer Tools et Current entity states mais je n'y arrive pas.
Toute aide serai appréciée.
All reactions