Closed Devirex closed 1 day ago
Can i have some more details how to reproduce the error?
Sure, just try to add another value to the list of existing Clients. Copy all the existing Clients from the internals, and add some module (maybe a new module which is in development) to the string. There is always a message „Setting defaults“ and no attribute „Clients“ is added to a device. If you comment out that line everything works as expected. You can then set all Clients for which messages should be dispatched.
I got it, the internal ist updated but the attribute self isn't set to the provided value.
I've fixed the error, can you give it a try?
update force https://raw.githubusercontent.com/RFD-FHEM/RFFHEM/sidey79/issue1264/controls_signalduino.txt
Setting the Attribute now works good (added MY_Module):
But a "shutdown restart" resets the value (to the Clients from "selected protocols"?) without using the custom values from the Attribute
Can you confirm, that you are not using the whitelist_IDs attribute? Because, if you use the Whitelist_IDs attribute, the Clientlist ist created from the modules selected matching the modules listed in the whitelist_IDs attribute.
If you want to control the Clients attribute by yourself, then you can't use the whitelist_IDs attribute.
Ok thanks for the hint 👍I removed the whitelist_ID Atrributes. Now the Clients are defaulting to standard after reboot even if attribute Clients is set.
Okay, i will check this.
I updated the code and i think the reload problem is now also fixed. You can update with the same url as last time.
@Devirex
Do you have an update for us?
Hey sorry for the delay, works great now!
This return statement does not allow to set the Clients attribute. If removed it works good. https://github.com/RFD-FHEM/RFFHEM/blob/be887b5a07a4fcd5deac31b7854e1e14bbd1296b/FHEM/00_SIGNALduino.pm#L3120