Dear all,
whats wrong with using:
browser_id: this
in browser_mod 2 (frontend) version 2.6.2.
My yaml code is:
cards:
- type: custom:button-card
entity: sensor.aktueller_strompreis_in_cent_kwh
name: Aktueller Strompreis
show_state: true
show_icon: false
styles:
card:
- height: 50px
tap_action:
action: call-service
service: browser_mod.popup
data:
title: Strompreis
browser_id: this
content:
type: custom:apexcharts-card
header:
show: true
show_states: true
colorize_states: true
standard_format: false
experimental:
color_threshold: true
all_series_config:
unit: Cent/kWh
apex_config:
chart:
height: 377px
grid:
show: true
borderColor: "#E0E0E0"
tooltip:
enabled: true
followCursor: false
x:
show: false
fixed:
enabled: true
graph_span: 48h
now:
show: true
color: 9E9E9E
span:
start: day
series:
- entity: sensor.strompreis_prognose_15min
name: Preis
show:
in_header: before_now
name_in_header: false
color_threshold:
- value: 0
color: 4DD0E1
- value: 10
color: 26A69A
- value: 15
color: 4CAF50
- value: 20
color: 7CB342
- value: 25
color: FBC02D
- value: 30
color: EF6C00
- value: 40
color: B71C1C
type: line
curve: stepline
extend_to: false
stroke_width: 2
float_precision: 2
data_generator: >
const noon = new Date()
noon.setHours(0, 0, 0, 0)
const prices =
entity.attributes.today.concat(entity.attributes.tomorrow);
const data = [];
for(let i = 0; i < prices.length; i++) {
data.push([noon.getTime() + i * 1000 * 900, prices[i].total * 100])
}
return data;
If I’m using:
browser_id: <browser-id>
It works for the special device.
But I want to open the popup only on the device which was clicked…
So, whats wrong with browser_id: this?