Problems with non-latin Names of Devices on Python framework

Python and python framework

Moderator: leecollings

Post Reply
avgays
Posts: 14
Joined: Monday 30 January 2017 12:02
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Problems with non-latin Names of Devices on Python framework

Post 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
User avatar
Dnpwwo
Posts: 820
Joined: Sunday 23 March 2014 9:00
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Melbourne, Australia
Contact:

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

Post 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.
The reasonable man adapts himself to the world; the unreasonable one persists to adapt the world to himself. Therefore all progress depends on the unreasonable man. George Bernard Shaw
avgays
Posts: 14
Joined: Monday 30 January 2017 12:02
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

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

Post by avgays »

@Dnpwwo
Great, thank you.
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest