diff --git a/admin/index_m.html b/admin/index_m.html index e41c3e4..3055039 100644 --- a/admin/index_m.html +++ b/admin/index_m.html @@ -46,6 +46,30 @@ $.each($('.modbus-grid'), function () { var _id = $(this).attr('id'); + var roleItems = [ + {value: '', text: ''}, + {value: 'value', text: 'value'}, + {value: 'level', text: 'level'}, + {value: 'state', text: 'state'}, + {value: 'switch', text: 'switch'}, + {value: 'value.temperature', text: 'value.temperature'}, + {value: 'value.humidity', text: 'value.humidity'}, + {value: 'value.brightness', text: 'value.brightness'}, + {value: 'value.uv', text: 'value.uv'}, + {value: 'value.pressure', text: 'value.pressure'}, + {value: 'value.battery', text: 'value.battery'}, + {value: 'value.valve', text: 'value.valve'}, + {value: 'value.time', text: 'value.time'}, + {value: 'value.interval', text: 'value.interval'}, + {value: 'value.window', text: 'value.window'}, + {value: 'button', text: 'button'}, + {value: 'indicator', text: 'indicator'}, + {value: 'level.dimmer', text: 'level.dimmer'}, + {value: 'level.valve', text: 'level.valve'}, + {value: 'level.blind', text: 'level.blind'}, + {value: 'level.temperature', text: 'level.temperature'}, + {value: 'level.interval', text: 'level.interval'} + ]; var typeItems = [ {value: '', text: ''}, @@ -57,6 +81,8 @@ {value: 'ieee754', text: 'IEEE-754'} ]; + var roomsItems = [{value: '', text: ''}]; + var fields = [ {name: '_address' , title: _('Address'), type: 'text', width: '110px', sorter: 'number'},