Author Topic: Impulse Switch Definition  (Read 222 times)

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 215
  • Karma: +5/-0
Impulse Switch Definition
« on: September 19, 2018, 07:22:07 am »
There is a few types of components defined by the plugin, "Switch", "Dimmer" and so on. Is it possible to add one to the list?

All light switches report to the RFX with its unique ID, and the parameter "ON" or "OFF", and they are recieved as such regardless of the switch state as they are impulse switches to begin with..

If there was a device definition called "Impulse Switch" that created two devices, one responding to "ON", and the other to "OFF", then the use of these switches would be much more versatile.

Mabye not as versatile as the Z-Wave version that separates single and double clicks, but you could use them as scene triggers, which is a big thing..
Vera Plus - RFXtrx433e

Offline tinman

  • Full Member
  • ***
  • Posts: 212
  • Karma: +13/-0
Re: Impulse Switch Definition
« Reply #1 on: January 17, 2019, 01:40:25 pm »
Sorry for such a delayed reply to your post. I'm not sure what you mean by an 'impulse' switch. Is it like a switch with one button that when clicked toggles the state of the device from On to Off or Off to On?

Offline zedrally

  • Hero Member
  • *****
  • Posts: 1212
  • Karma: +15/-5
  • Black Cat Control Systems
Re: Impulse Switch Definition
« Reply #2 on: January 17, 2019, 03:52:41 pm »
^^^
I believe it refers to spring loaded momentary switch or bell push
 Certainly would be helpful it it isn't already available.
Living in the Land of Oz, give me a vegemite sandwich. Home Seer, Vera Lite & Edge, Popp, Black Cat Smart Hub & Vera G, Black Cat Lite 1 & 2's a Black Cat Dimmer or 2, Fantem Tec and then some  Black Cat Cat's Eye PIR's & Door-Window Sensors, RFXComm, Broadlink RMPro & Mini plus a Z-UNO or 2.

Offline tinman

  • Full Member
  • ***
  • Posts: 212
  • Karma: +13/-0
Re: Impulse Switch Definition
« Reply #3 on: January 17, 2019, 06:16:12 pm »
The current version of the plugin has a device you can create called a Sonoff Smart Switch. Attached is an update to the JSON file for this device. If you have version 1.50 or later of the plugin, upload the attached file then create one of these devices. You can select any Id and unit code since this will be a dummy device. After the device is created you can create scenes to be triggered whenever this device is turned on or off. The device UI has a toggle button which will toggle the state of the device on to off or off to on.

Offline Forzaalfa

  • Full Member
  • ***
  • Posts: 215
  • Karma: +5/-0
Re: Impulse Switch Definition
« Reply #4 on: January 18, 2019, 04:42:15 am »
Zedrally is correct, I want to be able to treat the individual buttons on i.e. a nexa switch as separate momentary/bell push switches.

The Nexa has (a double set of) 2 momentary buttons, which is sent as "DevID:ON" and "DevID:OFF".

The "Switch" component we use today keeps the state that was last recieved on that DevID, and ignores if "DevID-ON" is repeated when it already is ON.

What I want is for these two buttons to be registered as separate "triggers", with i.e. a fixed "ON" time interval. Lets say the button stays "ON" for 0.5 secs for every time the button is pushed.

Hope thats more clear, its not that easy to explain. :) Ideally, my double nexa switch would be able to trigger four different scenes. :)
Vera Plus - RFXtrx433e