(More) General Virtual Devices

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
petrdaniel
Posts: 1
Joined: Tuesday 13 November 2018 15:47
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

(More) General Virtual Devices

Post by petrdaniel »

Great thanks for all the effort made by Domoticz development. It is a great tool to control home devices and make useful scripting. :D :D

But until now it has some limits which makes my developments a bit complicated. I have various devices (purchased or assembled myself) controled via MQTT and MySensors network. In lots of cases I am constrained by virtual device types that eveloved historically.

First problem is that all (or nearly all) Domoticz virtual devices do not expect feedback from real devices. For example, when you press the Switch, the bulb is immediatelly ON and the ON command is send out. But lots of my devices have some their logic and they need to send back the real state to Domoticz that can be different from original request.

:arrow: So I would make this suggestion No.1:
- Allow to configure the device as FEEDBACK device. It means that when user makes an action in GUI, the device sends out message with that command-request (for examle ON-request, OFF-request command). The real device receives the message, decides if action is possible and then send back Update message with new device state. The new thate is received by Domoticz and displayed in GUI. This request is not limited to Switch device, but can be used in most devices that interract with the user (e.g. SetPoint).

I also wish to make my own names of ON and OFF states of the switch (currently I have to use a selector for this purpose).

:arrow: So I make suggestion No. 2:
- Allow to customize ON, OFF names of the switch device.

Another problem I have is with named values and predefined units in current devices. For example I wish to set target humidity or target percentage how the window should be open. It would me great to have a chance to define lower and upper limit and step. (Currently I solved the limits and step with NodeRed flow connected to the SetPoint, correcting user actions on the device. But it is an ugly solution).

:arrow: So I make suggestion No. 3:
- Allow to define the unit in setPoint device, allow to define lower and upper limit of the value and a step of the value. In case a user enters a value outside of the limits, or not exactly accoriding to step definition, it is changed and rounded to nearest step multiple).

I often need to represent a value in a range by slider. Unfortunately current Dimmer device is limited to 0-100% value and additionally there are ON and OFF states that creates confusion. And additionally On and Off state is not reflected by slider position.

:arrow: So I make suggestion No. 4:
- Allow the general SetPoint device described in No.3 represented graphically as slider (similar to Dimmer). All inside logic and parameter would work same as SetPoint described in No.3

Sometimes I need to diplay state state of the device in Domoticz and the user action is not suitable. Now I have to lock the device by misusing Protected feature that is confusing users.

:arrow: So I make suggestion No. 5:
- For all devices that allow user actions add the checkbox Read Only. This prevents a user to do any action on the device

:arrow: I wish to use different icons for individual Selector states. It would be great if you enhance Selector with this feature (in case it is not implemented yet, I havent checked it for some time).

It would be great to have such devices in some near future. Do you consider to make stable releases more frequent than once a year?

Thanks again for the big effort with Domoticz development.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest