{"action":"created","issue":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/558","repository_url":"https://api.github.com/repos/domoticz/domoticz","labels_url":"https://api.github.com/repos/domoticz/domoticz/issues/558/labels{/name}","comments_url":"https://api.github.com/repos/domoticz/domoticz/issues/558/comments","events_url":"https://api.github.com/repos/domoticz/domoticz/issues/558/events","html_url":"https://github.com/domoticz/domoticz/issues/558","id":140184602,"number":558,"title":"Symlinks to /dev/ttyUSBx devices are ignored","user":{"login":"trusnak","id":504905,"avatar_url":"https://avatars.githubusercontent.com/u/504905?v=3","gravatar_id":"","url":"https://api.github.com/users/trusnak","html_url":"https://github.com/trusnak","followers_url":"https://api.github.com/users/trusnak/followers","following_url":"https://api.github.com/users/trusnak/following{/other_user}","gists_url":"https://api.github.com/users/trusnak/gists{/gist_id}","starred_url":"https://api.github.com/users/trusnak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusnak/subscriptions","organizations_url":"https://api.github.com/users/trusnak/orgs","repos_url":"https://api.github.com/users/trusnak/repos","events_url":"https://api.github.com/users/trusnak/events{/privacy}","received_events_url":"https://api.github.com/users/trusnak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-11T13:37:01Z","updated_at":"2016-03-11T13:42:00Z","closed_at":null,"body":"Hi\r\nAs you have multiple USB devices connected to system, it's good idea to use udev to assign same name in /dev tree for it everytime it's reconnected. If you want to use 'cool' name for the device, domoticz have hardcoded names for the devices set in the code, for example:\r\n\r\n```\r\n# cat /etc/udev/rules.d/02-tty.rules\r\n# ttyUSB3\r\nSUBSYSTEM==\"tty\", ATTRS{idVendor}==\"10c4\", ATTRS{idProduct}==\"ea60\", ATTRS{serial}==\"0001\", SYMLINK+=\"openzwave\"\r\n```\r\n\r\n```\r\n$ ls -la /dev/opentherm\r\nlrwxrwxrwx    1 root     root             7 Mar 11 14:22 /dev/opentherm -> ttyUSB3\r\n```\r\n\r\nFinally it's not possible to choose /dev/opentherm in the dropdown list in web interface.\r\n\r\nThe question is how to detect that? My only idea here is to check all symlinks if it is pointing to USB device:\r\n```\r\n# file /dev/opentherm\r\n/dev/opentherm: symbolic link to `ttyUSB3'\r\n# file /dev/ttyUSB3\r\n/dev/ttyUSB3: character special\r\n```\r\n\r\nAny better idea how to do so?"},"comment":{"url":"https://api.github.com/repos/domoticz/domoticz/issues/comments/195365958","html_url":"https://github.com/domoticz/domoticz/issues/558#issuecomment-195365958","issue_url":"https://api.github.com/repos/domoticz/domoticz/issues/558","id":195365958,"user":{"login":"trusnak","id":504905,"avatar_url":"https://avatars.githubusercontent.com/u/504905?v=3","gravatar_id":"","url":"https://api.github.com/users/trusnak","html_url":"https://github.com/trusnak","followers_url":"https://api.github.com/users/trusnak/followers","following_url":"https://api.github.com/users/trusnak/following{/other_user}","gists_url":"https://api.github.com/users/trusnak/gists{/gist_id}","starred_url":"https://api.github.com/users/trusnak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trusnak/subscriptions","organizations_url":"https://api.github.com/users/trusnak/orgs","repos_url":"https://api.github.com/users/trusnak/repos","events_url":"https://api.github.com/users/trusnak/events{/privacy}","received_events_url":"https://api.github.com/users/trusnak/received_events","type":"User","site_admin":false},"created_at":"2016-03-11T13:42:00Z","updated_at":"2016-03-11T13:42:00Z","body":"Ok, you can use this:\r\n```\r\n# cat /etc/udev/rules.d/02-tty.rules\r\n# ttyUSB3\r\nSUBSYSTEM==\"tty\", ATTRS{idVendor}==\"10c4\", ATTRS{idProduct}==\"ea60\", ATTRS{serial}==\"0001\", SYMLINK+=\"openzwave\" NAME=\"ttyUSB3\"\r\n```\r\nBut you are still unable to use any 'customized' device names. Right?"}}