custom-components / sensor.owlintuition

A set of sensors to integrate the OWL Intuition devices network
MIT License
11 stars 9 forks source link

Stopped working after HA Update #39

Open wcavanagh opened 8 months ago

wcavanagh commented 8 months ago

I don’t seem to be getting any readings from my device since the last HA update. Anyone else have an issue?

shortbloke commented 8 months ago

Still working for me:

With owl intuition component version: b479dc3

Is there anything in your logs?

wcavanagh commented 8 months ago

Core 2024.2.5 Supervisor 2024.02.1 Operating System 12.0 Frontend 20240207.1

Owl version b479dc3

logs say

shortbloke commented 8 months ago

@wcavanagh You don't appear to have included the logs

wcavanagh commented 8 months ago

Oh sorry, the only thing in the error log after a fresh startup is .

2024-03-06 09:02:24.717 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration owlintuition which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

All the Owl sensors say Entity Not Available. Owl is working as I can see in the app and website all online etc.

shortbloke commented 8 months ago

OK, so that's not an error, that's just letting you know you're using an custom integration. In your configuration.yaml can you turn on a higher logging level:

# https://www.home-assistant.io/components/logger/
logger:
  default: error
  logs:
    custom_components.owlintuition.sensor: debug

Then restart Home Assistant. Once it's started up, leave it for a few mins to receive some packets, then comment out changes above and restart again.

wcavanagh commented 8 months ago

Thank you i have added that, and still no errors seen in the log, but still not data in the sensors. I cam going to reboot the owl next to see if that helps.

shortbloke commented 8 months ago

Do you still have a subscription to the Owl Intuition Website? If so is data appearing there?

wcavanagh commented 8 months ago

Yes, all live and active, and I see data there too. I’ve checked IPs and they are fixed so no change, and port number is correct. Was working until the HA update. Rebooting didn’t not help.

shortbloke commented 8 months ago

If you aren’t seeing any debug logs, it suggests the UDP packets aren’t being received. Any other network changes?

wcavanagh commented 8 months ago

Nothing at all, everything is the same on network level. Both the owl website and app are working. Not a single log in HA. Not config changes other than the last update. Might try rolling back and see what happens.

wcavanagh commented 8 months ago

Will pop wireshark on and see if I can see any UDP packets at all.

wcavanagh commented 8 months ago

Well interesting, I can see USD only going to the internet and nothing on LAN.

Screenshot 2024-03-07 124936

orandaadnaro commented 8 months ago

Core 2024.3.0 Supervisor 2024.02.1 Operating System 12.0 Frontend 20240306.0

Mine has stopped too :-(

wcavanagh commented 8 months ago

Oh interesting, I’ve contacted owl support to see if they changed anything. Did yours stop after HA update?

wcavanagh commented 8 months ago

They say they have made no new changes to the Owl software. So still somehow points to HA. I am at a loss.

wcavanagh commented 8 months ago

So using the owls sniffer tool, I can see multicast data being sent out on the network from Owl, so the Owl is working Screenshot 2024-03-07 183617 well.

wcavanagh commented 8 months ago

Will lest the java UDP listener next, then if that works it HAS to be a HA issue

shortbloke commented 8 months ago

How do you have your Owl configured? Mine is configured to send packets to my HA instance (192.168.200.45) image

# Owl Energy Monitor
- platform: owlintuition
  host: 192.168.200.45
  port: 32000
  mode: triphase
  cost_icon: 'mdi:currency-gbp'
  cost_unit_of_measurement: GBP
  monitored_conditions:
    - electricity
    - solar

I know it can be used in a multicast mode too. I'm wondering if one mode has broken?

wcavanagh commented 8 months ago

I have mine like yours, IP and port, will have a look if i can change to multicast, as that is defiantly working according to my tests.

wcavanagh commented 8 months ago

Looks like I just take the port out to enable multicast, just rebooting HA now :)

wcavanagh commented 8 months ago

No joy still, yet i know for sure the multicast is being sent over the network, same switch PC, HA, and OWL

orandaadnaro commented 8 months ago

This may be coincidental, but I have lost connection to owl recently. On checking this evening I discovered my subscription had lapsed.

I've just now renewed my subscription, so it may be interesting to see if I get any data appearing on my energy page.

You may want to check if you have an active subscription?

On 7 Mar 2024, at 19:27, wcavanagh @.***> wrote:

No joy still, yet i know for sure the multicast is being sent over the network, same switch PC, HA, and OWL

— Reply to this email directly, view it on GitHub https://github.com/custom-components/sensor.owlintuition/issues/39#issuecomment-1984268467, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSF5HYWOO7ZM3OWEZ7QVNTYXC5QXAVCNFSM6AAAAABEEYAAQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBUGI3DQNBWG4. You are receiving this because you commented.

wcavanagh commented 8 months ago

Interesting, I have double checked and mine is still active

Subscription Expiry | 25/02/2025

shortbloke commented 8 months ago

Have you tried to power cycle the owl receiver? Also long shot but if you're using something like pfsense for your router, then maybe worth rebooting it too. I don't suppose the owl and HA are on different subnets/vlans?

orandaadnaro commented 8 months ago

I’ll try in the morning. Its dark now and I doubt if I’ll see anything appear on the energy page.

On 7 Mar 2024, at 20:29, Martin Rowan @.***> wrote:

Have you tried to power cycle the owl receiver? Also long shot but if you're using something like pfsense for your router, then maybe worth rebooting it too. I don't suppose the owl and HA are on different subnets/vlans?

— Reply to this email directly, view it on GitHub https://github.com/custom-components/sensor.owlintuition/issues/39#issuecomment-1984370170, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSF5H3NARRQFZLFOXIPVU3YXDE33AVCNFSM6AAAAABEEYAAQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBUGM3TAMJXGA. You are receiving this because you commented.

wcavanagh commented 8 months ago

All on the same VLAN, yes power cycled the OWL, router would not cause an issue as it in internal LAN-LAN

All very weird. Its like HA just don see the multicast message.

orandaadnaro commented 8 months ago

Last night I resubscribds to Owl and restarted my owl unit and this morning all appears well - energy data being plotted on the graph.

Why should HA be dependeant on an active owl subscription. Where does it get it data from?

On 7 Mar 2024, at 20:04, wcavanagh @.***> wrote:

Interesting, I have double checked and mine is still active

Subscription Expiry | 25/02/2025

— Reply to this email directly, view it on GitHub https://github.com/custom-components/sensor.owlintuition/issues/39#issuecomment-1984332318, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADSF5HZ477JQFMFAWCTHAODYXDB33AVCNFSM6AAAAABEEYAAQWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOBUGMZTEMZRHA. You are receiving this because you commented.

shortbloke commented 8 months ago

@orandaadnaro I had the same issue more than once. I believe the owl stops emitting UDP packets when the subscription has expired. I'm not sure if this only applies to the directed UDP packets, vs a UDP multicast (which I think was the default config). Each time it's happened, I've been busy and just paid the sub and moved on.

wcavanagh commented 8 months ago

No joy here still.

wcavanagh commented 7 months ago

So I changed the Owl to send the Push UDP to my PC also on the same network as HA, and run the Java program, I can see it pushing both UDP and Multicast, so for sure OWL is working correctly, just HA don't seem to see the data. Pulling my hair out now. Screenshot 2024-03-09 200930

wcavanagh commented 7 months ago

Just to add further tests, a quick node red setup receives the data into HA Screenshot 2024-03-10 202344

orandaadnaro commented 7 months ago

I’d be interested in seeing the raw code for your node red solution. It appears to be very compact. Any chance of t You dropping it here?

wcavanagh commented 7 months ago

Sure no problem, I have now configured it complete without the need for the plugin :)

wcavanagh commented 7 months ago

Hi, I dont think its cool to share here in the Git of a integration, as what I created doesn't need the integration anymore. Maybe I can sent private ? somehow