Skip to content

Instantly share code, notes, and snippets.

@lassem
lassem / output.json
Last active April 1, 2020 19:54
Result of parsing getall.xml
{
"serial": "ABB700000000",
"description": "SysAP",
"function": {
"functionId": 65277,
"description": "Panel"
},
"channels": {
"ch0000": {
"cid": "ABB7FFF3",
@lassem
lassem / parse.py
Last active April 1, 2020 19:56
ABB Free@Home getall.xml parser
#!/usr/bin/env python3
import xml.etree.ElementTree as ET
import json
f = open('mastermessage.xml', 'r', encoding="utf-8")
root = ET.parse(f)
functions = {}
strings = {}
<?xml version="1.0" encoding="UTF-8"?>
<project time="20170205131158649" timeStamp="30992" sessionId="10817d41" type="getAll" mrhaVersion="2.1.1"
mrhaBuild="4117">
<sysap>
<value name="processingUploadedFile">false</value>
<value name="rebootSystem">false</value>
<value name="performingReset">false</value>
<value name="sysapName">redacted</value>
<value name="hueBridgeInfo">0 0 0 1 0 0 0</value>
<value name="sysapConfigured">true</value>
@lassem
lassem / keybase.md
Last active January 19, 2021 11:38

Keybase proof

I hereby claim:

To claim this, I am signing this object: