# Flow die telt het aantal lampen dat aan is

**URL:** <https://community.homey.app/t/flow-die-telt-het-aantal-lampen-dat-aan-is/29082>\
**Category:** Flows\
**Created:** [April 28, 2020, 9:45pm UTC](https://community.homey.app/t/flow-die-telt-het-aantal-lampen-dat-aan-is/29082 "2020-04-28T21:45:43Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rob\_Bruining](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_bruining/32/16757_2.png) [@Rob\_Bruining](https://community.homey.app/u/Rob_Bruining)\
**Post date:** [April 28, 2020, 9:45pm UTC](https://community.homey.app/t/flow-die-telt-het-aantal-lampen-dat-aan-is/29082/1 "2020-04-28T21:45:43Z")

</div>

Ik heb een vraagje. Ik wil tellen hoeveel lampen er aan staan. Daardoor heb ik een Flow nodig die een variabele optelt of aftelt. Maar ik kan geen Flow trigger hiervoor vinden. Je zou willen zeggen als een device van type lamp op aan gezet worden dan +1 en anders -1. Nu moet ik per lamp een Flow aanmaken.

Iemand een idee?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [April 30, 2020, 2:45pm UTC](https://community.homey.app/t/flow-die-telt-het-aantal-lampen-dat-aan-is/29082/2 "2020-04-30T14:45:35Z")

</div>

Met flows zal dit ingewikkeld worden vrees ik, als je iets wil programmeren, zou je eens naar HomeyScript kunnen kijken: [https://homeyscript.homey.app/](https://homeyscript.homey.app/)

---

<div class="post-metadata">

**Author:** ![Rob\_Bruining](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_bruining/32/16757_2.png) [@Rob\_Bruining](https://community.homey.app/u/Rob_Bruining)\
**Post date:** [April 30, 2020, 6:59pm UTC](https://community.homey.app/t/flow-die-telt-het-aantal-lampen-dat-aan-is/29082/3 "2020-04-30T18:59:33Z")

</div>

Daar ben ik ook bang voor.

---

<div class="post-metadata">

**Author:** ![Rob\_Bruining](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_bruining/32/16757_2.png) [@Rob\_Bruining](https://community.homey.app/u/Rob_Bruining)\
**Post date:** [May 1, 2020, 5:28am UTC](https://community.homey.app/t/flow-die-telt-het-aantal-lampen-dat-aan-is/29082/4 "2020-05-01T05:28:29Z")

</div>

Is er uitgebreide documentatie van met voorbeelden?  
Ik zou bijvoorbeeld 5 devices willen controleren op id denk ik, waaronder of een deur open staat of een lamp (light en socket) aan staat en als dat zo is moet er true teruggegeven worden. Anders false. Heeft iemand van iets soortgelijks een voorbeeld?

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [May 1, 2020, 12:51pm UTC](https://community.homey.app/t/flow-die-telt-het-aantal-lampen-dat-aan-is/29082/5 "2020-05-01T12:51:13Z")

</div>

De zoek functie al ontdekt??  
 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/b/3b28baecfbf760a82043a32871611ce974d06628.png)

> **[zytric/homeyscripts](https://github.com/zytric/homeyscripts)**
>
> homeyscripts. Contribute to zytric/homeyscripts development by creating an account on GitHub.

> **[HomeyScript - share your scripts - main discussion topic](https://forum.athom.com/discussion/3666/homeyscript-share-your-scripts-main-discussion-topic)**
>
> HomeyScript Write scripts for Homey, for when the Flow Editor might not be enough. App store link: HomeyScript App 

---

<div class="post-metadata">

**Author:** ![Rob\_Bruining](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob_bruining/32/16757_2.png) [@Rob\_Bruining](https://community.homey.app/u/Rob_Bruining)\
**Post date:** [May 1, 2020, 6:56pm UTC](https://community.homey.app/t/flow-die-telt-het-aantal-lampen-dat-aan-is/29082/6 "2020-05-01T18:56:41Z")

</div>

Zekers. Ben al bezig geweest en aan het zoeken geweest, maar wat ik kan vinden is niet zo veel. Zal eerdaags nog eens zoeken, want gezien je reactie moet er dus wel aardig wat te vinden zijn. Thanks
