Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alarm panel not loading #95

Open
glorifiedg opened this issue May 12, 2020 · 19 comments
Open

Alarm panel not loading #95

glorifiedg opened this issue May 12, 2020 · 19 comments
Labels
question Further information is requested

Comments

@glorifiedg
Copy link

glorifiedg commented May 12, 2020

Using Home Assistant 0.109.6 but happening since ever.
Installed multiple times and after first use the alarm panel does't load properly, showing no buttons.

Error:

Logger: frontend.js.latest.202004272
Source: components/system_log/__init__.py:209
First occurred: 13:02:15 (195 occurrences)
Last logged: 13:02:19
https://xxx.duckdns.org:8123/bwalarm/lib/countdown360.js:132:13 Uncaught TypeError: Assignment to constant variable.
https://xxx.duckdns.org:8123/api/panel_custom/alarm-1.js:647:42 Uncaught TypeError: $(...).width is not a function

bwalarm.yaml

platform: bwalarm
panel:
  cameras: []
enable_night_mode: false
states:
  armed_away:
    immediate:
    - binary_sensor.porta_da_entrada
    delayed: []
    override: []
    pending_time: '60'
    warning_time: '30'
    trigger_time: '1200'
  armed_home:
    immediate:
    - binary_sensor.porta_da_entrada
    delayed: []
    override: []
    pending_time: '0'
    warning_time: 0
    trigger_time: '1200'
  armed_night:
    immediate: []
    delayed: []
    override: []
    pending_time: 0
    warning_time: 0
    trigger_time: 600
users:
- id: XXX
  name: Home Assistant Cloud
  enabled: false
  code: XXX
  picture: ha.png
- id: XXX
  name: Hass.io
  enabled: false
  code: XXX
  picture: ha.png
- id: XX
  name: XXX
  enabled: false
  code: XXX
  picture: ha.png
- id: XXX
  name: XXX
  enabled: false
  code: XXX
  picture: ha.png
- id: XXX
  name: XXX
  enabled: false
  code: XXX
  picture: ha.png
- id: XXX
  name: Home Assistant Cast
  enabled: false
  code: XXXX
  picture: ha.png
enable_persistence: true
code: 'XXX'
ignore_open_sensors: true
passcode_attempts_timeout: '300'
passcode_attempts: '3'
mqtt:
  enable_mqtt: true
  pending_on_warning: false
  payload_disarm: DISARM
  state_topic: home/alarm
  override_code: true
  payload_arm_away: ARM_AWAY
  payload_arm_night: ARM_NIGHT
  command_topic: home/alarm/set
  payload_arm_home: ARM_HOME
  qos: 0
admin_password: 'XXX'
@akasma74
Copy link
Owner

Do you mean that it always worked like that?
Have you tried a) a different browser and b) without duckdns?
It looks like a JS issue.

@akasma74 akasma74 added the question Further information is requested label May 14, 2020
@glorifiedg
Copy link
Author

Yes, I have that behavior even in older versions of HA.

Just tried on firefox an IE, both on DuckDNS and internal network path, and got the same error.

Any ideas?

@akasma74
Copy link
Owner

akasma74 commented May 15, 2020

Was this behaviour introduced with one of the recent alarm version?
Do you know a combinaton of HA/bwalarm that worked as expected?
Can you open JavaScript console of your browser and post what's there?

@glorifiedg
Copy link
Author

glorifiedg commented May 19, 2020

No and no.

This what I get in console: https://imgur.com/uGygVtK

Interesting enough: if I have the console open and refresh the page, It works normally https://imgur.com/Gi9KbJc
If I go to other HA page and come back to BWalarm it shows like this again.

@akasma74
Copy link
Owner

thanks for the log, I'l look into it.

If I go to other HA page and come back to BWalarm it shows like this again.

do you mean it doesn't work?

@glorifiedg
Copy link
Author

Yes, if I go to to another page, the error appears again.

Thank you for looking into it!

@akasma74
Copy link
Owner

Did you clear cache of your browsers?
I take that you run Windows and use Chrome but in Firefox and IE it's the same?

@glorifiedg
Copy link
Author

Will try to clear the cache. Anyway, tried on both and also EDGE and still the same problem. Firefox was a brand new install.

@akasma74
Copy link
Owner

Can you try from a phone/tablet?

@glorifiedg
Copy link
Author

Just tried on chrome running on Android after cache cleared and still the same error.

@akasma74
Copy link
Owner

akasma74 commented May 20, 2020

Thanks for checking. It's getting more and more interesting..
In the initial issue description there are two errors - from countdown36.js and alarm-1.js
In your JS console output I can see ony the latter - does that mean that you no longer get another errors?

@glorifiedg
Copy link
Author

Actually, the only consistent error is this one:

Logger: frontend.js.latest.202004272
Source: components/system_log/__init__.py:209
First occurred: 11:30:04 (1 occurrences)
Last logged: 11:30:04

https://XXXXX.duckdns.org:8123/api/panel_custom/alarm-1.js:647:42 Uncaught TypeError: $(...).width is not a function

@glorifiedg
Copy link
Author

Is there an option to force an auto refresh after clicking on "Alarm"? I think that would solve the problem.

I saw that custom header had a problem similar to this one some weeks ago.

@akasma74
Copy link
Owner

Is there an option to force an auto refresh after clicking on "Alarm"? I think that would solve the problem.

could you tell me why you think so?

I saw that custom header had a problem similar to this one some weeks ago.

could you provide me with a link?

@glorifiedg
Copy link
Author

I just say that because everything works if I click refresh on browser AFTER opening bwalarm tab.

Can't find it anymore on their GIT but will keep looking.

@akasma74
Copy link
Owner

Could you update the original issue report with the version of your alarm?

@akasma74
Copy link
Owner

@glorifiedg I'm still waiting for the version of your alarm.

1 similar comment
@akasma74
Copy link
Owner

@glorifiedg I'm still waiting for the version of your alarm.

@glorifiedg
Copy link
Author

This integration: v1.12.4

Home Assistant: v0.112.4

Python: v(3,7,7,final,0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants