davesmeghead / visonic

Visonic Custom Component for integration with Home Assistant
Apache License 2.0
90 stars 20 forks source link

Error when writing XML file #45

Closed anthonywalker75 closed 3 years ago

anthonywalker75 commented 3 years ago

When i call the eventlog service to download the alarm logs to xml & csv. I get the following error appear in the HA log.

This error originated from a custom integration.

Logger: custom_components.visonic.client Source: custom_components/visonic/client.py:178 Integration: Visonic Intruder Alarm (documentation, issues) First occurred: 21:59:34 (1 occurrences) Last logged: 21:59:34

Panel Event Log - Failed to write XML file

The csv file writes fine but the xml file does not. I have checked the settings and filename is the default value visonic_log_file.xml

davesmeghead commented 3 years ago

Hi, Does the answer to issue 28 help you? https://github.com/davesmeghead/visonic/issues/28

Also see here on the wiki under "Note 3" https://github.com/davesmeghead/visonic/wiki#the-complete-list-of-configurable-settings

D

anthonywalker75 commented 3 years ago

Ah, A simple case of RTFM.

However, i'm running HA as a docker container so i cannot see any of those folders. So i'll just blank out the filename for now to stop the error. (unless there is a workaround). Will be upgrading to a full VM installation in the future, it'll wait till then.

Anthony

davesmeghead commented 3 years ago

Hi, Yes you can, I'm also running it as a docker container but I have a config directory where my configuration.yaml file resides. Copy the "visonic_template.xml" file in to the same place. D