HADashboard Alarm Widget Java Error

I am attempting to add a manual alarm to my Home Assistant setup. I’d like to access this from the HADashboard if I can, however whenever I add the alarm widget, I get a message box that pops up with the error “Error getting state, check Java Console for details”

Here is the popup. I’ve gotten the same popup in Firefox/Chrome/Edge, as well as several browsers on my Android tablet.
image

Here are a few screenshots of the firefox developer tools.

image

I assume http://192.168.1.104:5151/state/ should actually be http://192.168.1.104:5151/state/alarm_control_panel.home_alarm , however I’m not sure if I’m doing something wrong, or how I would correct this.

Home2.dash

title: Main Panel
widget_dimensions: [114, 114]
widget_size: [1, 1]
widget_margins: [5, 5]
columns: 8

home_label:
    widget_type: label
    title: Home
    widget_style: "background: transparent; vertical-align: top; padding-right: 10px"
    title_style: "text-align: left; font-size: 42px; vertical-align: top; margin-top: -20px"

weather: 
    widget_type: weather
    units: "°F"
    entity:   
     - sensor.weather_icon
     - sensor.weather_temperature    
     - sensor.weather_apparent_temperature
     - sensor.weather_dew_point
     - sensor.weather_wind_speed
     - sensor.weather_cloud_coverage
     - sensor.weather_humidity
     - sensor.weather_pressure
     - sensor.weather_daily_summary
     - sensor.dark_sky_wind_bearing
     - sensor.daily_high_temperature
     - sensor.dark_sky_daily_low_temperature
     
next_sunrise:
  widget_type: sensor
  entity: sensor.nextsunrise
  title: Next Sunrise

next_sunset:
  widget_type: sensor
  entity: sensor.nextsunset
  title: Next Sunset  
     
stairs_light:
    widget_type: switch
    state_text: 1
    title: Stairway
    icon_on: mdi-lightbulb-on-outline
    icon_off: mdi-lightbulb-outline
    entity: switch.ge_14291_inwall_smart_switch_switch
    
livingroom_light:
    widget_type: switch
    state_text: 1
    title: Living Room
    icon_on: mdi-lightbulb-on-outline
    icon_off: mdi-lightbulb-outline
    entity: switch.ge_14291_inwall_smart_switch_switch_2
    
diningroom_light:
    widget_type: switch
    state_text: 1
    title: Dining Room
    icon_on: mdi-lightbulb-on-outline
    icon_off: mdi-lightbulb-outline
    entity: switch.ge_14291_inwall_smart_switch_switch_3

all_lights:
    widget_type: switch
    state_text: 1
    title: All Lights
    icon_on: mdi-lightbulb-on-outline
    icon_off: mdi-lightbulb-outline
    entity: group.all_lights
    
livingroom_motion:
    widget_type: binary_sensor
    state_text: 1
    title: Living Room Movement
    icon_on: mdi-eye-outline
    icon_off: mdi-eye-off-outline
    entity: binary_sensor.ge_unknown_type4953_id3133_sensor
     
clock:
    widget_type: clock
    title_style: "text-align: right; font-size: 42px; vertical-align: top; margin-top: -50px"

a_presence:
  widget_type: device_tracker
  title: A
  title2: Cell
  device: samsunggalaxys7edge
  widget_style: $blue_background
  icon_on: mdi-human-male
  icon_off: mdi-human-male
  icon_style_active:  "font-size: 350%; margin-top: -10px;"
  icon_style_inactive: "font-size: 350%; margin-top: -10px;"
  
k_presence:
  widget_type: device_tracker
  title: K
  title2: Cell
  device: galaxynote5
  icon_on: mdi-human-female
  icon_off: mdi-human-female
  icon_style_active:  "font-size: 350%; margin-top: -10px;"
  icon_style_inactive: "font-size: 350%; margin-top: -10px;"
  
l_presence:
  widget_type: device_tracker
  title: L
  title2: Cell
  device: android546e48b75950cfd1
  icon_on: mdi-human-male
  icon_off: mdi-human-male
  icon_style_active: "font-size: 200%; margin-top: 11px;"
  icon_style_inactive: "font-size: 200%; margin-top: 11px;"

front_door_sensor:
  widget_type: binary_sensor
  entity: binary_sensor.ecolink_doorwindow_sensor_sensor
  title: Front Door
  icon_on: mdi-locker
  icon_off: mdi-locker
  
sliding_door_sensor:
  widget_type: binary_sensor
  entity: binary_sensor.ecolink_doorwindow_sensor_sensor_2
  title: Sliding Door
  icon_on: mdi-locker
  icon_off: mdi-locker
  
back_door_sensor:
  widget_type: binary_sensor
  entity: binary_sensor.ecolink_doorwindow_sensor_sensor_3
  title: Back Door
  icon_on: mdi-locker
  icon_off: mdi-locker
  
side_door_sensor:
  widget_type: binary_sensor
  entity: binary_sensor.ecolink_doorwindow_sensor_sensor_4
  title: side Door
  icon_on: mdi-locker
  icon_off: mdi-locker
  
reload_button:
  widget_type: reload
  title: Refresh

nest:
  widget_type: climate
  entity: climate.dining_room
  title: Thermostat
  units: "°F"
  
media_dash_link:
  widget_type: navigate
  title: Media Players
  dashboard: mediaplayers
  skin: Metro

alarm:
  widget_type: alarm
  entity: alarm_control_panel.alarm
  

layout:
    - home_label(2x1), spacer(4x1), clock.clock(2x1)
    - weather(2x2), a_presence, k_presence, l_presence
    - stairs_light, livingroom_light, diningroom_light, all_lights
    - nest(1x1), livingroom_motion
    - next_sunrise, next_sunset, front_door_sensor, sliding_door_sensor, back_door_sensor, side_door_sensor
    - reload_button, media_dash_link, alarm(2x2)

appdaemon.yaml

AppDaemon:
  logfile: /home/homeassistant/.homeassistant/appdaemonlogs.log
  errorfile: /home/homeassistant/.homeassistant/appdaemonerrors.log
  logsize: 100000
  log_generations: 3
  threads: '10'
  app_dir: /home/homeassistant/.homeassistant/conf/apps
  # disable_apps: 1
  #cert_path: <path/to/root/CA/cert>
  cert_verify: false
  #time_zone: <time zone>
  #api_port: 5000
  #api_key: !secret api_key
  #api_ssl_certificate: <path/to/root/CA/cert>
  #api_ssl_key: <path/to/root/CA/key>
HASS:
  ha_url: http://192.168.1.104:8123
  #ha_key: PASSWORD
HADashboard:
  dash_url: http://192.168.1.104:5151
  dash_dir: /home/homeassistant/.homeassistant/conf/dashboards
  accessfile: /home/homeassistant/.homeassistant/accessfile.log
  dash_force_compile: 1
  dash_compile_on_start: 1

configuration.yaml

homeassistant: 
  name: Home #Name of the location where Home Assistant is running
  # Location required to calculate the time the sun rises and sets
  latitude: !secret latitude
  longitude: !secret longitude
  elevation: !secret elevation # Impacts weather/sunrise data (altitude above sea level in meters)
  unit_system: imperial  # metric for Metric, imperial for Imperial
  time_zone: America/New_York
  customize: !include customize.yaml   # Customization file
 
frontend: # Enables the frontend
logbook: # View all events in a logbook
history: # Enables support for tracking state changes over time
config: # Enables configuration UI
discovery: # Discover some devices automatically
conversation: # Allows you to issue voice commands from the frontend in enabled browsers

ffmpeg: # https://home-assistant.io/components/ffmpeg/
  ffmpeg_bin: /usr/bin/ffmpeg

nest:
  client_id: !secret nest_client_id
  client_secret: !secret nest_client_secret

#usps: # https://home-assistant.io/components/usps/
#  username: !secret usps_username
#  password: !secret usps_password

emulated_hue:
  listen_port: 80
  host_ip: 192.168.1.104

#zha:
#  usb_path: /dev/ttyUSB1
#  database_path: /home/homeassistant/.homeassistant/zigbee.db
zwave:
  usb_path: /dev/ttyUSB0

# Track the sun
sun: # https://home-assistant.io/components/sun/

http: # https://home-assistant.io/components/http/
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD
  # Uncomment this if you are using SSL/TLS, running in Docker container, etc.
  # base_url: example.duckdns.org:8123

# Checks for available updates
updater: # https://home-assistant.io/components/updater/
    include_used_components: true

#weblink:
#  entities:
#    - name: Router
#      url: http://192.168.1.1/
#    - name: Home Assistant
#      url: https://home-assistant.io

media_player:
  - platform: roku
    host: 192.168.1.119

ifttt:
  key: !secret ifttt_key

# Text to speech
tts:
  - platform: google

mqtt:
  broker: 192.168.1.104
  port: 1883
  client_id: home-assistant-1
  username: !secret mqtt_username
  password: !secret mqtt_password


group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
sensor: !include sensors.yaml
notify: !include notify.yaml
camera: !include cameras.yaml
device_tracker: !include device_tracker.yaml
#zone: !include zones.yaml
#switch: !include switches.yaml

alarm_control_panel:
  - platform: manual
    name: alarm
    code: 1234
    pending_time: 30
    armed_home:
      pending_time: 0
    triggered:
      pending_time: 20
    trigger_time: 4 

on first glance, it looks like what I have configured, however I get no error.

My alarm_control_panel name is just a single word “alarm”.

First thing I’d try is to simplify your alarm entity in HA to a single word name, all lower case, and change that in the dashboard and see if it makes any difference.

My yaml definition of the panel is slightly more simple. I’ve just got a single pending and trigger_time.

1 Like

So that didn’t resolve my problem, but as i went to change my entity name to check, I noticed enitity: alarm_control_panel.alarm instead of entity: alarm_control_panel.alarm. (Extra i in entity) So thank you! That indirectly helped! Its working now.

:smiley: glad its working now!