skodaconnect / homeassistant-myskoda

Homeassistant integration for MySkoda.
85 stars 14 forks source link

Add handling for in-car warnings #333

Open WebSpider opened 2 days ago

WebSpider commented 2 days ago

In-car warnings are sent to the MySkoda API as well, and can be requested as part of the vehicle-health endpoint Example follows:

This issue is to add support for the in-car warnings.

{"capturedAt":"2024-11-20T11:35:22.965Z","mileageInKm":84961,"warningLights":[{"category":"ASSISTANCE","defects":[{"text":"Proactive passenger protection system is limited.","priority":"68","icon":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo5ZWVlODdiNS1lOWYwLTQwYzctODFmMy05ZWM3OWZmM2E0ZGIiIHhtcE1NOkRvY3VtZW50S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Pj3PbEXxrnzELS77+EkHhos3rQwxTmXJ/bujVc0U2xCbi3g89bAm78c9l4ivhbnnvitmIUMCmbmOQfT+Mt/UzaBRzIxEGY2RupS8423mWoUh5XY+IcwhJ63AAmGOcaroQes7mV+ibAvJRhnCjC3Wb2Z5blHyTp/5mcG1MhoDRWruPK3ZlKvicNnkKkocvJjwxvmqxwSHqUXBjqA06mSHL/ppfL3+rGgHtHmnpgG4PeYYzdZDdRYX0uQlxPgppkal4zzjnx1rTOgdIwuVUgl4DkKw5zuOsIao2sYzTrnBSneEmGMbJ1e4eUcFgPMvu/aHMc96zti4EM5WYrCF/F4b7WRHuY1SniQBFgNel0VrCAhX5Zr7Obft1VBVQBVUAVUE0FVAFVQBVQTQVUAVVAFVBNBVQBVUAVUM2n/S/AAP2xQdi8wJu3AAAAAElFTkSuQmCC"}]},{"category":"COMFORT","defects":[]},{"category":"BRAKE","defects":[]},{"category":"ELECTRIC_ENGINE","defects":[]},{"category":"LIGHTING","defects":[]},{"category":"TIRE","defects":[]},{"category":"OTHER","defects":[]}]}