Hi, since the HA 2023.11 update I have problems with pop-up windows. they no longer work on tap. the problem occurs only on Android/iPhone mobile devicesā¦but not all. is this happening to others?
Iāve been using browser_mod to allow colleagues to view a dashboard and Iād like to count how many are connected at any time eg now or in the last 24hrs. Iāve created a remote access web address using my Nabu Casa account and allowing anyone coming in to logon with a common username & password. Browser_mod directs them to the right dashboard & hides the sidebar, my web redirect stops them from navigating manually to anywhere else. So far so good, theyāre all happy & so far havenāt caused any problems by straying from the single dashboard they get access to,
A large number of browser IDs have been created (77 so far) and Iāve got a template sensor that should monitor who is currently browsing. The trouble is that it doesnāt quite work. It gets some device/browser combinations but not most of them. With the various phones & PCās Iāve got I can see that 1 or 2 show up as users most of the time, others just sometimes and one never does. This is what Iām doing:
{%- set devices = states | map(attribute='entity_id') | map('device_id') | unique | reject('eq',None) | list %}
{%- set ns = namespace(entities = []) %}
{%- for device in devices %}
{%- set ids = device_attr(device, 'identifiers') | list | first | default %}
{%- if ids[0] == 'browser_mod' %}
{%- if states('sensor.'~ids[1]|lower~'_browser_user') not in ['unknown','unavailable'] %}
{%- set ns.entities = ns.entities + [ids[1]] %}
{%- endif %}
{%- endif %}
{%- endfor %}
{{ ns.entities |count }} browsers, being {{ ns.entities }}
{%- set devices = states | map(attribute='entity_id') | map('device_id') | unique | reject('eq',None) | list %}
{%- set ns = namespace(entities = []) %}
{%- for device in devices %}
{%- set ids = device_attr(device, 'identifiers') | list | first | default %}
{%- if ids[0] == 'browser_mod' %}
{%- if states('sensor.'~ids[1]|lower~'_browser_user') not in ['unknown','unavailable'] %}
{%- set ns.entities = ns.entities + [states('sensor.'~ids[1]|lower~'_browser_user')] %}
{%- endif %}
{%- endif %}
{%- endfor %}
{%- set allusers = ns.entities|list %}
{%- set users = ns.entities|unique|list %}
{%- set ns = namespace(names = '') %}
{%- for name in users %}
{%- set ns.names = ns.names ~ name~' = '~allusers|select('eq',name)|list|count~', ' %}
{%- endfor %}
{{ns.names}}
and right now I get
1 browsers, being ['DJI_laptop_chrome']
David Inwood = 1,
despite 4 devices being connected.
Is this fixable and how can I get delete some devices that are no longer used? Hitting the dustbin in the browser_mod sidebar just hides them - they still exist in the devices list.
Ive been reading through some old closed github issues about Browser mod devices becoming unavailable in HA after 5 minutes. This is the nearest I can find to my issue. My microsoft surface pro running Edge browser in kiosk mode on Windows 10. All Windows power saving settings disabled, but the device keeps becoming unavailable, but only after several hours. I read about a workaround of playing a silent audio file on the Browser mod media player entity, to keep it āaliveā but couldnt see how to do this. Has anyone here had any similar issues and managed to resolve them?
Iāve tried re-registering the device in browser mod but this made no difference. Also created a long-lived access token for the device, but again, no difference.
If I use browser_mod to browse to a webpage but want the page to scroll up a little to display content a little further down the page is there a way to do this?
We just had a baby so Iāve been using baby buddy for tracking feeding and diaper changes. Iāve got a drop down helper and an automation to control what information should be input into baby buddy based on the dropdown helper.
Iāve been struggling getting the browser popup to control which dropdown selection to make. I tried to use the code from the installation page for the vacuum as an example, but Iām stuck now. Anyone able to help on how I can get this to work?
I know there are other methods that I can do this, but I like the way this looks and so does my wife, so Iām trying to get this way to work.
Thanks!
type: custom:mushroom-template-card
primary: Hello, {{ user }}
secondary: How are you?
icon: mdi:home
entity: input_select.dropdown_william_feeding_type
tap_action:
action: call-service
service: browser_mod.popup
data:
title: Will Feeding
content:
- name: params
label: How was Will Fed?
selector:
select:
multiple: true
options:
- label: Left Breast
value: Left
- label: Right Breast
value: Right
- label: Both Breasts
value: Both
- label: Bottle
value: Bottle
right_button: Go!
right_button_action:
service: input_select.select_option
target:
entity_id: input_select.dropdown_william_feeding_type
data_template:
option: >-
{{
trigger.event.data.new_state.attributes.content[0].selector.select.options[0].value
}}
Iām trying to reference selector results in a child popup. I canāt figure out the syntax for either javascript or jinja to do so. (See the right_button_action below).
I would expect the value to be returned in rainchart, but all the {{ }} items are empty and I canāt figure out a javascript solution.
The documentation states that: If a ha-form schema is used for content the resulting data will be inserted into the data for any _action.
I just canāt figure out how. Thanks
May I ask, is anyone else getting the entities going unavailable constantly?
The only way to get it to work again is to end the companion app on my tablet and restart the app.
Itās getting very tedious and makes using this mod mostly unusable.
Iām running it on a Google Pixel Slate.
What sort of information do you need to help diagnose the issue? Please be nice as Iām fairly new to this and I may need a few pointers to begin with.
Have you checked the āautomatically close connectionsā setting? I canāt remember were that function was but I did have to change that setting on my Ubuntu dashboard running browser mod.