Fixes for conversion errors, formatting, and support for OmniHub
Applied fixes for errors in XML and JSON conversion resulting in issues in Home Assistant - now return OmnilogicExceptions if conversion can not be completed.
Applied formatting and other small changes from small PRs.
Added logic to support OmniHub - thanks @Lumute