mjg59 / python-broadlink

Python module for controlling Broadlink RM2/3 (Pro) remote controls, A1 sensor platforms and SP2/3 smartplugs
MIT License
1.38k stars 479 forks source link

Is there a way to change the device name? My RM4 Mini the name returned via this module is in chinese, but in the phone app in English? #696

Closed Jibun-no-Kage closed 2 years ago

Jibun-no-Kage commented 2 years ago

Is there a way to change the device name? My RM4 Mini the name returned via this module is in chinese, but in the phone app in English?

For example... ` # broadlink.setup(SSID, PASSPHARSE, SECURITY)

    #
    DEVICES=broadlink.discover(discover_ip_address=BROADCAST)

    for theDevice in DEVICES:

            theAuthentication=theDevice.auth()
            theSensors=theDevice.check_sensors()

            #
            print(theDevice)
            print(theAuthentication)
            print(theSensors)

            #
            theTemperature,theHumidity=Values(theSensors, 'temperature','humidity')
            print(theTemperature)
            print(theHumidity)

`

The output...

智能遥控 (Broadlink RM4 mini 0x648d / 192.168.1.XXX:80 / XX:XX:XX:XX:XX:XX) True {'temperature': 28.42, 'humidity': 23.39} 28.42 23.39

Really weird. The above 智能遥控 translates to 'Smart remote control'.

felipediel commented 2 years ago

Yes, you can call device.set_name("Something cool").

Jibun-no-Kage commented 2 years ago

Thaanks!