Kód:
https://www.homeassistant-cz.cz/viewtopic.php?t=885
Statistiky: Napsal od Pete30 — 29. březen 2024, 11:39
Statistiky: Napsal od strjan — 29. březen 2024, 11:29
Statistiky: Napsal od strjan — 29. březen 2024, 11:23
Kód:
https://esphome.io/components/dfplayer.html?highlight=ds+player
Statistiky: Napsal od Pete30 — 29. březen 2024, 10:36
Statistiky: Napsal od Pete30 — 29. březen 2024, 10:16
Statistiky: Napsal od strjan — 29. březen 2024, 10:16
Statistiky: Napsal od BigSandy — 29. březen 2024, 10:00
Statistiky: Napsal od petr.strejcek — 28. březen 2024, 15:02
Statistiky: Napsal od Pete30 — 28. březen 2024, 14:40
Kód:
trigger: - platform: state entity_id: sensor.meter_total_energy_importsensor: - name: "Cena nakoupene elektriny celkem" unique_id: electricity_buy_price_total #device_class: monetary unit_of_measurement: "CZK" state: > {% set price = float(states('sensor.current_spot_electricity_price'),0) %} {% set meter = float(states('sensor.meter_total_energy_import'),0) %} {% if meter > 0 and this.attributes.last is defined %} {% set delta = meter - float(this.attributes.last,0) %} {% else %} {% set delta = 0 %} {% endif %} {{ '%0.6f'|format( price * delta ) }} attributes: last: > {% if this.attributes.last is defined %} {% set lastlast = float(this.attributes.last,0) %} {% else %} {% set lastlast = 0 %} {% endif %} {% set meter = float(states('sensor.meter_total_energy_import'),0) %} {% if meter > 0 %} {{ meter }} {% else %} {{ lastlast }} {% endif %}
Statistiky: Napsal od Lubos77 — 28. březen 2024, 13:44
Statistiky: Napsal od petr.strejcek — 28. březen 2024, 13:13
Statistiky: Napsal od tiimsvk — 28. březen 2024, 12:15
Statistiky: Napsal od okoun — 28. březen 2024, 11:58