cyberjunky / home-assistant-p2000

:fire_engine: This component tracks P2000 emergency events in The Netherlands.
MIT License
55 stars 9 forks source link

No update of sensor #8

Closed aavosnl closed 4 years ago

aavosnl commented 4 years ago

Just installed everything following the workaround. Looks like the app dont get an update from the feed. Selecting al regions and the app stays on unknown.

aavosnl commented 4 years ago

sensor1 sensor2 configyaml

aavosnl commented 4 years ago

configyaml1 sensor3

ualex73 commented 4 years ago

Yups, same here - reverted back to the previous version resolved it.

The bug seems to be related to the "capcodes" functionality. If that isn't configured, you will never get a p2000 message in HA.

If you revert back to 1.0.4, it should work again.

aavosnl commented 4 years ago

Uninstalled everything, install version 1.0.4 but sensor info stays @ unknown. Leaving for now just as it is. waiting couple of hours to see of something will happen and the sensor get some information

harryd100 commented 4 years ago

same here, going to revert if possible

sweetpants commented 4 years ago

1.0.8 works when adding capcodes

cyberjunky commented 4 years ago

Sorry for the bugs, can you test Release 1.0.9? Just copy the latest sensor.py file, or wait for HACS to pickup update to show up.

ualex73 commented 4 years ago

Installed 1.0.9 and I see p2000 messages again.

aavosnl commented 4 years ago

Installed 1.0.9 first only the sensor based on

was working another sensor with code

stays on unknown. After a wile i'f noticed that the used feed al the capcodes starting with a 0 (012099) in the feed where missing the first 0. deleted that form the code and changed it to

solved the problem and the sensor is getting updates.

aavosnl commented 4 years ago

Sorry for the bugs, can you test Release 1.0.9? Just copy the latest sensor.py file, or wait for HACS to pickup update to show up.

Why say sorry :) let al the users say thanks for your time and work on it. Bugs happen and thats no problem at all.

r3mcos3 commented 4 years ago

for me still no updates with latest update.

- platform: p2000
  name: Brabant
  regios: 20,21,22
  disciplines: 1,2,3,4
  scan_interval: 90

i don't use capcodes.

cyberjunky commented 4 years ago

I though I had tested all different combinations.. It looks like there are a lot of msgs without a location with those parameters, testing a fix.

r3mcos3 commented 4 years ago

with this config it's working again.

---
- platform: p2000
  name: Brabant
  regios: 20,21,22
  disciplines: 1,2,3,4
  scan_interval: 90
  latitude: 55.581461
  longitude: 9.011954
  radius: 10000

maybe it can't fetch the location off home assistant. because if i give it a specific location it's working.

cyberjunky commented 4 years ago

Try release 1.0.10 it should show up soon in HACS, or copy from github.

morrisb74 commented 4 years ago

Still the same - Says unknown and doesn't update

r3mcos3 commented 4 years ago

updated to 1.0.10 and i removed latitude, longitude, radius. and for me it's working again!

cyberjunky commented 4 years ago

Still the same - Says unknown and doesn't update

Are you sure? I tested with all the configs combo's I could think of. What does yours look like?

r3mcos3 commented 4 years ago

now i have this

- platform: p2000
  name: Brabant
  regios: 21
  disciplines: 1,2,3,4
  # scan_interval: 90
  # latitude: 51.581461
  # longitude: 5.011954
  radius: 25000

because off the huge notifications that's is coming in

Screenshot_20200310_194937

aavosnl commented 4 years ago

After updating, dont get updates on the sensors thats using 01,02,03,04,05,06,07,08,09 capcodes al others are working. The option to leave the first 0 isn't working anymore

cyberjunky commented 4 years ago

Can you grab some debug logging?

cyberjunky commented 4 years ago

Closing, if there are still problems with latest release please open a new github issue.