The parent driver creates 'control' devices as children. These are of the component type.
If I create the child device with either "Generic Component Central Scene Switch" or "Generic Component Switch" ( @bertabcd1234 ), and use either the devide page (or add to a dashboard) I can turn the switch on or off, and receive a command on the parent driver through componentOn() or componenentOff() which I can then 'do' something with, like send a command to the network devide which the driver is for. I can also reciprocate, and set the status of the switches to show the status of the network device.
However, instead of sending a command to the network device by switching the child device on and then issuing the command (and subsequently changing the child back to 'off''), I was hoping the be able to instead use a button controller, which can be easilly added to a dashboard.
I won't need to update the status of the button from the master driver, but I just want to be able to take an action on the parent driver if the child button is pushed (or released, held, etc).
I have tried componentPush() and componenentPushed() too, and still getting nowhere. Surely this is not an oversight? What would be the point of having a child that I can only update to say 'pushed' rather than actually do something when 'pushed'? I can see it creates events, but how would I receive these events?
@dmitry.rozovik I have read this, but they just switched to talking about receiving on/off commands which I can lareayd do without issue.
@jtp10181 Does this explain what I am trying to do? I can do it with switches, but I just think it would be tidier to use buttons instead?
Thanks,