Closed joe-sydney closed 1 year ago
Hey there @kane610, mind taking a look at this issue as it has been labeled with an integration (unifi
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
unifi documentation unifi source (message by IssueLinks)
I am filtering them out for now, but it would be good to get to the bottom of why these warning messages exist in the first place.
Its a crowd sourcing thing, there are a lot of combinations in the UniFi system that I'm not aware of so this is a way to get that data.
Another one for you Kane (and appreciate that this is a moving feast :) I was experimenting with the guest portal on the UDM Pro (so this is firmly in the category of 'not a problem') but another key that needs catching:
• Unsupported event key EVT_AD_GuestUnauthorized
The other error that appeared which is related (once guest access control was enabled with a password - doesn't show when the guest portal doesn't have an auth method set in unifi) but not an event key, it's somewhere deeper:
Unsupported message key setting:sync
• Unsupported message {'meta': {'rc': 'ok', 'message': 'setting:sync'}, 'data': {'_id': ‘xxx’, 'site_id': ‘xxx’, 'key': 'guest_access', 'auth': 'hotspot', 'redirect_https': True, 'restricted_subnet_1': '192.168.0.0/16', 'restricted_subnet_2': '172.16.0.0/12', 'restricted_subnet_3': '10.0.0.0/8', 'redirect_url': 'https://xxx/xxx.html', 'voucher_enabled': False, 'password_enabled': True, 'portal_enabled': True, 'restricted_subnet_0': '', 'portal_customized_bg_color': '#ffffff', 'portal_customized_bg_image_enabled': False, 'portal_customized_bg_image_tile': False, 'portal_customized_box_color': '#ffffff', 'portal_customized_box_link_color': '#1379b7', 'portal_customized_box_text_color': '#141414', 'portal_customized_box_opacity': 90, 'portal_customized_button_color': '#1379b7', 'portal_customized_button_text_color': '#ffffff', 'portal_customized_link_color': '#00db9e', 'portal_customized_logo_enabled': True, 'portal_customized_text_color': '#000000', 'portal_customized_tos': “xxx”, 'portal_customized_tos_enabled': True, 'portal_customized_welcome_text': '\n\n\n\n\n\n', 'portal_customized_welcome_text_enabled': True, 'portal_customized_welcome_text_position': 'above_boxes', 'template_engine': 'angular', 'custom_ip': '', 'expire': 1440, 'expire_number': 5, 'expire_unit': 1, 'portal_customized': False, 'portal_customized_languages': ['en'], 'redirect_enabled': True, 'ec_enabled': True, 'portal_hostname': '', 'portal_use_hostname': False, 'radius_enabled': False, 'radius_auth_type': 'mschapv2', 'radiusprofile_id': ‘xxx’, 'radius_disconnect_enabled': False, 'radius_disconnect_port': 3799, 'payment_enabled': False, 'gateway': 'paypal', 'authorize_use_sandbox': False, 'ippay_use_sandbox': False, 'merchantwarrior_use_sandbox': False, 'paypal_use_sandbox': False, 'quickpay_testmode': False, 'facebook_enabled': False, 'wechat_enabled': False, 'restricted_subnet_4': '', 'restricted_subnet_5': '', 'restricted_subnet_6': '', 'allowed_subnet_1': '192.168.5.13', 'restricted_subnet_7': '', 'portal_customized_bg_image_filename': '', 'portal_customized_unsplash_author_name': 'S L', 'portal_customized_unsplash_author_username': 'gingermias', 'restricted_subnet_8': '', 'restricted_subnet_9': '', 'restricted_subnet_10': '', 'restricted_subnet_11': '', 'restricted_subnet_12': '', 'restricted_subnet_13': '', 'restricted_subnet_14': '', 'restricted_subnet_15': '', 'restricted_subnet_16': '', 'portal_customized_logo_filename': ‘xxx’, 'restricted_subnet_17': '', 'restricted_subnet_18': '', 'restricted_subnet_19': '', 'restricted_subnet_20': '', 'restricted_subnet_21': '', 'restricted_subnet_22': '', 'restricted_subnet_23': '', 'restricted_subnet_24': '', 'restricted_subnet_25': '', 'restricted_subnet_26': '', 'restricted_subnet_27': '', 'restricted_subnet_28': '', 'restricted_subnet_29': '', 'restricted_subnet_30': '', 'restricted_subnet_31': '', 'restricted_subnet_32': '', 'restricted_subnet_33': '', 'redirect_to_https': False, 'setting_preference': 'manual', 'allowed_subnet_2': '192.168.5.15', 'allowed_subnet_3': ''}}
Thanks! I target to fix this for 2022.2
The problem
A few of these messages every few minutes are written to the log file:
WARNING (MainThread) [aiounifi.models.event] Unsupported event key EVT_LG_Connected WARNING (MainThread) [aiounifi.models.event] Unsupported event {'guest': '_my_MACaddress', 'network': '_mySSID', 'key': 'EVT_LG_Connected', 'subsystem': 'lan', 'is_negative': False, 'site_id': 'xxxxxxxx', 'time': xxxxxxx, 'datetime': 'xxxxxxxx, 'msg': 'Guest[_my_MACaddress] has connected to mySSID', '_id': 'xxxxxxxxx'}
I believe EVT_LG_Connected means that a guest has connected. Why is this an unsupported event key that warrants a warning?
I am filtering them out for now, but it would be good to get to the bottom of why these warning messages exist in the first place.
What version of Home Assistant Core has the issue?
Currently running 2023.1.1 but this issue has occured in previous versions
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Core
Integration causing the issue
unifi
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response