jheling / freeathome

Free@Home component for Home Assistant
103 stars 37 forks source link

Add service that dumps getAll XML and device updates to config folder #77

Closed Tho85 closed 3 years ago

Tho85 commented 3 years ago

Adds a service freeathome.dump that dumps the getAll XML to a file into the Home Assistant config folder. This way, users won't need a working Python installation in order to send us debugging information.

Usage:

Result:

2020-10-31 23:48:19 INFO (MainThread) [custom_components.freeathome] Dumped devices for host 10.0.0.2 to freeathome_dump_10.0.0.2.xml

~Let's keep the get-master-message.py around for a while, since it also continues to listen to the XMPP stream and prints e.g. status updates.~

Update

I've added another service that dumps device updates.

Usage:

Result:

2020-11-01 22:09:23 INFO (MainThread) [custom_components.freeathome] Start monitoring for device updates at host 10.10.10.2
2020-11-01 22:09:28 INFO (MainThread) [custom_components.freeathome] Finished monitoring for device updates at host 10.10.10.2, dumped to freeathome_monitor_10.10.10.2.xml
EnricoBilla commented 3 years ago

That's a great improvement! 👍🏼