Plugwise-2-py icon indicating copy to clipboard operation
Plugwise-2-py copied to clipboard

Logging Ability

Open andyh747 opened this issue 4 years ago • 9 comments

I'm hoping someone can answer a few queries - apologies wasn't sure where else to ask! I have a Plugwise system with numerous Circles and Stealth units. The network is connected through a Stretch. I lost the ability to see logged electricity consumption after Plugwise shut their servers in January 2021. I would really like to continue logging data from the network and it looks like this integration with Home Assistant would allow this.

Is there a simple guide to setting this up with HA? I read the install and setup guidance but is there a way the script can directly read the Circle & Stealth IDs via Stretch without having to enter each ID manually in the config?

Is there a way to display the logged data graphically within HA, similar to what the Plugwise app used to do?

Sorry for all these basic queries.

Edit: Looks like I can't use this Python script as I'm running HA on a Raspberry Pi 3 with Home Assistant OS and this has limited commands for python. Any workaround or is it not possible?

andyh747 avatar May 08 '21 09:05 andyh747

Hi Andy,

I think this is not a good place to ask this question. Those github issues are only read by people having a problem with Plugwise-2-py solution. Plugwise-2-py can only use the stick and not the stretch device.

I would expect that there is a Home Assistent forum where you could ask. I also would expect that there are already solutions such as python script that would address the Stretch web-api directly without going to the internet. Unfortunately I have neer looked at Stretch so difficult to be of real help. I do not own Stealths, but otherwise I would have integrated those sensors in my solution.

SevenW

SevenW avatar May 08 '21 10:05 SevenW

Hi SevenW,

Thanks for the reply. Apologies for posting in the wrong place, I suspected it wasn’t right! I’ll see if I can remove it.

Thanks for the reply.

Andy

On 8 May 2021, at 11:59, Seven Watt @.***> wrote:

Hi Andy,

I think this is not a good place to ask this question. Those github issues are only read by people having a problem with Plugwise-2-py solution. Plugwise-2-py can only use the stick and not the stretch device.

I would expect that there is a Home Assistent forum where you could ask. I also would expect that there are already solutions such as python script that would address the Stretch web-api directly without going to the internet. Unfortunately I have neer looked at Stretch so difficult to be of real help. I do not own Stealths, but otherwise I would have integrated those sensors in my solution.

SevenW

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SevenW/Plugwise-2-py/issues/79#issuecomment-835294332, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACX57UJRDLCQYRG64I4BRILTMUKSPANCNFSM44MRFSXQ.

andyh747 avatar May 08 '21 11:05 andyh747

No need to remove. I can put it to closed, or you can do it. We can keep it open for a while to see whether somebody else knows a solution.

SevenW avatar May 08 '21 11:05 SevenW

Perfect many thanks.

I have installed the HA Plugwise Beta but although it shows instant consumption, there doesn’t seem any way to poll the system for historical data. I know the Circles store historical data so I’m hoping I can access the lost data since January some way through the Stretch.

Thanks again.

Andy

On 8 May 2021, at 12:02, Seven Watt @.***> wrote:

No need to remove. I can put it to closed, or you can do it. We can keep it open for a while to see whether somebody else knows a solution.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SevenW/Plugwise-2-py/issues/79#issuecomment-835295957, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACX57UISM72F3FMI6TSS3TTTMUK5DANCNFSM44MRFSXQ.

andyh747 avatar May 08 '21 11:05 andyh747

I see. That might indeed be a special feature of my solution. Not many home automation people seem to be interested in anything but realtime logging

SevenW avatar May 08 '21 11:05 SevenW

Yes that is a strong feature of your solution!

I use your solution together with Home Assistant. You can import it with the MQTT part of HA and P2PY.

Mediacj avatar May 08 '21 12:05 Mediacj

Indeed it's an excellent solution.

@Mediacj I assume you're using an HA install on Linux rather than HA OS? I don't think it's possible to use P2PY on HA OS - I'm running on a RPi 3.

andyh747 avatar May 08 '21 12:05 andyh747

I use Proxmox and within Proxmox I have a vm for HA OS and a container for P2PY. It's on a Intel NUC.

Mediacj avatar May 08 '21 12:05 Mediacj

Thanks for that. So I either wait to see if the Plugwise HA integration gets logging feature or I'd have to remove the Stick from my Stretch and use P2PY in another RPi as I couldn't use this in my current RPi setup with HA as there's no way to run P2PY through HA OS .

andyh747 avatar May 08 '21 13:05 andyh747