sjorsBe requested the following:
Would like to map a change on and input pin to cause action on an output pin. For example:
Using one module configured with 8 inputs and 8 outputs
Changing input 1 should activate output 1
Changing input 2 should activate output 2
Etc.
In this way the module can be used with standard switches and with smarthome devices
My initial comments:
Seems I discussed this with another user at some time, but I can't find that discussion in Issues. Might have been by email or in Youtube comments. At the time I think it was decided this functionality should be performed at a higher level, perhaps in HomeAssistant or similar control software. Since this is coming up again I'm willing to reconsider, and now we have an Issue to discuss and record conclusions.
I recall the original request was thought to be a bit complicated as a GUI was required to map the selected input pin to an output pin. But this could be simplified greatly if it is ALWAYS input1 maps to output1, input2 maps to output2, etc. If that is the assumption then an additional pin Type (perhaps "Mapped"?) could be defined to tell the firmware that the pin is an input and it is mapped to a predetermined output.
The underlying complications:
- "Mapped" would only be allowed on pins 1 to 8
- The corresponding pin must already be defined as an Output
- If the corresponding pin is defined as Input, Disabled, or is already used as a special function (I2C or Temp Sensor), then selecting "Mapped" will cause the pin to be forced back to Disabled. The user will need to be smart enough to realize that "Mapped" is disallowed on the pin as providing online feedback would be complicated. At least I think it would be complicated.
- The user would first have to define the Output pin as Output, SAVE the change, then define the Input pin as "Mapped".
I'm not sure what complications will be encountered. As it stands the Input change will cause a fairly fast Output change (milliseconds ... but could be hundreds of milliseconds depending on what else is happening). That time probably cannot be well defined.
This would probably be a feature for all release types (non-updatable AND updatable). It will depend on how much code is involved.
So, another idea on the queue.
Mike
sjorsBe requested the following:
Would like to map a change on and input pin to cause action on an output pin. For example:
Using one module configured with 8 inputs and 8 outputs
Changing input 1 should activate output 1
Changing input 2 should activate output 2
Etc.
In this way the module can be used with standard switches and with smarthome devices
My initial comments:
Seems I discussed this with another user at some time, but I can't find that discussion in Issues. Might have been by email or in Youtube comments. At the time I think it was decided this functionality should be performed at a higher level, perhaps in HomeAssistant or similar control software. Since this is coming up again I'm willing to reconsider, and now we have an Issue to discuss and record conclusions.
I recall the original request was thought to be a bit complicated as a GUI was required to map the selected input pin to an output pin. But this could be simplified greatly if it is ALWAYS input1 maps to output1, input2 maps to output2, etc. If that is the assumption then an additional pin Type (perhaps "Mapped"?) could be defined to tell the firmware that the pin is an input and it is mapped to a predetermined output.
The underlying complications:
I'm not sure what complications will be encountered. As it stands the Input change will cause a fairly fast Output change (milliseconds ... but could be hundreds of milliseconds depending on what else is happening). That time probably cannot be well defined.
This would probably be a feature for all release types (non-updatable AND updatable). It will depend on how much code is involved.
So, another idea on the queue.
Mike