Announcement

Collapse
No announcement yet.

hstouch script commands??

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    hstouch script commands??

    are there any scripting commands ( commands i can run from within my hs script) that control the touch screens?

    I looks but cant see anything in the online manual
    detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

    #2
    I don't know how current these are.

    The parameters are:

    1) Action number, listed below
    2) The client to send the action to like: Android:Android (name:instance)
    3) parm1
    4) parm2

    parm1 and parm2 are parameters required for the action, for example action number 89 is set screen brightness so parm1 would be the brigtness value,
    in this 0->1.

    You can get the parameters by looking at the action in the designer when you add an action.

    Here are the action numbers:

    Control_Select = 10
    Control_Deselect = 20
    Control_TriggerChange = 25
    Control_Activate = 30
    Control_DeActivate = 35
    Control_ActDeActToggle = 37
    Control_AdjustLevelUp = 38
    Control_AdjustLevelDown = 39
    Control_Hide = 40
    Control_Set_Filter = 41
    Control_Set_Image_Norm = 42
    Control_Set_URL_Norm = 43
    Control_Set_RSS_Index = 44
    Control_Set_Text = 45
    Control_Next_RSS_Index = 46
    Control_Set_Alpha = 47
    Control_UnHide = 50
    Control_Disable = 51
    Control_Enable = 52
    Control_Append_Text = 53
    Control_Clear_Text = 54
    Device_Control = 55
    Device_Control_With_Element = 56
    Trigger_Event = 57
    Run_Script_With_Parms = 58
    Device_Set_Selector_Back = 59
    Screen_Show_Only = 60
    Events_Set_Selector_Back = 61
    Device_Set_Selector_Mode = 62
    Screen_Show_Also = 70
    Screen_Show_Also_Modal = 71
    Screen_Close = 80
    Application_Exit = 81
    Launch_Application = 82
    MinimizeApp = 83
    ScreenBrightness = 89
    Pause_Wait = 90
    Play_WAV = 100
    Set_Volume = 101
    Music_PlaySelection = 110
    Music_Set_Selector_Mode = 111
    Music_Mute_On = 112
    Music_Set_Selector_Back = 113
    Music_Mute_Off = 114
    Music_Shuffle_Shuffle = 116
    Music_Shuffle_Order = 118
    Music_Shuffle_Sort = 120
    Music_Repeat_One = 122
    Music_Repeat_All = 124
    Music_Repeat_Off = 126
    Music_Play = 128
    Music_Pause = 130
    Music_PlayIfPaused = 132
    Music_PauseIfPlaying = 134
    Music_TogglePlayPause = 135
    Music_Stop = 136
    Music_Next_Track = 138
    Music_Prev_Track = 140
    Music_Add_Track_To_Playlist = 141
    Music_Volume_Up = 142
    Music_Volume_Down = 144
    Music_SkipToTrack = 146
    Therm_Set_Heat_Setpoint = 147
    Therm_Set_Cool_Setpoint = 148
    Therm_Set_Mode = 149
    Therm_Set_Fan = 150
    Therm_Raise_Lower_Cool_Setpoint = 151
    Therm_Raise_Lower_Heat_Setpoint = 153
    Therm_Set_Hold = 155
    Therm_Next_Mode = 156
    Therm_Next_Fan = 157
    Therm_Raise_Lower_Setpoint = 158


    Hope this is what you are looking for
    Don

    Comment


      #3
      You can look in the HSTouch help file from the designer and the information is in the section 'Controlling Clients from HomeSeer'. Unfortunately the code in there is HS2 rather than HS3 but you look at the hs.pluginfunction and the function ClientAction to do what you are after.

      Comment


        #4
        Thanks,

        donstephens, can you give me an example a script line so i can see how its formatted

        ?
        detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

        Comment


          #5
          From the help file.
          PHP Code:
          Sub Main(parm as object)

          ' the plugin object

          dim hstplug as object

           

          get a reference to the HSTouch Server plugin

          hstplug 
          hs.plugin("HSTouch Server")

           

          ' make sure the reference is good

          if hstplug is nothing then exit sub

           

          call the method on the plugin to perform the action

          hstplug
          .ClientAction(60,"","main","")

           

          End Sub 
          Don

          Comment


            #6
            it does'nt seem to work, erroring out on hs.plugin
            i am old school and stil use .txt scripts

            hstplug = hs.plugin("HSTouch Server") seems to be vb script from hs2
            detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

            Comment


              #7
              Here is a one liner that I use to play back music / radio touchscreen plugged in to the MM center in the MB testing it with the Amazon Echo.

              I utilize scripts on the buttons running VLC stuff via command line. Works great. You can also do this with Jon00's remote computer script.

              It is the same what Don shows above in a script.

              On the touchscreen use VLC via command line button to stream just about anything these days. Works well with RTSP.
              Attached Files
              Last edited by Pete; July 21, 2015, 11:11 PM.
              - Pete

              Auto mator
              Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
              Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
              HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

              HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
              HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

              X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

              Comment


                #8
                thanks pete but im trying to keep everything in a script, i could call an event from a script but that gets messy
                detail of setup in profile. Link to videos of my projects there as well. Over 300 scripts running every min and counting

                Comment


                  #9
                  Yup; here use one liners mostly on the HSTouch screens and combo multifunctional scripts on the mothership. It is easier.

                  Right now using the one liners for playing with the Amazon Echo stuff.
                  - Pete

                  Auto mator
                  Homeseer 3 Pro - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e 64 bit Intel Haswell CPU 16Gb
                  Homeseer Zee2 (Lite) - 3.0.0.548 (Linux) - Ubuntu 18.04/W7e - CherryTrail x5-Z8350 BeeLink 4Gb BT3 Pro
                  HS4 Lite - Ubuntu 22.04 / Lenovo Tiny M900 / 32Gb Ram

                  HS4 Pro - V4.1.18.1 - Ubuntu 22.04 / Lenova Tiny M900 / 32Gb Ram
                  HSTouch on Intel tabletop tablets (Jogglers) - Asus AIO - Windows 11

                  X10, UPB, Zigbee, ZWave and Wifi MQTT automation-Tasmota-Espurna. OmniPro 2, Russound zoned audio, Alexa, Cheaper RFID, W800 and Home Assistant

                  Comment


                    #10
                    I'm not sure you will be able to use VBScript I don't know but you need to pass an object array into hs.pluginfunction as I eluded to in the post above (it may have to be .net), the help file is wrong and has HS2 example code in it.

                    Comment

                    Working...
                    X