resoai / TileBoard

A simple yet highly configurable Dashboard for HomeAssistant
MIT License
1.63k stars 277 forks source link

Tile(TYPES.SWITCH) on popup page has no action on click #834

Closed ouhaiorg closed 2 years ago

ouhaiorg commented 2 years ago

Tile(TYPES.SWITCH/TYPES.LIGHT/TYPES.SCRIPT) on popup page has no action on click, so I can't turn on or turn off this tile on popup page, but on old version is ok.

rchl commented 2 years ago

Works for me so you need to provide more details.

ouhaiorg commented 2 years ago

Tileboard version is 2.9.0,not use Tileboard addon I use TYPES.SENSOR and action: function(item, entity) { return this.$scope.openPopup(item, entity,item.popup);} instead of TYPES.POPUP. The tile(TYPES.SWITCH) in popup can't action. But in previous Tileboard version(about two years ago) is ok.

ouhaiorg commented 2 years ago

{ position: [1, 1], type: TYPES.SENSOR, title: 'sensor', id: 'sensor.e2_battery', action: function(item, entity) {return this.$scope.openPopup(item, entity, item.popup);}, popup:{ items:[{ position: [0, 0], type: TYPES.LIGHT, title: 'light', id: 'light.study_light04', }] } },