Problems with non-latin Names of Devices on Python framework
Posted: Saturday 11 March 2017 15:09
I got in some kind of problems, when using non-latin (cyrillic in my case) names for devices:
Log:
Immediately after writing last line to log Domotics hangs.
If I use latin name everything goes OK, till I try to rename Device from web interface. Device is renamed, but Domoticz hangs on nearest onHeartbeat.
For other types of hardware (z-wave, RFXCOM, Dummy ets. ) I can name devices in Russian without problems.
Tested on several versions of Domoticz, including V3.6934 under Windows and Raspberry
Code: Select all
myName="Тест"
Domoticz.Log("myName = " + myName)
Domoticz.Device(Name=myName, Unit=1, Type=244, Subtype=73, Switchtype=7).Create()
Domoticz.Log("Device Created")
Code: Select all
2017-03-11 16:45:13.893 PluginSystem: Started, Python version '3.5.0'.
...
2017-03-11 16:45:16.367 PluginSystem: Entering work loop.
2017-03-11 16:45:16.403 (BASE) Initialized version 1.0.0
2017-03-11 16:45:16.404 (BASE) myName = Тест
If I use latin name everything goes OK, till I try to rename Device from web interface. Device is renamed, but Domoticz hangs on nearest onHeartbeat.
For other types of hardware (z-wave, RFXCOM, Dummy ets. ) I can name devices in Russian without problems.
Tested on several versions of Domoticz, including V3.6934 under Windows and Raspberry