Changes between Version 46 and Version 47 of Proposal
- Timestamp:
- Jul 8, 2013, 3:02:24 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Proposal
v46 v47 165 165 My first idea was to provide a special API to create rules, but in fact, they can be implemented as Functional Block. This way, we use the same paradigm, wich is always better ;o) 166 166 167 Let's have a look at another example; this is something I currently implemented as a rule in '''linknx'''. Here, I juste create a Functional Block: 168 167 169 {{{ 168 170 #!python … … 202 204 203 205 204 heatingManagerBlock = HeatingManagerBlock(name="heating_manager", desc="A simple heating manager block example") 205 206 ets.register(heatingManagerBlock) 206 ets.register(HeatingManagerBlock, name="heating_manager", desc="A simple heating manager block example") 207 207 208 208 ets.weave(fb=heatingManagerBlock, dp="temperature", gad="1/1/1")