Advertisement
jp112

HomeMatic Geräte Posteingang

Jul 18th, 2018
646
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
TCL 0.41 KB | None | 0 0
  1. string sId;
  2. foreach(sId, root.Devices().EnumUsedIDs()) {
  3.   var oDevice = dom.GetObject(sId);  
  4.   if (!oDevice.ReadyConfig()) {
  5.     string channelId;
  6.     foreach(channelId, oDevice.Channels()) {
  7.       WriteLine("Dev "#sId#" Chan "#channelId);
  8.       var channel = dom.GetObject(channelId);
  9.       channel.ReadyConfig(true);
  10.     }
  11.     oDevice.ReadyConfigChns(true);
  12.     oDevice.ReadyConfig(true, false);
  13.   }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement