# Difficulty with scene app

**URL:** <https://community.smartthings.com/t/difficulty-with-scene-app/34519>\
**Category:** Writing SmartApps\
**Created:** [January 4, 2016, 11:11pm UTC](https://community.smartthings.com/t/difficulty-with-scene-app/34519 "2016-01-04T23:11:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![miro87043](https://avatars.discourse-cdn.com/v4/letter/m/8dc957/32.png) [@miro87043](https://community.smartthings.com/u/miro87043)\
**Post date:** [January 4, 2016, 11:11pm UTC](https://community.smartthings.com/t/difficulty-with-scene-app/34519/1 "2016-01-04T23:11:37Z")

</div>

I know there are already great scene apps but I though it best to learn the groovy syntax and create my own so I can best fulfill my needs.

So, my first project was to create a simple scene app that triggers my scene from a virtual/physical switch. After some learning I’ve got an app that does what I want but it works inconsistently.

First, I can’t get the simulator (very inconsistent utility) to run the dynamic pages so I just skip to my phone. On my phone the setup works fine and it runs perfect if I use all virtual dimmers but when configured with my physical dimmers they do not turn on. Switches seem to work fine and dimmers turn off correctly.

Here’s my code: [https://github.com/Miro87043/SmartThingsPublic/blob/master/smartapps/miro87043/basic-scenes-app.src/basic-scenes-app.groovy](https://github.com/Miro87043/SmartThingsPublic/blob/master/smartapps/miro87043/basic-scenes-app.src/basic-scenes-app.groovy)

any thoughts?

Thanks!
