myTselection / telenet_telemeter

Telenet Telemeter Home Assistant custom component HACS for Belgian ISP and mobile phone network traffic.
MIT License
28 stars 5 forks source link

smallband (squeezed) as a selectable attribute #18

Closed SvenMazet closed 1 year ago

SvenMazet commented 1 year ago

I've been trying to set up a smallband indicator in a similar screen like your example, but I can't seem to get it to work ... I know it's in the attributes of the sensor, but can't seem to use it in a card.

image

Perhaps this could be a selectable item for sensor.telenet_telemeter?

myTselection commented 1 year ago

aha, I didn't know this 'squeezed' element was used to denote this. I can add it as a direct attribute on the sensor. For now, it's only available as a deeply nested attribute within telemeter_json so for now you could try: {{state_attr('sensor.telenet_telemeter','telemeter_json')['internetusage'][0]['availableperiods'][0]['usages'][0]['squeezed']}}

SvenMazet commented 1 year ago

That did the trick! afbeelding Thank you for your help, and looking forward to continued developement.

Kind regards, Sven

myTselection commented 1 year ago

I forgot to mention in here a new release was release yesterday r0.8.0, which has this extra attribute as a direct attribute on the telenet_telemeter and telenet_telemeter_peak sensors, so they are much easier to reach.