Announcement

Collapse
No announcement yet.

'Combine' multiple virtual devices to one single device

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

  • mrhappy
    replied
    Originally posted by kriz83 View Post
    And how do I remove the 'status' buttons and still be able to set the device via JSON ?
    You are in a bit of a grey area because all of the JSON commands are to control a device, with the status pairs being set to status then it cannot be controlled and it needs to be set by setting the device value. There is no published JSON set value command, either set the value in an event and trigger the event by the JSON API or write your own web page that will set the value for you and then call this page.

    Leave a comment:


  • kriz83
    replied
    And how do I remove the 'status' buttons and still be able to set the device via JSON ?

    Leave a comment:


  • kriz83
    replied
    I disabled auto close.

    I ran a UTP cable to the gate and connected it to the circuit board. Now it notifies me when the gate is open and I am also able to short circuit the dry contacts to open/close the gate.

    Leave a comment:


  • TomTom
    replied
    sorry that what I get for typing on an iphone.
    I should say "open close cycle" Gate opens, waits 2-8mins(user settable), then it closes. Z-wave contact closure closes the connection of the gate terminals, and the gate opens, then after X mins it closes.

    Originally posted by kriz83 View Post
    What do you mean with a "ion-close-cycle" contact ?

    My gate is equiped with a Came ZF2 controller.

    With HS2 you had "hidden" values (which started with a '), this would be the solution to my problem here I guess ...

    Leave a comment:


  • kriz83
    replied
    What do you mean with a "ion-close-cycle" contact ?

    My gate is equiped with a Came ZF2 controller.

    With HS2 you had "hidden" values (which started with a '), this would be the solution to my problem here I guess ...

    Leave a comment:


  • TomTom
    replied
    'Combine' multiple virtual devices to one single device

    Essentially you need a notifications device( status) and control device( open/close). You could use jon00 device groping tool to make it look joined, but I think you would still have to have two different devices. I could be wrong but I'm just thinking about how z-wave devices are set up. That have control and verified status.

    Also what kind of gate opener do you have, most gate openers have a "ion-close-cycle" contact. I use this connected to z-wave contact closure switch.


    Sent from my iPhone

    Leave a comment:


  • jon00
    replied
    You can add buttons to existing devices for running scripts using the hs.DeviceScriptButton_AddButton command.

    Example: http://board.homeseer.com/showpost.p...72&postcount=8

    Leave a comment:


  • kriz83
    started a topic 'Combine' multiple virtual devices to one single device

    'Combine' multiple virtual devices to one single device

    Hi,

    For my front gate I have 2 virtual devices which are controlled/read by the rPI.

    Status: Open/Closed (set by rPI via JSON)
    Relay: Open/Closed (read by rPI and then sets the GPIO)

    I want one device (maybe the status device) which has 2 states: "Open" and "Closed". The states should not be 'settable' via the webUI (so no buttons). The buttons will be replaced with "Open" and "Close" buttons, which execute a script.

    How can this be done ?

    Or can I create a new virtual device which can subscribe to the changed event of the 'status' device ?
Working...
X