# Rules File Help for ADB FireStick

**URL:** <https://community.openhab.org/t/rules-file-help-for-adb-firestick/33609>\
**Category:** Scripts & Rules\
**Tags:** rules, beginner, beginners\
**Created:** [August 25, 2017, 2:16pm UTC](https://community.openhab.org/t/rules-file-help-for-adb-firestick/33609 "2017-08-25T14:16:41Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![aspinwalld](https://community.openhab.org/letter_avatar_proxy/v4/letter/a/94ad74/32.png) [@aspinwalld](https://community.openhab.org/u/aspinwalld)\
**Post date:** [August 26, 2017, 11:21pm UTC](https://community.openhab.org/t/rules-file-help-for-adb-firestick/33609/11 "2017-08-26T23:21:02Z")

</div>

I’m sorry, I should have included the new rules file. I updated to 2.1 and did a little bit of housekeeping on the names of my items and things. I changed the rule to ‘ftv1’

```auto
rule "FTV Commands"

when
    Item ftv1 received command
then
    switch receivedCommand.toString {
        case "[back]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVBack.bat")
	case "[down]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVDown.bat")
        case "[enter]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVEnter.bat")
        case "[home]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVHome.bat")
        case "[initializeserver]": executeCommandLine("C:\AutoDI\FTVCommands\pressFireTV\FTVInitializeServer.bat")
        case "[left]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVLeft.bat")
        case "[menu]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVMenu.bat")
        case "[next]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVNext.bat")
        case "[playpause]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVPlayPause.bat")
        case "[previous]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVPrevious.bat")
        case "[right]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVRight.bat")
        case "[up]": executeCommandLine("C:\AutoDI\customScripts\FTVCommands\FTVUp.bat")
    }
end
```

---

_[View the full topic](https://community.openhab.org/t/rules-file-help-for-adb-firestick/33609)._
