152 | | rule = BathroomHeater(name="bathroom_heater", desc="Bathroom heating management", address="1.2.3") |
153 | | ETS.register(rule) |
154 | | ETS.link(dev=station, dp="bathroom_temp", gad="1/1/1") |
155 | | ETS.link(dev=station, dp="bathroom_temp_setup", gad="1/1/2") |
156 | | ETS.link(dev=station, dp="bathroom_heater", gad="1/1/3") |
| 152 | heaterRule = BathroomHeater(name="bathroom_heater", desc="Bathroom heating management", address="1.2.3") |
| 153 | ETS.register(heaterRule) |
| 154 | ETS.link(rule=heaterRule, dp="bathroom_temp", gad="1/1/1") |
| 155 | ETS.link(rule=heaterRule, dp="bathroom_temp_setup", gad="1/1/2") |
| 156 | ETS.link(rule=heaterRule, dp="bathroom_heater", gad="1/1/3") |