Replies: 6 comments 17 replies
-
I also am interested in displaying the slots on my dashboard, but no idea how to access the data |
Beta Was this translation helpful? Give feedback.
-
https://community.home-assistant.io/t/octopus-energy-intelligent-tariff/418680/123 {% if state_attr('binary_sensor.octopus_intelligent_slot', 'plannedDispatches') | length > 0 %} |
Beta Was this translation helpful? Give feedback.
-
I came here looking for the same thing, and putting the instructions together (I'll move it to one of the docs files when I've got it working)... Install /~https://github.com/thomasloven/lovelace-template-entity-row Add this to your card - type: custom:template-entity-row
name: Planned slots
secondary: >-
{% if state_attr('binary_sensor.octopus_energy_a_XXXXXXXX_intelligent_dispatching', 'planned_dispatches') | length > 0 %}
{% for dispatch in state_attr('binary_sensor.octopus_energy_a_XXXXXXXX_intelligent_dispatching', 'planned_dispatches') -%}
⏰ {{ (dispatch.start | as_local).strftime('%H:%M') }} to {{ (dispatch.end | as_local).strftime('%H:%M') }}
{{ "" }}
{%- endfor %}
{%- else -%}
⏰ None
{%- endif %} replacing Which is currently giving The lack of newlines is a bit annoying, but a limitation of the card, seemingly - https://community.home-assistant.io/t/octopus-energy-intelligent-tariff/418680/108 / thomasloven/lovelace-template-entity-row#71 / thomasloven/lovelace-template-entity-row#84 Though later comments in the thread make it sound like it works for them... I'd like to make the "off" disappear too... But that seems it's a different known bug, ala thomasloven/lovelace-template-entity-row#106 So setting type: custom:template-entity-row
name: Planned slots
state: ''
icon: mdi:clock
secondary: >-
{% if
state_attr('binary_sensor.octopus_energy_a_XXXXXXXX_intelligent_dispatching',
'planned_dispatches') | length > 0 %}
{% for dispatch in state_attr('binary_sensor.octopus_energy_a_XXXXXXXX_intelligent_dispatching', 'planned_dispatches') -%}
⏰ {{ (dispatch.start | as_local).strftime('%H:%M') }} to {{ (dispatch.end | as_local).strftime('%H:%M') }}
{{ "\n" }}
{%- endfor %}
{%- else -%}
⏰ None
{%- endif %} |
Beta Was this translation helpful? Give feedback.
-
Can I ask how to get "binary_sensor.octopus_energy_a_XXXXXXXX_intelligent_dispatching" as I don't have any dispatching sensors. |
Beta Was this translation helpful? Give feedback.
-
No on agile, ok so that's why I don't have them. Shame would have liked to use this. |
Beta Was this translation helpful? Give feedback.
-
I've tried to implement this, I do get the list, but I get no title. I've tried adding title: Planned Slots but this gets moved to the end, and doesn't appear, also tried adding label: Planned slots, still nothing. Any ideas please?
|
Beta Was this translation helpful? Give feedback.
-
Hello, is there anyway to show the Intelligent slot hours on HA like this but using this integration rather than using Megakids Intelligent integration? I'm running both at the moment and it's a bit fiddly as I want both gas tracker price from this integration, and OI slot hours from the other one.
Megakids intelligent integration appears to go to an unknown state a bit too often, whereas this integration appears more stable hence I want to stick with this one only.
Beta Was this translation helpful? Give feedback.
All reactions