devaskim

Results 141 comments of devaskim

@dmohns Thanks for sharing the solution, will add it to [awesome-thingsboard](https://github.com/devaskim/awesome-thingsboard)

> Any idea how this could be adapted to also work for Widgets that select multiple entities? What widget do you need? For example, if you use Entities Table widget,...

> How can I access the entire list of entityNames and Id's for all entities in the Widget programatically? `widgetContext.datasources` - entire list of entities, with `console.log(widgetContext.datasources)` you can explore...

Several notes: 1. `deviceService.getDevice(datasource.entity.id.id)` - you don't use the result of this API call, so you don't need it 2. Just call `widgetContext.attributeService` instead of injector-based approach. 3. Shorter form...

> WDYT? It is up to you, to close or not. In general, you made awesome contribution by sharing the solution. > I'm not sure how much of an improvement...

Maybe this [Alarm Count API](https://thingsboard.cloud/swagger-ui/#/entity-query-controller/countAlarmsByQueryUsingPOST) will help you

Details on toast API is [here](https://github.com/thingsboard/thingsboard/blob/master/ui-ngx/src/app/modules/home/models/widget-component.models.ts#L380) ``` self.ctx.showToast('success', 'Toast message', 3000, 'top', 'center', 'dashboardRoot'); ``` As a toast parent you can use either `self.ctx.toastTargetId` or `dashboardRoot` (last argument in the...

While TB team is thinking about this feature, you can try to implement the heatmap calendar by yourself based on Apache ECharts, Here is [code example](https://echarts.apache.org/examples/en/editor.html?c=heatmap-cartesian)

2. Device Profile Switch node doesn't support autocomplete, so you need type your profile name, not type, on your own, e.g. `sim_card`

You need to change originator (it isn't just changing name or type in metadata), see the corresponding rule node