User input dummy device

Use this forum to discuss possible implementation of a new feature before opening a ticket.
A developer shall edit the topic title with "[xxx]" where xxx is the id of the accompanying tracker id.
Duplicate posts about the same id. +1 posts are not allowed.

Moderators: leecollings, remb0

Post Reply
Number8
Posts: 374
Joined: Friday 23 May 2014 7:55
Target OS: Linux
Domoticz version: 2022.1
Location: Saint Pierre de Jards
Contact:

User input dummy device

Post 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.
Debian buster on NUC and three RPi with buster.
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: User input dummy device

Post by felix63 »

Can you clarify what you hope to achieve?
Number8
Posts: 374
Joined: Friday 23 May 2014 7:55
Target OS: Linux
Domoticz version: 2022.1
Location: Saint Pierre de Jards
Contact:

Re: User input dummy device

Post 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.
Debian buster on NUC and three RPi with buster.
User avatar
felix63
Posts: 244
Joined: Monday 07 December 2015 9:30
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.1
Location: Gouda
Contact:

Re: User input dummy device

Post 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
Number8
Posts: 374
Joined: Friday 23 May 2014 7:55
Target OS: Linux
Domoticz version: 2022.1
Location: Saint Pierre de Jards
Contact:

Re: User input dummy device

Post 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
Debian buster on NUC and three RPi with buster.
devros
Posts: 183
Joined: Saturday 29 October 2016 20:55
Target OS: -
Domoticz version:
Contact:

Re: User input dummy device

Post 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...
aleph0
Posts: 85
Joined: Thursday 12 May 2016 15:47
Target OS: Linux
Domoticz version: 11838
Location: South of France
Contact:

Re: User input dummy device

Post 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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest