travisghansen / hass-pfsense

pfSense integration with Home Assistant
187 stars 27 forks source link

Exclude non-dictionary type rules from processing #163

Closed ko94 closed 7 months ago

ko94 commented 1 year ago

Ive been using this integration for about a year and the vast majority of times that HA is being restarted i used to come across this error.

switch pull

Seems like HA is getting a string-type rule from my pfsense instance which results in no further processing of interfaces traffic (inbytes_kilobytes_per_second, etc), and some other sensors and marked unavailable.

Not sure if that's a unique case somehow related to my pfsense settings. By adding these lines everything works as intended for about a month. No further errors.

travisghansen commented 1 year ago

Thanks! would be interested in knowing what the value of the string is in such scenarios. Could you run it for a bit and log out the value before the continue to make sure it’s not something we can fundamentally fix somewhere else in the process?

ko94 commented 1 year ago

It's an empty string (24). I believe it's the anti-lockout rule. Couldn't find it in the extracted rules.

rules pflanrules