Applying settings to a group of switches

Necro-ing this thread: Does anyone have any resources for how I can apply parameters to multiple switches using HA/Z2M? I saw @rohan’s post, and saw this comment, but a post on the GitHub says it no longer works, and I’m also kind of at a loss as to where to run that code?