Page 1 of 1

Python Plugin feature request

Posted: Tuesday 16 January 2018 15:24
by blauwebuis
Am I correct in thinking that at the moment a Python Plugin can only show parameter input fields on its hardware page?

I'm writing a small plugin that will clone 433 commands, and then assign them to a switch. Because I only use 433 switches, this would mean I no longer need the RFLink or RFXCom, but can just connect some cheap transmitters to the Pi's pins directly.

The thing is: I want to tell the user:
- when to press the "on" button
- if this was a success or not
- when to press the off button
- if this was a success.
- that a new switch has been created

How can a plugin currently do this?

Right now I'm hacking it by creating an initial switch that will trigger this proces. But it would be nicer if it was a button on the hardware page.

A.
Could a button be created in the hardware section that triggers a function? And how could I then feedback to the user?

B.
Is there a way to add javascript (and css) as well. Being able to inject some javascript into the interface from a plugin would be a great way of creating all types of feedback for the user. It would also allow plugins that do things that are mostly javascript, without needing to create a theme as well.