# Change device type

**URL:** <https://community.homey.app/t/change-device-type/30545>\
**Category:** Questions & Help\
**Created:** [May 28, 2020, 3:45pm UTC](https://community.homey.app/t/change-device-type/30545 "2020-05-28T15:45:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kfk](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@Kfk](https://community.homey.app/u/Kfk)\
**Post date:** [May 28, 2020, 3:45pm UTC](https://community.homey.app/t/change-device-type/30545/1 "2020-05-28T15:45:27Z")

</div>

Hi

I wonder if there is possible to change the device type in Homey?

I have for example Aeotec Nano switch and Dual Nano Switch that I use to control fans and heaters.  
But in Home there is a light symbol showing when they are turned on/off, and in Google Assistant these devices turns off when I say for example “Hey Google, turn all lights off”.  
I have read that Google set the type depending on the device name, but my devices are namned “Fan” “Heat” “Cameras” etc.

None of the Aeotec devics (except one of the “main” devices for Dual nano switch, but it doenst make any difference what I set there) have the option “What is connected” so I can’t change anything there.

Do you have any idea of how I could solve this?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [May 28, 2020, 4:08pm UTC](https://community.homey.app/t/change-device-type/30545/2 "2020-05-28T16:08:02Z")

</div>

You have 2 options,  
The quickest way is to change the app’s code ([single](https://github.com/athombv/com.aeotec/blob/master/drivers/ZW116/driver.compose.json#L6) / [dual](https://github.com/athombv/com.aeotec/blob/master/drivers/ZW132/driver.compose.json#L6)), and change the class to “socket” instead of “light”, [install the app via CLI](https://community.homey.app/t/how-to-cli-install-method/198), and then re-pair your devices.

The slowest way is to send an issue to Athom which are the creators of the app, and ask them to change the class, and when the app has been updated (which can take months) to then re-pair your devices.

---

<div class="post-metadata">

**Author:** ![Kfk](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@Kfk](https://community.homey.app/u/Kfk)\
**Post date:** [May 28, 2020, 4:30pm UTC](https://community.homey.app/t/change-device-type/30545/3 "2020-05-28T16:30:09Z")

</div>

Thank you.  
I’ll try the first option first. 😉

But I an new to this so I’m afraid that I don’t know how to change the app code. It cant be done by sending raw command directly in homey?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [May 28, 2020, 4:36pm UTC](https://community.homey.app/t/change-device-type/30545/4 "2020-05-28T16:36:21Z")

</div>

> [@Kfk](#):
>
> It cant be done by sending raw command directly in homey?

unfortunately that is indeed not possible, even if you could change it textual, to actually change the class a re-pair of the device is mandatory.

---

<div class="post-metadata">

**Author:** ![Kfk](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@Kfk](https://community.homey.app/u/Kfk)\
**Post date:** [May 28, 2020, 5:37pm UTC](https://community.homey.app/t/change-device-type/30545/5 "2020-05-28T17:37:30Z")

</div>

So first I have to unistall the Aeotec app and then install it again via CLI?  
Before installation I modify the application installation file with different device classes. But in that case I change all of the devices of the same model, for example ALL Dual Nano switches? Some of them is actually used for controlling light so I don’t want every Aetoec device class to be changed.  
Is that possible?

I read something about that I don’t have to pair all devices again when I uninstall and install the same app again. Are there any difference if I install via CLI? If not, could it be solved by not re-pair the light devices?  
In that case, I can’t add another Aeotec Nano switch to control lights, but I guess I just have to live with that and hope that I don’t have to re-pair any light-device again.

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [May 28, 2020, 6:20pm UTC](https://community.homey.app/t/change-device-type/30545/6 "2020-05-28T18:20:03Z")

</div>

> [@Kfk](#):
>
> So first I have to unistall the Aeotec app and then install it again via CLI?

No, anything you do, **do not uninstall** , unless you do want to re-pair all your aeotec devices, you can install just over the app store version and it will work.  
The same goes for going back to the app-store version, you can just install right over the CLI version _without uninstalling_ and everything will keep working, even if you made a small mistake in the code so the app crashes for example, just install the app version back again, and it will keep working

> [@Kfk](#):
>
> But in that case I change all of the devices of the same model, for example ALL Dual Nano switches? Some of them is actually used for controlling light so I don’t want every Aetoec device class to be changed.  
> Is that possible?

Like i said a re-pair is mandatory (so remove the device, and include again), if you don’t re-include, the class will stay the same.  
But even if those did change (which might have happend that this behaviour was changed in a Homey firmware update), one of the option in your “what is plugged in” is “light”, so you can always choose that as option.

---

<div class="post-metadata">

**Author:** ![Kfk](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@Kfk](https://community.homey.app/u/Kfk)\
**Post date:** [May 28, 2020, 6:46pm UTC](https://community.homey.app/t/change-device-type/30545/7 "2020-05-28T18:46:09Z")

</div>

Thank you very much for taking your time and help me!  
I will try that!

But some of the devices don’t have the option ”what is plugged in” today. Could that be changed in the installation file via CLI too?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [May 28, 2020, 6:48pm UTC](https://community.homey.app/t/change-device-type/30545/8 "2020-05-28T18:48:28Z")

</div>

> [@Kfk](#):
>
> But some of the devices don’t have the option ”what is plugged in” today. Could that be changed in the installation file via CLI too?

That is what you do when you change the class to `socket`, so all you have to do (easier said then done 😛) is change the class of those devices and re-pair.

---

<div class="post-metadata">

**Author:** ![Kfk](https://avatars.discourse-cdn.com/v4/letter/k/3e96dc/32.png) [@Kfk](https://community.homey.app/u/Kfk)\
**Post date:** [May 28, 2020, 8:28pm UTC](https://community.homey.app/t/change-device-type/30545/9 "2020-05-28T20:28:03Z")

</div>

Ok.  
But now I saw that the devices that had the alternative ”what is plugged in” was the ”main” device (the one that controls both channels) on Dual Nano switch (ZW140).  
Dual Nano switch (ZW132) with energy meter does not have that alternative.

But for zw140 it doesn’t matter if I set ”fan” as plugged in device (on the ”main” device”, the separate devices for channel 1 and two does not have that option). The separate devices for the separate channels still shows as lights.

So in case I would try to change this, if still possible, I need some guidance for how to change class on the separate channel devices on the dual nano switch.
