# Developers

**URL:** https://community.homey.app/c/developers/10.md?page=19

[Latest](https://community.homey.app/latest.md) · [Categories](https://community.homey.app/categories.md) · [Tags](https://community.homey.app/tags.md)

**Page:** 20

---

## [Log any flow](https://community.homey.app/t/log-any-flow/73761)

<div class="topic-metadata">

**Author:** [@Mackelito](https://community.homey.app/u/Mackelito)\
**Replies:** 5\
**Last updated:** [December 18, 2022, 10:01pm UTC](https://community.homey.app/t/log-any-flow/73761 "2022-12-18T22:01:04Z")

</div>

Im looking for a way to log some info when ever a flow (any flow) is started… but I’m not seeing anything like that in the docs… or am I just missing it?

---

## [Unset device settings value](https://community.homey.app/t/unset-device-settings-value/73601)

<div class="topic-metadata">

**Author:** [@gol](https://community.homey.app/u/gol)\
**Replies:** 7\
**Last updated:** [December 15, 2022, 5:06pm UTC](https://community.homey.app/t/unset-device-settings-value/73601 "2022-12-15T17:06:02Z")

</div>

Is it not possible to unset (delete) a key/value in device settings? Only finds methods for adding and changing values.

---

## [Get updated values from device](https://community.homey.app/t/get-updated-values-from-device/73499)

<div class="topic-metadata">

**Author:** [@Evero](https://community.homey.app/u/Evero)\
**Replies:** 4\
**Last updated:** [December 13, 2022, 8:29am UTC](https://community.homey.app/t/get-updated-values-from-device/73499 "2022-12-13T08:29:20Z")

</div>

Apologies if this has been answered already, I’ve searched all over and can’t seem to find the answer - if it exists. I’m reading values for a Unifi device, and I see that only the “connected” value is fresh. Ideally I …

---

## [Internationalization / Locales](https://community.homey.app/t/internationalization-locales/73517)

<div class="topic-metadata">

**Author:** [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Replies:** 2\
**Last updated:** [December 13, 2022, 7:30am UTC](https://community.homey.app/t/internationalization-locales/73517 "2022-12-13T07:30:32Z")

</div>

hey, In your App, Drivers or Devices you can call this.homey.\_\_() with the identifier of the translated string to get the translation. In the following example we define a translation with the ID title and use the tran…

---

## [Check when value was updated](https://community.homey.app/t/check-when-value-was-updated/73413)

<div class="topic-metadata">

**Author:** [@Tester22](https://community.homey.app/u/Tester22)\
**Replies:** 4\
**Last updated:** [December 12, 2022, 6:58pm UTC](https://community.homey.app/t/check-when-value-was-updated/73413 "2022-12-12T18:58:45Z")

</div>

Hi, I have an app that among other things have an battery alarm. Unfortunately the device implementation is implemented so that an battery alarm is triggered by an negative power measure. This means that when the alar…

---

## [Device settings validation](https://community.homey.app/t/device-settings-validation/73478)

<div class="topic-metadata">

**Author:** [@gol](https://community.homey.app/u/gol)\
**Replies:** 2\
**Last updated:** [December 12, 2022, 12:19pm UTC](https://community.homey.app/t/device-settings-validation/73478 "2022-12-12T12:19:30Z")

</div>

Only example I can find, in the SDK description, regarding using pattern for validation of device settings is \[a-zA-Z\]. Has anyone managed to find a pattern for validation of for instance an ip address? Normal regex doe…

---

## [Shelly app Lise connection to Homey](https://community.homey.app/t/shelly-app-lise-connection-to-homey/73326)

<div class="topic-metadata">

**Author:** [@Tomas\_Jonsson](https://community.homey.app/u/Tomas_Jonsson)\
**Replies:** 1\
**Last updated:** [December 9, 2022, 11:26am UTC](https://community.homey.app/t/shelly-app-lise-connection-to-homey/73326 "2022-12-09T11:26:46Z")

</div>

I notice that my Shelly devices that are connected to the homey through the Shelly app lose its connections. The devices work fine I can use the Shelly app on my iPhone to connect and change settings, tur the device on a…

---

## [Water valve Sonic Hero-Labs convert node.js to python](https://community.homey.app/t/water-valve-sonic-hero-labs-convert-node-js-to-python/72592)

<div class="topic-metadata">

**Author:** [@Damian\_Surma](https://community.homey.app/u/Damian_Surma)\
**Replies:** 0\
**Last updated:** [November 24, 2022, 9:33am UTC](https://community.homey.app/t/water-valve-sonic-hero-labs-convert-node-js-to-python/72592 "2022-11-24T09:33:44Z")

</div>

Hi, I am looking for a person who would be able to convert Sonic Hero-Labs water valve drivers to a language that will be recognizable in Homey Pro.

---

## [Flows, Condition Card, return token and boolean?](https://community.homey.app/t/flows-condition-card-return-token-and-boolean/73051)

<div class="topic-metadata">

**Author:** [@chriszero](https://community.homey.app/u/chriszero)\
**Replies:** 1\
**Last updated:** [December 4, 2022, 5:25pm UTC](https://community.homey.app/t/flows-condition-card-return-token-and-boolean/73051 "2022-12-04T17:25:19Z")

</div>

How to return a boolean value and additionally tokens (numbers, strings)? In a Action Card I can return multiple tokens return { scaledValue: scaledVal, inputPercentage: percent, }; In a Condition Card…

---

## [How to securely store username and password for an API within my app](https://community.homey.app/t/how-to-securely-store-username-and-password-for-an-api-within-my-app/72180)

<div class="topic-metadata">

**Author:** [@Jonathan\_Draper](https://community.homey.app/u/Jonathan_Draper)\
**Replies:** 33\
**Last updated:** [November 26, 2022, 7:07pm UTC](https://community.homey.app/t/how-to-securely-store-username-and-password-for-an-api-within-my-app/72180 "2022-11-26T19:07:21Z")

</div>

Hi all Complete newbie homey app and Java script developer here, building my first app and I’m looking for advice on how to securely store a user’s username and password entered into app settings for my app. The app ac…

---

## [Homey pairing/setting mock objects](https://community.homey.app/t/homey-pairing-setting-mock-objects/5708)

<div class="topic-metadata">

**Author:** [@robertklep](https://community.homey.app/u/robertklep)\
**Replies:** 4\
**Last updated:** [November 25, 2022, 6:35am UTC](https://community.homey.app/t/homey-pairing-setting-mock-objects/5708 "2022-11-25T06:35:25Z")

</div>

To make custom template development (for pairing and settings) a bit more bearable, I started working on a mock library for the Homey object. The intention is that you can develop most of the templates locally, by mockin…

---

## [Coloured icons for customized toggle button?](https://community.homey.app/t/coloured-icons-for-customized-toggle-button/72612)

<div class="topic-metadata">

**Author:** [@gol](https://community.homey.app/u/gol)\
**Replies:** 4\
**Last updated:** [November 24, 2022, 8:52pm UTC](https://community.homey.app/t/coloured-icons-for-customized-toggle-button/72612 "2022-11-24T20:52:10Z")

</div>

In some of the Athom-designed toggle buttons I can see icons with green foreground. Is it possible to achieve coloured icons in own-designed buttons? In my configuration example below the foreground colour of the icon is…

---

## [Use of node-homey-log](https://community.homey.app/t/use-of-node-homey-log/72517)

<div class="topic-metadata">

**Author:** [@Rinwinte](https://community.homey.app/u/Rinwinte)\
**Replies:** 0\
**Last updated:** [November 22, 2022, 8:55pm UTC](https://community.homey.app/t/use-of-node-homey-log/72517 "2022-11-22T20:55:09Z")

</div>

Currently I am using node-homey-log for logging in my app. I had the following code this.homeyLog.captureBreadcrumb( 'ssdp', 'location address', { location: ssdpDetailsLocation, }, Log.Severity.Info, ); B…

---

## [Best practice for command feedback?](https://community.homey.app/t/best-practice-for-command-feedback/72446)

<div class="topic-metadata">

**Author:** [@gol](https://community.homey.app/u/gol)\
**Replies:** 2\
**Last updated:** [November 21, 2022, 2:35pm UTC](https://community.homey.app/t/best-practice-for-command-feedback/72446 "2022-11-21T14:35:03Z")

</div>

What is the best practice for giving a user a text feedback when he/she performs an action via e.g. a push button? I would like to give both positive (“command is succesful”) and negative (“command has failed”) feedback.…

---

## [New Xiaomi D1 switch will not connect](https://community.homey.app/t/new-xiaomi-d1-switch-will-not-connect/36391)

<div class="topic-metadata">

**Author:** [@JeroenG70](https://community.homey.app/u/JeroenG70)\
**Replies:** 5\
**Last updated:** [November 17, 2022, 8:10pm UTC](https://community.homey.app/t/new-xiaomi-d1-switch-will-not-connect/36391 "2022-11-17T20:10:30Z")

</div>

Hi , I’m not sure if I’m in the right place here. I have a new Xiaomi Aqara D1 single switch and this one won’t connect to the Homey. This is problably a new version with two blue leds on the front. type WXKG06LM Any…

---

## [Adding MyCroft as a voice assistant (on-site processing, full privacy unlike Alexa and others)](https://community.homey.app/t/adding-mycroft-as-a-voice-assistant-on-site-processing-full-privacy-unlike-alexa-and-others/22765)

<div class="topic-metadata">

**Author:** [@Morgan\_Lindqvist](https://community.homey.app/u/Morgan_Lindqvist)\
**Replies:** 5\
**Last updated:** [November 17, 2022, 4:58pm UTC](https://community.homey.app/t/adding-mycroft-as-a-voice-assistant-on-site-processing-full-privacy-unlike-alexa-and-others/22765 "2022-11-17T16:58:59Z")

</div>

Hi All, I like my privacy and hence I do not want to use for instance Alexa or Google Home to control my Homey since all the voice commands is sent to these two companies. One never knows when they turn on the mic and b…

---

## [Which version of Node.js should I use for (Homey Pro) App development on macOS?](https://community.homey.app/t/which-version-of-node-js-should-i-use-for-homey-pro-app-development-on-macos/72220)

<div class="topic-metadata">

**Author:** [@prosumer](https://community.homey.app/u/prosumer)\
**Replies:** 3\
**Last updated:** [November 17, 2022, 12:52pm UTC](https://community.homey.app/t/which-version-of-node-js-should-i-use-for-homey-pro-app-development-on-macos/72220 "2022-11-17T12:52:18Z")

</div>

In the past I helped the author of the SolarPanels App by creating a driver for Growatt inverters. This driver no longer seems to be able to log in to the Growatt servers. I want to investigate this issue, but homey app …

---

## [Extract S0/S2 keys](https://community.homey.app/t/extract-s0-s2-keys/72274)

<div class="topic-metadata">

**Author:** [@idarlund](https://community.homey.app/u/idarlund)\
**Replies:** 2\
**Last updated:** [November 17, 2022, 8:57am UTC](https://community.homey.app/t/extract-s0-s2-keys/72274 "2022-11-17T08:57:12Z")

</div>

Hi, How can I extract S0/S2 zwave keys from the homey? -Idar

---

## [How can I test/install an update of an App without losing Insights data?](https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149)

<div class="topic-metadata">

**Author:** [@prosumer](https://community.homey.app/u/prosumer)\
**Replies:** 4\
**Last updated:** [November 15, 2022, 3:52pm UTC](https://community.homey.app/t/how-can-i-test-install-an-update-of-an-app-without-losing-insights-data/72149 "2022-11-15T15:52:16Z")

</div>

In the past I have created/tested the Growatt driver for the SolarPanels App. This driver is having login issues (Growatt might be blocking us) and I want to see whether I can improve this. However, back then I lost all …

---

## [Is it possible to disable or customize the "device delete" function?](https://community.homey.app/t/is-it-possible-to-disable-or-customize-the-device-delete-function/72004)

<div class="topic-metadata">

**Author:** [@gol](https://community.homey.app/u/gol)\
**Replies:** 7\
**Last updated:** [November 13, 2022, 6:02pm UTC](https://community.homey.app/t/is-it-possible-to-disable-or-customize-the-device-delete-function/72004 "2022-11-13T18:02:55Z")

</div>

My App consists of a “parent”-device and multiple “child”-devices. If possible, I would like to prevent the user from deleting the parent before all children have been deleted.

---

## [Flow Contitions: Could not find that FlowCardCondition](https://community.homey.app/t/flow-contitions-could-not-find-that-flowcardcondition/72108)

<div class="topic-metadata">

**Author:** [@Nicolas\_LABLAINE](https://community.homey.app/u/Nicolas_LABLAINE)\
**Replies:** 1\
**Last updated:** [November 13, 2022, 12:19pm UTC](https://community.homey.app/t/flow-contitions-could-not-find-that-flowcardcondition/72108 "2022-11-13T12:19:57Z")

</div>

hello, I have a problem with the flow conditions I declare them in my driver.flow.compose.json like this: "conditions": \[ { "id": "Heating.HeatingButton", "title": { "en…

---

## [Is it possible to disable a capability ui-component?](https://community.homey.app/t/is-it-possible-to-disable-a-capability-ui-component/71981)

<div class="topic-metadata">

**Author:** [@Nicolas\_LABLAINE](https://community.homey.app/u/Nicolas_LABLAINE)\
**Replies:** 4\
**Last updated:** [November 12, 2022, 5:25pm UTC](https://community.homey.app/t/is-it-possible-to-disable-a-capability-ui-component/71981 "2022-11-12T17:25:52Z")

</div>

I am creating a driver/device for a thermostat, this one has the possibility of being locked, so that children do not modify the settings. Is it possible to lock the user interface, gray it out, while retaining the abil…

---

## [Script documentation](https://community.homey.app/t/script-documentation/71862)

<div class="topic-metadata">

**Author:** [@Joost\_Else](https://community.homey.app/u/Joost_Else)\
**Replies:** 3\
**Last updated:** [November 9, 2022, 12:00pm UTC](https://community.homey.app/t/script-documentation/71862 "2022-11-09T12:00:18Z")

</div>

Does anyone know where I can find the documentation for HomeyScript? The github repository (https://github.com/athombv/com.athom.homeyscript/blob/master/docs/global) that is referred to from the master branch does not ex…

---

## [Typescript?](https://community.homey.app/t/typescript/31987)

<div class="topic-metadata">

**Author:** [@henit](https://community.homey.app/u/henit)\
**Replies:** 6\
**Last updated:** [November 8, 2022, 11:20pm UTC](https://community.homey.app/t/typescript/31987 "2022-11-08T23:20:32Z")

</div>

Is there any typescript definitions available for homey entities?

---

## [Getting to environment variables from my api.js code](https://community.homey.app/t/getting-to-environment-variables-from-my-api-js-code/71791)

<div class="topic-metadata">

**Author:** [@LvanderRee](https://community.homey.app/u/LvanderRee)\
**Replies:** 4\
**Last updated:** [November 7, 2022, 6:30am UTC](https://community.homey.app/t/getting-to-environment-variables-from-my-api-js-code/71791 "2022-11-07T06:30:43Z")

</div>

I am working on a new application (to integrate Casambi devices), for which I want to store the username and password to an external service via the settings-screen, so you don’t have to login for every device and can ch…

---

## [TypeError: Cannot read properties of undefined (reading 'includes')](https://community.homey.app/t/typeerror-cannot-read-properties-of-undefined-reading-includes/71786)

<div class="topic-metadata">

**Author:** [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Replies:** 5\
**Last updated:** [November 7, 2022, 6:29am UTC](https://community.homey.app/t/typeerror-cannot-read-properties-of-undefined-reading-includes/71786 "2022-11-07T06:29:27Z")

</div>

What am I doiing wrong, I keep getting this error var ipAdres = '192.168.1.2'; var portNumber = '5005'; var radioPrefix = 'http://' + ipAdres + ':' + portNumber + '/woonkamer/favorite/'; var playListPrefix = 'http://'+ …

---

## [Zigbee Write Issue](https://community.homey.app/t/zigbee-write-issue/71762)

<div class="topic-metadata">

**Author:** [@Kraineff](https://community.homey.app/u/Kraineff)\
**Replies:** 3\
**Last updated:** [November 7, 2022, 2:31am UTC](https://community.homey.app/t/zigbee-write-issue/71762 "2022-11-07T02:31:45Z")

</div>

Device is connected directly to Homey without any routers, device is SED. After 1 pair, any writes works correctly: received frame writeAttributesAtomic.response \[ AttributeResponse { status: ‘SUCCESS’, id: 0 } \] rece…

---

## [Shower script](https://community.homey.app/t/shower-script/71466)

<div class="topic-metadata">

**Author:** [@Marcel\_Ubels](https://community.homey.app/u/Marcel_Ubels)\
**Replies:** 8\
**Last updated:** [November 2, 2022, 2:10pm UTC](https://community.homey.app/t/shower-script/71466 "2022-11-02T14:10:52Z")

</div>

I am trying to make a script which can detect when some one takes a shower. The way i try to do this is is with the data from my Smartgate watermeter. This is my initial script. const date = new Date(); const currentYea…

---

## [How to get the new apps info from the app store](https://community.homey.app/t/how-to-get-the-new-apps-info-from-the-app-store/71553)

<div class="topic-metadata">

**Author:** [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Replies:** 0\
**Last updated:** [November 1, 2022, 11:04pm UTC](https://community.homey.app/t/how-to-get-the-new-apps-info-from-the-app-store/71553 "2022-11-01T23:04:47Z")

</div>

Hi all, There’s this script from the examples in HomeyScript, It can retrieve certain data from an app’s appstore page: const res = await fetch('https://apps-api.athom.com/api/v1/app/com.athom.homeyscript'); if (!res.…

---

## [How can you set sensor as default tab on the device](https://community.homey.app/t/how-can-you-set-sensor-as-default-tab-on-the-device/71114)

<div class="topic-metadata">

**Author:** [@Edwin\_Biemond](https://community.homey.app/u/Edwin_Biemond)\
**Replies:** 6\
**Last updated:** [October 28, 2022, 4:52pm UTC](https://community.homey.app/t/how-can-you-set-sensor-as-default-tab-on-the-device/71114 "2022-10-28T16:52:45Z")

</div>

Hi, I have actions, sensors and batt on my solaredge app. Now I like to make sensors the default tab and not actions so you cannot make a mistake when you open the device and do some action. Thanks Edwin

[Previous page](https://community.homey.app/c/developers/10.md?page=18)

[Next page](https://community.homey.app/c/developers/10.md?page=20)
