# Scenes: test value of a device "integer counter"

**URL:** <https://community.gladysassistant.com/t/scenes-test-valeur-dun-device-compteur-entier/7488>\
**Category:** Random\
**Created:** [August 20, 2022, 5:10pm UTC](https://community.gladysassistant.com/t/scenes-test-valeur-dun-device-compteur-entier/7488 "2022-08-20T17:10:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![PhilippeMA](https://gladys-assistant-community.b-cdn.net/letter_avatar_proxy/v4/letter/p/b3f665/32.png) [@PhilippeMA](https://community.gladysassistant.com/u/PhilippeMA)\
**Post date:** [August 20, 2022, 5:10pm UTC](https://community.gladysassistant.com/t/scenes-test-valeur-dun-device-compteur-entier/7488/1 "2022-08-20T17:10:44Z")

</div>

Hello,

To handle a specific case (daytime or nighttime), I created a fake device with an «&nbsp;Integer counter&nbsp;» feature. This feature is configured with min value = 0 and max = 1.

The scene that sets the device’s value works very well (it goes to 0 when it should and goes to 1 when it should). However, I have another scene with a step that only continues if the device value = 1 (and another when it equals 0), but that scene does not work.

I have the impression that it’s a bug but I wanted confirmation; if so, I will create a ticket on GitHub.

_Note_: I ran the same test with a feature of type «&nbsp;unknown&nbsp;», the result is the same.

Thank you for your help.

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [August 20, 2022, 6:47pm UTC](https://community.gladysassistant.com/t/scenes-test-valeur-dun-device-compteur-entier/7488/2 "2022-08-20T18:47:37Z")

</div>

Try setting a switch instead of a counter to see

And in the other scene you check the state of the switch
