Page 1 of 1

Problems with non-latin Names of Devices on Python framework

Posted: Saturday 11 March 2017 15:09
by avgays
I got in some kind of problems, when using non-latin (cyrillic in my case) names for devices:

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")
Log:

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 = Тест
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

Re: Problems with non-latin Names of Devices on Python framework

Posted: Saturday 25 March 2017 3:08
by Dnpwwo
@avgays,

This should be resolved in the next few days when the pull request #1406 (https://github.com/domoticz/domoticz/pull/1406) is merged into a beta.

Re: Problems with non-latin Names of Devices on Python framework

Posted: Saturday 25 March 2017 8:10
by avgays
@Dnpwwo
Great, thank you.