DoorBird plugin feature request - Single device option
Posted: Tue Jul 31, 2018 3:54 am
As requested by berkinet here: [urlhttps://forums.indigodomo.com/viewtopic.php?p=164567#p164567][/url]
berkinet wrote:kwijibo007 wrote:I was thinking something like...berkinet wrote:I have a suggestion: In the Device configuration dialog allow the user to select from a set of states to be reported, probably by check boxes. Then, those who want separate devices can have their needs met, and so can users like myself who only want one device.
I can add this functionality without too much effort. How would you like the bell/motion event custom states to read? Would a simple "last motion detected" & "last bell press" detected suffice? This would display a time/date value showing the last time the bell/motion were detected. This way you can create a trigger based on any change to this field?Select the activity to report in the Device table state column::
O System Status
O Motion events
O Doorbell keypress
Then based on the selection above, two of the following three options would appear (I.e. the option matching the choice above would be hidden...Select additional information to display in custom states
[ ] System Status
[ ] Motion events
[ ] Doorbell keypress
Then the states associated with the current 3 device types (plus one additional state equivalent to the current onOffState) would be included for the options selected plus one additional state equivalent to the current onOffState. I.e.
For System Statusbuild_number
For Motion Events
firmware
mac_address
model
deviceLastChange
deviceOnOffStatemotionOnOffState
For Doorbell keypress Events
motionLastChangedoorbellOnOffState
doorbellLastChange
In this manner, the user could build three separate devices, each essentially identical to what you have today. Or, they could build a device combining the capabilities of two or three of the current devices. Note, for the "main" function (to be displayed in the Device State column) the onOff and lastChange states would be essentially duplicated. While not necessary, this would allow for consistency in all devices.