Changeset 2514:93251877b7cd
- Timestamp:
- 07/29/10 09:38:36 (6 weeks ago)
- Author:
- Fritz
- Parents:
- 2513:eec689b93c50 (diff), 2512:529dbe6bc7a8 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
- Children:
- 2515:61874da9a73d, 2518:4f41e138ea93
- Branch:
- default
- Message:
-
merge
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r2506
|
r2514
|
|
| 139 | 139 | db.add_sensor_feature_model(sf_name='Present', sf_device_type_id=device_type.id, sf_value_type='boolean', |
| 140 | 140 | sf_parameters='{}', sf_stat_key='present') |
| | 141 | |
| | 142 | |
| | 143 | # Create device technology features for Relay Board |
| | 144 | device_technology = db.add_device_technology(dt_id='relayboard', dt_name='Relay Board', |
| | 145 | dt_description='Relay boards monitoring and controling ') |
| | 146 | device_type = db.add_device_type(dty_name='Switch', dt_id=device_technology.id) |
| | 147 | db.add_actuator_feature_model(af_name='Switch', af_device_type_id=device_type.id, |
| | 148 | af_parameters='{"command":"","value0":"off", "value1":"on"}', |
| | 149 | af_value_type='binary', af_return_confirmation=True) |
| | 150 | # TODO : voltmeter, logical_input, counter |
| | 151 | |
| | 152 | |
| 141 | 153 | # Create device technology features for Computer |
| 142 | 154 | device_technology = db.add_device_technology(dt_id='computer', dt_name='Computer', |
-
|
r2513
|
r2514
|
|
| 84 | 84 | db.add_actuator_feature_model(af_name='Switch', af_device_type_id=device_type.id, |
| 85 | 85 | af_parameters='{"command":"","value0":"off", "value1":"on"}', |
| 86 | | af_value_type='binary', af_return_confirmation=True) |
| | 86 | af_value_type='binary', af_stat_key='command', af_return_confirmation=True) |
| 87 | 87 | device_type = db.add_device_type(dty_name='Dimmer', dt_id=device_technology.id) |
| 88 | 88 | db.add_actuator_feature_model(af_name='Switch', af_device_type_id=device_type.id, |
| 89 | 89 | af_parameters='{"command":"","value0":"off", "value1":"on"}', |
| 90 | | af_value_type='binary', af_return_confirmation=True) |
| | 90 | af_value_type='binary', af_stat_key='command', af_return_confirmation=True) |
| 91 | 91 | db.add_actuator_feature_model(af_name='Dimmer', af_device_type_id=device_type.id, |
| 92 | 92 | af_parameters='{"command":"dim","valueMin":0, "valueMax":100}', |
| 93 | | af_value_type='range', af_return_confirmation=True) |
| | 93 | af_value_type='range', af_stat_key='level', af_return_confirmation=True) |
| 94 | 94 | |
| 95 | 95 | # Create device technology features for EIB/KNX |