Update README.md

This commit is contained in:
balgerion
2025-05-02 12:52:33 +02:00
committed by GitHub
parent 7202d03188
commit 246993718d

View File

@ -82,7 +82,7 @@ conditions:
{% set current_hour = now().replace(minute=0, second=0, {% set current_hour = now().replace(minute=0, second=0,
microsecond=0).isoformat(timespec='seconds').split('+')[0] %} microsecond=0).isoformat(timespec='seconds').split('+')[0] %}
{% set best_hours = state_attr('sensor.pstryk_buy_price_table', {% set best_hours = state_attr('sensor.pstryk_current_buy_price',
'best_prices') | map(attribute='start') | list %} 'best_prices') | map(attribute='start') | list %}
{{ current_hour in best_hours }} {{ current_hour in best_hours }}
@ -104,7 +104,7 @@ actions:
- data: - data:
message: | message: |
Grzanie włączone! Godzina: {{ current_hour }}, Cena: {{ Grzanie włączone! Godzina: {{ current_hour }}, Cena: {{
state_attr('sensor.pstryk_buy_price_table', 'best_prices') state_attr('sensor.pstryk_current_buy_price', 'best_prices')
| selectattr('start', 'equalto', current_hour) | selectattr('start', 'equalto', current_hour)
| map(attribute='price') | map(attribute='price')
| first | first
@ -123,6 +123,7 @@ actions:
action: switch.turn_off action: switch.turn_off
data: {} data: {}
``` ```
Rozładowanie magazynu energii - Sprzedaż po najlepszej cenie Rozładowanie magazynu energii - Sprzedaż po najlepszej cenie