# Reading value from Bosch device with HomeyScript

**URL:** <https://community.homey.app/t/reading-value-from-bosch-device-with-homeyscript/46103>\
**Category:** Questions & Help\
**Tags:** homeyscript\
**Created:** [April 11, 2021, 3:38pm UTC](https://community.homey.app/t/reading-value-from-bosch-device-with-homeyscript/46103 "2021-04-11T15:38:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Heronimus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heronimus/32/3564_2.png) [@Heronimus](https://community.homey.app/u/Heronimus)\
**Post date:** [April 11, 2021, 3:38pm UTC](https://community.homey.app/t/reading-value-from-bosch-device-with-homeyscript/46103/1 "2021-04-11T15:38:42Z")

</div>

I’m trying to read the progress of my Bosch Washmachine with Homeyscript. With help of this forum i get it to this point:

I can read the alarm\_contact value with the following commands : (faked id, don’t know if it’s private)

```
let BoschWashmachine = await Homey.devices.getDevice({id:'999999999-9999-9999-99999-999999999999'});
let BoschdoorOpen = BoschWashmachine.capabilitiesObj.alarm_contact.value;

```

but i can’t get the capability Object Progress.  
Here is the output of that part when i list the device:

```
capabilitiesObj: {
    alarm_contact: {
      value: true,
      lastUpdated: '2021-04-11T13:47:35.813Z',
      type: 'boolean',
      getable: true,
      setable: false,
      title: 'Door open',
      desc: 'Contact sensor, e.g. for windows (true/false)',
      units: null,
      id: 'alarm_contact',
      options: [Object],
      values: undefined
    },
    'bshc_string.remaining_time': {
      value: '2:00',
      lastUpdated: '2021-04-11T13:39:01.600Z',
      type: 'string',
      getable: true,
      setable: true,
      title: 'Remaining time',
      desc: null,
      units: null,
      iconObj: [Object],
      id: 'bshc_string.remaining_time',
      options: [Object],
      values: undefined
    },
    'bshc_string.progress': {
      value: '88%',
      lastUpdated: '2021-04-11T13:39:01.590Z',
      type: 'string',
      getable: true,
      setable: true,
      title: 'Program progress',
      desc: null,
      units: null,
      iconObj: [Object],
      id: 'bshc_string.progress',
      options: [Object],
      values: undefined
```

---

<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:** [April 11, 2021, 3:47pm UTC](https://community.homey.app/t/reading-value-from-bosch-device-with-homeyscript/46103/2 "2021-04-11T15:47:16Z")

</div>

> [@Heronimus](#):
>
> but i can’t get the capability Object Progress.

`BoschWashmachine.capabilitiesObj['bshc_string.progress']`

---

<div class="post-metadata">

**Author:** ![Marcel\_Ubels](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/marcel_ubels/32/18860_2.png) [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Post date:** [April 11, 2021, 4:15pm UTC](https://community.homey.app/t/reading-value-from-bosch-device-with-homeyscript/46103/3 "2021-04-11T16:15:16Z")

</div>

> [@robertklep](#):
>
> BoschWashmachine.capabilitiesObj[‘bshc\_string.progress’]

BoschWashmachine.capabilitiesObj['bshc\_string.progress.value]

---

<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:** [April 11, 2021, 5:38pm UTC](https://community.homey.app/t/reading-value-from-bosch-device-with-homeyscript/46103/4 "2021-04-11T17:38:17Z")

</div>

`BoschWashmachine.capabilitiesObj['bshc_string.progress'].value` then 😛 (but he asked for the object, which is what my answer was providing)

---

<div class="post-metadata">

**Author:** ![Heronimus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/heronimus/32/3564_2.png) [@Heronimus](https://community.homey.app/u/Heronimus)\
**Post date:** [April 11, 2021, 5:59pm UTC](https://community.homey.app/t/reading-value-from-bosch-device-with-homeyscript/46103/5 "2021-04-11T17:59:24Z")

</div>

`BoschWashmachine.capabilitiesObj['bshc_string.progress'].value`

Thank you, that worked and makes my day!
