Page 1 of 1

User input dummy device

Posted: Sunday 11 December 2016 15:08
by Number8
Hello,

I have the need for some user interaction based on an input value. I think it would make sense to have a specific dummy device acting as a user input box that could be used as an entry for various languages as bash or Python. Does that make sense?
Thank you.

Re: User input dummy device

Posted: Wednesday 14 December 2016 9:17
by felix63
Can you clarify what you hope to achieve?

Re: User input dummy device

Posted: Wednesday 14 December 2016 10:04
by Number8
Firstly I'd like to say that I have been using Domoticz for a number of years, and the more I use it the more I think it is a fantastic platform.
That being said, when I start to think at my original post, I must admit it is not a simple matter. In this specific case, the need is to give a user text input to a Python script that will return a text string (sent to Text device?) based on a query made to database (in that case a Plex database) and ultimately setup the projector and the audio/video processor accordingly. The Python script is written and is working.

Re: User input dummy device

Posted: Wednesday 14 December 2016 13:41
by felix63
I completely agree. Domoticz is very useful and fun also :D . Kudos to the developers. As for collecting user input other then a setpoint value or specific switch setting I haven't come across any functionality that might be useful for your project. Sounds like it would require some hacking. Perhaps someone else has some insights?

Cheers,
Lex

Re: User input dummy device

Posted: Wednesday 14 December 2016 14:35
by Number8
As a matter of fact, if I want to do the job correctly, I would have to develop a specific HTML tab with all the needed php code. I indeed do know that this is open source code, but are the hooks and documentation...) within the current code available to achieve such a project without breaking the core and even more importantly being able to upgrade the core without breaking the specific code. I do have development experience with various languages but no experience at all in php/JavaScript.
Cheers
Nicolas

Re: User input dummy device

Posted: Sunday 08 January 2017 14:06
by devros
+1 for user input device....
this could be useful for many things

for example would be great for automatize playing videos from youtube (mpsyt project) just join text string with this script, mpsyt //the TEXT INPUT, 1, all then you can play any interpret you want with domoticz...

Re: User input dummy device

Posted: Wednesday 01 February 2017 11:48
by aleph0
+1 for user input !

For my usage, it'd be enough to be able to change the unit of the thermostat widget, like we do for the custom sensor. That way, we could enter quantity or time setpoints in addition to temperature setpoints.

Example of usage :
- Quantity setpoint for chlorine dosing on the swimming pool
- Time setpoint for garden watering or swimming pool filtering
... and many more