Closed Shaun-Harrison closed 1 year ago
I'll look at exposing the attributes in a consistent way in the future. In the meantime, you can access the data you want in the following way
value_template: "{{ state_attr('sensor.octopus_energy_electricity_19l3865854_2199994503050_current_rate','rate')['value_inc_vat'] }}"
Perfect, thanks for this!
I'm trying to access the attributes of the current rate for electricity - this is working fine for gas but not for electricity, i believe it's because they are all nested within the 'rate'
These entries in the template are as follows
Give the output of
Can you either remove the nested 'rate' attribute, or provide a way to do something like rate.value_inc_vat which I've tried and got no luck