pretty print XML, name for the device type

This commit is contained in:
Trammell Hudson
2022-02-05 21:30:33 +01:00
parent 84592e0c99
commit 579c16b536
3 changed files with 979 additions and 1 deletions

978
xml/WM6HXF91NL.json Normal file
View File

@@ -0,0 +1,978 @@
{
"description": {
"type": "Washer",
"brand": "SIEMENS",
"model": "WM6HXF91NL",
"version": "1",
"revision": "0"
},
"status": {
"5": {
"name": "BSH.Common.Status.BackendConnected",
"access": "read",
"available": "true",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"529": {
"name": "BSH.Common.Status.CustomerEnergyManagerPaired",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"557": {
"name": "BSH.Common.Status.CustomerServiceConnectionAllowed",
"access": "read",
"available": "true",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"527": {
"name": "BSH.Common.Status.DoorState",
"access": "read",
"available": "true",
"initValue": "1",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Open",
"1": "Closed",
"2": "Locked",
"3": "Ajar"
}
},
"568": {
"name": "BSH.Common.Status.FlexStart",
"access": "none",
"available": "false",
"initValue": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Disabled",
"1": "Enabled",
"2": "Pending",
"3": "Scheduled",
"4": "Started",
"5": "Finished"
}
},
"535": {
"name": "BSH.Common.Status.LocalControlActive",
"access": "read",
"available": "true",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"552": {
"name": "BSH.Common.Status.OperationState",
"access": "read",
"available": "true",
"initValue": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Inactive",
"1": "Ready",
"2": "DelayedStart",
"3": "Run",
"4": "Pause",
"5": "ActionRequired",
"6": "Finished",
"7": "Error",
"8": "Aborting"
}
},
"523": {
"name": "BSH.Common.Status.RemoteControlActive",
"access": "read",
"available": "true",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"517": {
"name": "BSH.Common.Status.RemoteControlStartAllowed",
"access": "read",
"available": "true",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"591": {
"name": "BSH.Common.Status.RemoteControlStartAllowedSince",
"access": "none",
"available": "false",
"initValue": "0",
"refCID": "10",
"refDID": "82"
},
"27": {
"name": "BSH.Common.Status.WiFiSignalStrength",
"access": "read",
"available": "true",
"initValue": "-128",
"notifyOnChange": "false",
"refCID": "12",
"refDID": "84"
},
"10754": {
"name": "LaundryCare.Common.Status.LoadInformation",
"access": "read",
"available": "false",
"initValue": "0",
"max": "25500",
"min": "0",
"refCID": "13",
"refDID": "81",
"stepSize": "100"
},
"10755": {
"name": "LaundryCare.Common.Status.SelectedProgramGroup",
"access": "none",
"available": "false",
"initValue": "1713",
"refCID": "15",
"refDID": "81"
},
"1024": {
"name": "LaundryCare.Common.StatusList.ProcessingData",
"access": "none",
"available": "true"
},
"8193": {
"name": "LaundryCare.Washer.Status.IDos1FillLevel",
"access": "read",
"available": "false",
"initValue": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Poor",
"1": "Filled"
}
},
"8194": {
"name": "LaundryCare.Washer.Status.IDos2FillLevel",
"access": "read",
"available": "false",
"initValue": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Poor",
"1": "Filled"
}
}
},
"settings": {
"3": {
"name": "BSH.Common.Setting.AllowBackendConnection",
"access": "readWrite",
"available": "true",
"initValue": "true",
"refCID": "01",
"refDID": "00"
},
"515": {
"name": "BSH.Common.Setting.AllowEnergyManagement",
"access": "none",
"available": "true",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"518": {
"name": "BSH.Common.Setting.AllowFlexStart",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"521": {
"name": "BSH.Common.Setting.ApplianceTime",
"access": "none",
"available": "false",
"refCID": "17",
"refDID": "A9"
},
"524": {
"name": "BSH.Common.Setting.ChildLock",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"533": {
"name": "BSH.Common.Setting.Language",
"access": "none",
"available": "false",
"initValue": "7",
"refCID": "03",
"refDID": "80",
"values": {
"1": "Ar",
"2": "Az",
"3": "Bg",
"4": "Bs",
"5": "Cs",
"6": "Da",
"7": "De",
"8": "El",
"9": "En",
"10": "EnUs",
"11": "Es",
"12": "EsMx",
"13": "Et",
"14": "Fi",
"15": "Fr",
"16": "FrCa",
"17": "He",
"18": "Hi",
"19": "Hr",
"20": "Hu",
"21": "Id",
"22": "Is",
"23": "It",
"24": "Ja",
"25": "Kk",
"26": "Ko",
"27": "Lt",
"28": "Lv",
"29": "Mk",
"30": "Mo",
"31": "Ms",
"32": "Nl",
"33": "No",
"34": "Pl",
"35": "Pt",
"36": "PtBr",
"37": "Ro",
"38": "Ru",
"39": "Sk",
"40": "Sl",
"41": "Sq",
"42": "Sr",
"43": "Sv",
"44": "Th",
"45": "Tr",
"46": "Uk",
"47": "Vi",
"48": "Zh",
"49": "ZhHk",
"50": "ZhTw",
"51": "Fa"
}
},
"539": {
"name": "BSH.Common.Setting.PowerState",
"access": "read",
"available": "true",
"initValue": "2",
"max": "3",
"min": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "MainsOff",
"2": "On",
"3": "Standby"
}
},
"547": {
"name": "BSH.Common.Setting.SynchronizeWithTimeServer",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"41": {
"name": "BSH.Common.Setting.Time.DisplayMode",
"access": "none",
"available": "false",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Relative",
"1": "Absolute"
}
},
"580": {
"name": "BSH.Common.Setting.TimeFormat",
"access": "none",
"available": "false",
"initValue": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "24Hours",
"1": "12Hours"
}
},
"14851": {
"name": "LaundryCare.Common.Setting.AutoPowerOff",
"access": "none",
"available": "false",
"initValue": "15",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"15": "15min",
"30": "30min",
"60": "60min"
}
},
"14862": {
"name": "LaundryCare.Common.Setting.Brightness",
"access": "none",
"available": "false",
"initValue": "0",
"max": "100",
"min": "0",
"refCID": "11",
"refDID": "A0"
},
"14854": {
"name": "LaundryCare.Common.Setting.BrightnessLevel",
"access": "none",
"available": "false",
"initValue": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Low",
"1": "Medium",
"2": "High",
"3": "VeryHigh"
}
},
"14857": {
"name": "LaundryCare.Common.Setting.DoorLightRing.Active",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"14852": {
"name": "LaundryCare.Common.Setting.DoorLightRing.ActiveMode",
"access": "readWrite",
"available": "false",
"initValue": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "On",
"2": "Auto"
}
},
"14863": {
"name": "LaundryCare.Common.Setting.DoorLightRing.Brightness",
"access": "none",
"available": "false",
"initValue": "0",
"max": "100",
"min": "0",
"refCID": "11",
"refDID": "A0"
},
"14858": {
"name": "LaundryCare.Common.Setting.DoorLightRing.BrightnessLevel",
"access": "none",
"available": "false",
"initValue": "0",
"max": "3",
"min": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Low",
"1": "Medium",
"2": "High",
"3": "VeryHigh"
}
},
"14853": {
"name": "LaundryCare.Common.Setting.EndSignal",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"14849": {
"name": "LaundryCare.Common.Setting.EndSignalVolume",
"access": "none",
"available": "false",
"initValue": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Low",
"2": "Medium",
"3": "Loud",
"4": "VeryLoud"
}
},
"14850": {
"name": "LaundryCare.Common.Setting.KeySignalVolume",
"access": "none",
"available": "false",
"initValue": "0",
"max": "4",
"min": "0",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Low",
"2": "Medium",
"3": "Loud",
"4": "VeryLoud"
}
},
"14860": {
"name": "LaundryCare.Common.Setting.Sound.Mute",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"14861": {
"name": "LaundryCare.Common.Setting.TimeLight.Active",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"12292": {
"name": "LaundryCare.Washer.Setting.EnableDrumCleanReminder",
"access": "none",
"available": "false",
"initValue": "false",
"refCID": "01",
"refDID": "00"
},
"12293": {
"name": "LaundryCare.Washer.Setting.IDos1.ContentName",
"access": "none",
"available": "false",
"initValue": "Idos1ContentName",
"max": "16",
"refCID": "05",
"refDID": "8B"
},
"12290": {
"name": "LaundryCare.Washer.Setting.IDos1BaseLevel",
"access": "none",
"available": "false",
"initValue": "36",
"max": "200",
"min": "10",
"refCID": "14",
"refDID": "80",
"stepSize": "1"
},
"12294": {
"name": "LaundryCare.Washer.Setting.IDos2.ContentName",
"access": "none",
"available": "false",
"initValue": "Idos2ContentName",
"max": "16",
"refCID": "05",
"refDID": "8B"
},
"12291": {
"name": "LaundryCare.Washer.Setting.IDos2BaseLevel",
"access": "none",
"available": "false",
"initValue": "75",
"max": "200",
"min": "10",
"refCID": "14",
"refDID": "80",
"stepSize": "1"
},
"12289": {
"name": "LaundryCare.Washer.Setting.IDos2Content",
"access": "none",
"available": "false",
"initValue": "1",
"refCID": "03",
"refDID": "80",
"values": {
"1": "Softener",
"2": "Detergent"
}
}
},
"events": {
"525": {
"name": "BSH.Common.Event.AquaStopOccured",
"handling": "none",
"level": "critical",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"559": {
"name": "BSH.Common.Event.CustomerServiceRequest",
"handling": "none",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"598": {
"name": "BSH.Common.Event.HomeConnectApplianceDataMissing",
"handling": "none",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"543": {
"name": "BSH.Common.Event.LowWaterPressure",
"handling": "none",
"level": "alert",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"545": {
"name": "BSH.Common.Event.ProgramAborted",
"handling": "acknowledge",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"540": {
"name": "BSH.Common.Event.ProgramFinished",
"handling": "acknowledge",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"21": {
"name": "BSH.Common.Event.SoftwareUpdateAvailable",
"handling": "acknowledge",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18954": {
"name": "LaundryCare.Common.Event.DelayedShutdown",
"handling": "acknowledge",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18955": {
"name": "LaundryCare.Common.Event.DelayedShutdownCanceled",
"handling": "acknowledge",
"level": "info",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18953": {
"name": "LaundryCare.Common.Event.DoorLock.WaterLevelTooHigh",
"handling": "acknowledge",
"level": "warning",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18950": {
"name": "LaundryCare.Common.Event.DoorNotLockable",
"handling": "none",
"level": "alert",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18949": {
"name": "LaundryCare.Common.Event.DoorNotUnlockable",
"handling": "acknowledge",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18951": {
"name": "LaundryCare.Common.Event.DoorOpen",
"handling": "none",
"level": "alert",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18946": {
"name": "LaundryCare.Common.Event.FatalErrorOccured",
"handling": "none",
"level": "critical",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18952": {
"name": "LaundryCare.Common.Event.FoamDetection",
"handling": "acknowledge",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"18956": {
"name": "LaundryCare.Common.Event.SupplyPower.SupplyVoltageTooLow",
"handling": "none",
"level": "alert",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"16389": {
"name": "LaundryCare.Washer.Event.DrumCleanReminder",
"handling": "acknowledge",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"16394": {
"name": "LaundryCare.Washer.Event.IDos.IDosOpenTray",
"handling": "acknowledge",
"level": "warning",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"16385": {
"name": "LaundryCare.Washer.Event.IDos1FillLevelPoor",
"handling": "acknowledge",
"level": "warning",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"16386": {
"name": "LaundryCare.Washer.Event.IDos2FillLevelPoor",
"handling": "acknowledge",
"level": "warning",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"16390": {
"name": "LaundryCare.Washer.Event.IDosUnitDefect",
"handling": "none",
"level": "alert",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"16391": {
"name": "LaundryCare.Washer.Event.PumpError",
"handling": "none",
"level": "critical",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"16387": {
"name": "LaundryCare.Washer.Event.ReleaseRinseHoldPending",
"handling": "decision",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
},
"16393": {
"name": "LaundryCare.Washer.Event.Spin.SpinAbort",
"handling": "acknowledge",
"level": "hint",
"refCID": "03",
"refDID": "80",
"values": {
"0": "Off",
"1": "Present",
"2": "Confirmed"
}
}
},
"commands": {
"512": {
"name": "BSH.Common.Command.AbortProgram",
"access": "none",
"available": "true",
"refCID": "01",
"refDID": "00"
},
"6": {
"name": "BSH.Common.Command.AcknowledgeEvent",
"access": "writeOnly",
"available": "true",
"refCID": "15",
"refDID": "81"
},
"576": {
"name": "BSH.Common.Command.AllowCustomerServiceConnectionLocalWiFi",
"access": "none",
"available": "true",
"refCID": "01",
"refDID": "00"
},
"553": {
"name": "BSH.Common.Command.ApplyFactoryReset",
"access": "none",
"available": "false",
"refCID": "01",
"refDID": "00"
},
"554": {
"name": "BSH.Common.Command.ApplyNetworkReset",
"access": "none",
"available": "true",
"refCID": "01",
"refDID": "00"
},
"1": {
"name": "BSH.Common.Command.DeactivateWiFi",
"access": "writeOnly",
"available": "true",
"refCID": "01",
"refDID": "00"
},
"530": {
"name": "BSH.Common.Command.DepairCustomerEnergyManager",
"access": "none",
"available": "false",
"refCID": "01",
"refDID": "00"
},
"560": {
"name": "BSH.Common.Command.DisallowCustomerServiceConnection",
"access": "none",
"available": "true",
"refCID": "01",
"refDID": "00"
},
"536": {
"name": "BSH.Common.Command.MainsPowerOff",
"access": "writeOnly",
"available": "false",
"refCID": "01",
"refDID": "00"
},
"16": {
"name": "BSH.Common.Command.RejectEvent",
"access": "writeOnly",
"available": "true",
"refCID": "15",
"refDID": "81"
},
"23041": {
"name": "LaundryCare.Common.Command.SelectProgramGroup",
"access": "none",
"available": "false",
"refCID": "15",
"refDID": "81"
},
"5402": {
"name": "LaundryCare.Common.CommandList.RemoteStart",
"access": "none",
"available": "true"
}
},
"options": {
"531": {
"name": "BSH.Common.Option.EstimatedTotalProgramTime",
"access": "read",
"available": "true",
"initValue": "0",
"min": "60",
"refCID": "10",
"refDID": "82",
"stepSize": "60"
},
"5659": {
"name": "LaundryCare.Common.OptionList.ActiveStatus",
"access": "none",
"available": "true"
},
"5661": {
"name": "LaundryCare.Common.OptionList.Options",
"access": "none",
"available": "true"
},
"5660": {
"name": "LaundryCare.Common.OptionList.RemoteStart",
"access": "none",
"available": "true"
},
"5658": {
"name": "LaundryCare.Common.OptionList.SelectedStatus",
"access": "none",
"available": "true"
}
},
"errors": {
"200": "BSH.Common.Error.200.OK",
"202": "BSH.Common.Error.202.Accepted",
"400": "BSH.Common.Error.400.BadRequest",
"403": "BSH.Common.Error.403.Forbidden",
"404": "BSH.Common.Error.404.NotFound",
"405": "BSH.Common.Error.405.MethodNotAllowed",
"413": "BSH.Common.Error.413.RequestEntityTooLong",
"412": "BSH.Common.Error.414.RequestUriTooLong",
"429": "BSH.Common.Error.429.TooManyRequests",
"500": "BSH.Common.Error.500.InternalServerError",
"501": "BSH.Common.Error.501.NotImplemented",
"502": "BSH.Common.Error.502.BadGateway",
"503": "BSH.Common.Error.503.ServiceUnavailable",
"504": "BSH.Common.Error.504.GatewayTimeout",
"507": "BSH.Common.Error.507.InsufficientMemory",
"542": "BSH.Common.Error.BackendNotConnected",
"515": "BSH.Common.Error.Busy",
"535": "BSH.Common.Error.CmdViolation",
"540": "BSH.Common.Error.DeviceStateNotCompliant",
"543": "BSH.Common.Error.EnergyManagementNotConnected",
"533": "BSH.Common.Error.Incomplete",
"534": "BSH.Common.Error.Inconsistent",
"536": "BSH.Common.Error.InvalidFormat",
"532": "BSH.Common.Error.InvalidUIDValue",
"539": "BSH.Common.Error.LockedByLocalControl",
"518": "BSH.Common.Error.NoAccess",
"521": "BSH.Common.Error.NoAccessByList",
"530": "BSH.Common.Error.NoExecution",
"524": "BSH.Common.Error.NotAvailable",
"527": "BSH.Common.Error.NotAvailableByList",
"544": "BSH.Common.Error.NotInLocalWiFi",
"541": "BSH.Common.Error.ProcessStateNotCompliant",
"517": "BSH.Common.Error.ReadRequest.Busy",
"520": "BSH.Common.Error.ReadRequest.NoAccess",
"523": "BSH.Common.Error.ReadRequest.NoAccessByList",
"526": "BSH.Common.Error.ReadRequest.NotAvailable",
"529": "BSH.Common.Error.ReadRequest.NotAvailableByList",
"514": "BSH.Common.Error.ReadRequest.UnknownUID",
"537": "BSH.Common.Error.RemoteControlNotActive",
"538": "BSH.Common.Error.RemoteStartNotActive",
"512": "BSH.Common.Error.UnknownUID",
"531": "BSH.Common.Error.ValueOutOfRange",
"516": "BSH.Common.Error.WriteRequest.Busy",
"519": "BSH.Common.Error.WriteRequest.NoAccess",
"522": "BSH.Common.Error.WriteRequest.NoAccessByList",
"525": "BSH.Common.Error.WriteRequest.NotAvailable",
"528": "BSH.Common.Error.WriteRequest.NotAvailableByList",
"513": "BSH.Common.Error.WriteRequest.UnknownUID"
}
}

View File

@@ -100,4 +100,4 @@ machine = {
"errors": errors,
}
print(json.dumps(machine))
print(json.dumps(machine, indent=4))