# How to update a property of a device

**URL:** <https://community.homey.app/t/how-to-update-a-property-of-a-device/61681>\
**Category:** Developers\
**Created:** [March 14, 2022, 10:25am UTC](https://community.homey.app/t/how-to-update-a-property-of-a-device/61681 "2022-03-14T10:25:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![reyntjensw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/reyntjensw/32/34189_2.png) [@reyntjensw](https://community.homey.app/u/reyntjensw)\
**Post date:** [March 14, 2022, 10:25am UTC](https://community.homey.app/t/how-to-update-a-property-of-a-device/61681/1 "2022-03-14T10:25:40Z")

</div>

Good morning

When creating a driver, you can set some properties ([Drivers & Devices - Homey Apps SDK](https://apps.developer.homey.app/the-basics/devices)), but is there a way to update the value of these properties?

For example, can we update the device id that is being used in the documentation?

The use case I have is that I want to add properties that are not know when adding the device in the beginning.

In my code I’d like to add extra fields in my driver and update them in the device class. ([Homey-Wemportal/driver.js at main · reyntjensw/Homey-Wemportal · GitHub](https://github.com/reyntjensw/Homey-Wemportal/blob/main/drivers/burner/driver.js#L44))

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [March 14, 2022, 11:14am UTC](https://community.homey.app/t/how-to-update-a-property-of-a-device/61681/2 "2022-03-14T11:14:33Z")

</div>

No, you can’t add fields to `data` afterwards.

However, that field is only used to uniquely identify the device. I assume that when you first pair the device, the value you put it in (`item.ID`) is already unique. So there’s no need to add additional properties.

If you want to store additional information about your device at a later point, you can use [`setStoreValue`](https://apps-sdk-v3.developer.homey.app/Device.html#setStoreValue) or [`setSettings`](https://apps-sdk-v3.developer.homey.app/Device.html#setSettings).

Basically, there are three “data stores” related to a device:

- `data`: an immutable store (cannot be changed once the device is paired) used to uniquely identify the device
- `settings`: a mutable store to store (user-changeable) settings information in (for example, an IP address of a device or login credentials)
- `store`: a mutable store to store internal device information in (for instance, a login token)

---

<div class="post-metadata">

**Author:** ![reyntjensw](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/reyntjensw/32/34189_2.png) [@reyntjensw](https://community.homey.app/u/reyntjensw)\
**Post date:** [March 14, 2022, 12:18pm UTC](https://community.homey.app/t/how-to-update-a-property-of-a-device/61681/3 "2022-03-14T12:18:59Z")

</div>

Hi @robertklep

The store methode is the best for my use case, thanks a lot (again 🙂 )
