Hello,
I try to use system variables in my homematic configuration, but when I set variables
to true
I see this error in the command line outline output:
2017-06-25 22:14:18 ERROR (SyncWorker_7) [pyhomematic._hm] RPCFunctions.jsonRpcPost: Exception: Invalid \escape: line 1 column 58 (char 57)
Digging into this I found this gist by @danielperna84 and modified it to print the output. See:
{"id": 0,"version": "1.1","result": [{"id":"40","name":"$\{sysVarAlarmMessages}","type":"NUMBER","unit":"","value":"0","channelId":"65535","minValue":"0","maxValue":"65000","isLogged":false,"isVisible":false,"isInternal":true},{"id":"1236","name":"$\{sysVarAlarmZone1}","type":"ALARM","unit":"","value":"","channelId":"65535","valueName0":"$\{sysVarAlarmZone1NotTriggered}","valueName1":"$\{sysVarAlarmZone1Triggered}","isLogged":false,"isVisible":true,"isInternal":false},{"id":"950","name":"$\{sysVarPresence}","type":"LOGIC","unit":"","value":"true","channelId":"65535","valueName0":"$\{sysVarPresenceNotPresent}","valueName1":"$\{sysVarPresencePresent}","isLogged":false,"isVisible":true,"isInternal":false},{"id":"41","name":"$\{sysVarServiceMessages}","type":"NUMBER","unit":"","value":"0","channelId":"65535","minValue":"0","maxValue":"65000","isLogged":false,"isVisible":false,"isInternal":true},{"id":"1505","name":"Heizprofil","type":"NUMBER","unit":"","value":"0.000000","channelId":"65535","minValue":"0","maxValue":"65000","isLogged":false,"isVisible":true,"isInternal":false}],"error": null}
The problem seems to be with $\{sysVarAlarmMessages}
I see two possible ways out:
- Fixing the JSON-Parser and
- make the ccu stop printing out those placeholder names.
Sadly, I don’t know how to do any of these things. Maybe someone can point me in the right direction.
Kind regards
Karsten
Env: Hass 0.47.1 | Python 3.6.1| Debian (jessie)