AutomationDataset/Angelius007/description-ready.json

62 lines
4.0 KiB
JSON

[
{
"id": "Correction Conso estimé/shelly si injection trop importante",
"automation": "- alias: Correction Conso estimé/shelly si injection trop importante\n description: Redémarrage de la conso de la maison vue depuis le shelly ou en estimation\n complémentaire prise périodiquement si détection d'un déphasage\n triggers:\n - entity_id:\n - timer.declencheur_5_min\n from: null\n to: idle\n trigger: state\n alias: Déclenchement périodique\n id: Déclenchement périodique 5 min\n enabled: false\n - alias: Lorsque l'injection est > 50 W pendant 15 sec\n trigger: numeric_state\n entity_id:\n - sensor.conso_prod_power\n for:\n hours: 0\n minutes: 0\n seconds: 15\n below: -50\n id: injection > 50 W pendant 15 sec\n enabled: false\n - trigger: numeric_state\n entity_id:\n - sensor.gaspillage_batterie\n for:\n hours: 0\n minutes: 0\n seconds: 20\n above: 15\n conditions:\n - alias: Lorsque Gaspillage est > 5 W\n condition: numeric_state\n entity_id: sensor.gaspillage_batterie\n above: 15\n - condition: numeric_state\n entity_id: number.powerstream_1230_custom_load_power_settings\n above: 70\n alias: Lorsque la conso estimée de la maison est > 70 W\n actions:\n - action: notify.persistent_notification\n metadata: {}\n data:\n message: '\"Conso maison : {{ states(''sensor.conso_prod_power'') }} - Injection\n batterie {{ states(''sensor.powerstream_1230_battery_input_watts'') }}- Gaspillage\n batterie {{ states(''sensor.gaspillage_batterie'') }} - Ancienne consigne\n : {{ states(''number.powerstream_1230_custom_load_power_settings'') }} - Nouvelle\n consigne : {{ states(''number.consigne_reelle'') }} \"'\n title: Correction Charge maison à 70 W\n alias: Notifier de l'action d'ajustement\n enabled: false\n - action: logbook.log\n metadata: {}\n data:\n name: Ajustement shelly\n message: '\"Conso maison : {{ states(''sensor.conso_prod_power'') }} - Injection\n batterie {{ states(''sensor.powerstream_1230_battery_input_watts'') }}- Gaspillage\n batterie {{ states(''sensor.gaspillage_batterie'') }} - Ancienne consigne\n : {{ states(''number.powerstream_1230_custom_load_power_settings'') }} - Nouvelle\n consigne : {{ states(''number.consigne_reelle'') }}\"'\n - action: number.set_value\n metadata: {}\n data:\n value: '{{ states(''number.consigne_reelle'') | float(70) }}'\n target:\n entity_id: number.powerstream_1230_custom_load_power_settings\n mode: queued\n max: 10",
"config": [
{
"name": "declencheur 5 min timer",
"room": null,
"type": "timer",
"id": {
"entity_id": "timer.declencheur_5_min",
"device_id": null
}
},
{
"name": "conso prod power sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.conso_prod_power",
"device_id": null
}
},
{
"name": "gaspillage batterie sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.gaspillage_batterie",
"device_id": null
}
},
{
"name": "powerstream 1230 custom load power settings",
"room": null,
"type": "number",
"id": {
"entity_id": "number.powerstream_1230_custom_load_power_settings",
"device_id": null
}
},
{
"name": "powerstream 1230 battery input watts sensor",
"room": null,
"type": "sensor",
"id": {
"entity_id": "sensor.powerstream_1230_battery_input_watts",
"device_id": null
}
},
{
"name": "consigne reelle number",
"room": null,
"type": "number",
"id": {
"entity_id": "number.consigne_reelle",
"device_id": null
}
}
]
}
]