rccoleman/lamarzocco

Is there a way to separate the true amount of cups from the amount of flushes?

Lxxrxns opened this issue · 4 comments

The total_drinks sensor returns drinks+flushes, but in the native marzocco app you can see stats for both flushes and real cups of coffee.

Right now I have a helper that halves the amount of total_drinks because I normally flush after every cup, but this is suboptimal.

Are you looking for something beyond what the attributes provide?

image

I have a GS/3 AV, so the drinks_kx values are for each front-panel key. My assumption throughout the development of this integration was that other models only support drinks_k1 for coffee, and I'm not sure what the other values show for LM/Micra/GS3 MP.

The actual drink stats that come from the machine are very confusing and I apply an offset based on what comes from the API to try to get them to match what the apps shows. If there's a difference, especially with the new firmware, I can look into it.

Wow, OK, I had no idea there were several subvalues/attributes to this total_drinks entity. Any chance you could explain how to access these attributes in Home Assistant, for example in an automation?

Screenshot_20230117_185903_Home Assistant

They're "attributes", so you can use them in triggers, conditions, and some frontend cards where the docs say you can. You can also use them in templates as described here.

How to access and use attributes is basic HA functionality, so assuming the information you want is present, I'm going to close this issue. If the numbers are incorrect, please file a new issue.