Announcement

Collapse
No announcement yet.

Controlling devices and events from my own pages

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

    Controlling devices and events from my own pages

    Hi,
    I control devices and run events from custom web pages using HTML codes like:

    <form method="POST">
    <p><input type="submit" value="table lamp on" name="run_event"></p>
    </form>

    OR

    <form method="POST">
    <p>
    <input type="hidden" name="control_device" value="den table lamp=dim=50%">
    <input type="submit" value="Lamp 50%" name="control_device">
    </p>
    </form>

    What I need now is to sent IR Signals in the same way. I was not able to find any command that I can integrate in this kind of HTML line.
    For example I would like to send an Ir Signal with the following parameters: Device name and Signal Name.
    Any suggestions?
    Thanks,
    musca

    #2
    You wont be able to send additional info to run_event or control_device.
    What you can do is send information in name/value pairs on the query string:

    http://myhomeseerip:port/myscript.as...nalName=XXXXXX

    Then, you would need to write "myscript.asp" and grab those values from the query string.

    Alternately, you can do a search on the board for tenscripting - he has a utility that allows some device control - it might be what you're looking for...
    HS4Pro on a Raspberry Pi4
    54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
    Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

    HSTouch Clients: 1 Android

    Comment


      #3
      Thanks for the info. Not very clear for me how to do it, I have to start learning.
      There is no other simple way to do it in a html page?
      Regards,

      Comment


        #4
        Originally posted by musca View Post
        Thanks for the info. Not very clear for me how to do it, I have to start learning.
        There is no other simple way to do it in a html page?
        Regards,
        In the HS Help file, under Tips and Tricks, there is a little info on controlling HS from your own web pages. It's a little 'thin' but might be a good place to start.
        HS4Pro on a Raspberry Pi4
        54 Z-Wave Nodes / 21 Zigbee Devices / 108 Events / 767 Devices
        Plugins: Z-Wave / Zigbee Plus / EasyTrigger / AK Weather / OMNI

        HSTouch Clients: 1 Android

        Comment

        Working...
        X