Parse part of host name from controller
Still sorta new to coding so bear with me,
I'm trying to parse part of the hostname from the controller as a variable to use it to define settings for specific rooms later in code. I can get the full hostname by using hostname = ipaddress.hostname, and then from that I only need the last 6 characters. our host names are set up as BLDG-FLOOR-ROOM.xyz.com i just need the 'room' part of the name. i've tried using right_string or remove_string but they all come up as empty values in debug. any thoughts?