ebaauw / homebridge-p1

Homebridge plugin for DSMR end-consumer (P1) interface
Apache License 2.0
53 stars 11 forks source link

view option #46

Closed ronaldsiesta closed 3 years ago

ronaldsiesta commented 3 years ago

Hi Ebaauw,

Thanks for all you efforts to make this Plugin, i'm really happy with it and it works perfectly overhere. I using it mainly in the ave app. placed in room together with my solaragde plugin to see all my energy going in and out.

I have only one question, is it possible to show here the current consumption information instead of the total consumption information?

Best regards,

Ronald

ebaauw commented 3 years ago

Not sure what you mean by “here”? The current consumption is exposed as Consumption (in W). It’s up to Eve how to display it.

ronaldsiesta commented 3 years ago

with "here" i mean the room slide.

Schermafbeelding 2021-02-26 om 16 19 15
ebaauw commented 3 years ago

I can expose the meters as Outlet. Of course, you cannot turn the meter on or off, so the outlet would show as on all the time (and revert to on when you try and turn it off). That has the added advantage of not needing a dummy Stateless Programmable Switch to un-favourite the Not Supported accessory in Home.

In the Room view, Eve shows the light with an On/Off switch on the right, but with the Consumption under the name.

IMG_0001

I'm not going to create fake light sensors.

stannie commented 3 years ago

It's most probably more an Eve question, but with this change I only see the button state (ON) in At a Glance and in the room screens, not the consumption / delivery W. Checked both iPhone and iPad.

ebaauw commented 3 years ago

Indeed At a Glance only shows the button. You should see the current consumption in the Rooms view, as in the screenshot above. Maybe you need to restart Eve, or change the order of the characteristics (I have On, Total Consumption, Current Consumption as first three).

I could try and expose two additional custom services, one with Total Consumption and one with Current Consumption for inclusion in the At a Glance view. Home should ignore these, but I'm not sure if Eve will still honour the history...

ebaauw commented 3 years ago

Eve is definitely peculiar. I reverted the change to expose the meters as Outlet and changed the order in which the characteristics for the Electricity service are created. It now shows the Current Consumption (and Last Updated) in the Rooms view, instead of the Total Consumption Normal and Total Consumption Low. You might need to un-expose and re-expose the accessory, before Eve picks up the change (i.e. delete the accessory from cachedAccessories and restart Homebridge).

IMG_0002

ebaauw commented 3 years ago

In v1.1.9.

ronaldsiesta commented 3 years ago

This gifs a good quick view, thank you :)