Alarmsystem do not works... due to this AppDaemon error

Since yesterday AlarmSystem worked fine, from today… it do not works more…
I looked for AppDaemon and I found this error in the log frame of Hassio page of Appdaemon add-on…

I didn’t anything in alarm.py file

Please help me

2018-01-10 00:59:36.551855 WARNING ------------------------------------------------------------
2018-01-10 00:59:36.552335 WARNING Unexpected error during loading of alarm_system:
2018-01-10 00:59:36.552746 WARNING ------------------------------------------------------------
2018-01-10 00:59:36.553969 WARNING Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 912, in read_app
init_object(name, class_name, module_name, conf.app_config[name])
File “/usr/lib/python3.6/site-packages/appdaemon/appdaemon.py”, line 583, in init_object
2018-01-10 00:59:36.555066 INFO Loading Module: /config/appdaemon/apps/hello.py
conf.objects[name][“object”].initialize()
File “/config/appdaemon/apps/alarm.py”, line 55, in initialize
self.log(“Got info volume {}”.format(self.get_info_volume()))
File “/config/appdaemon/apps/alarm.py”, line 161, in get_info_volume
return int(float(self.get_state(self._info_volume_control)))
TypeError: float() argument must be a string or a number, not ‘NoneType’
2018-01-10 00:59:36.554531 WARNING ------------------------------------------------------------

it seems that the entity you gave for volume control has no value.

all files are in the same volume… in the microsd there are…

[config]
   [appdaemon]
        [apps]
        [dashboard]
            appdaemon.yaml
            apps.yaml
            scripts.yaml
            scecrets.yaml

appdaemon.yaml is…

AppDaemon:
  logfile: STDOUT
  errorfile: STDERR
  threads: 10
  app_dir: /config/appdaemon/apps
HASS:
  ha_url: http://192.168.1.2:8123
HADashboard:
  dash_url: http://127.0.0.1:5050
  dash_dir: /config/appdaemon/dashboards

# Apps
hello_world:
  module: hello
  class: HelloWorld

my apps.yaml file is:

alarm_system:
  module: alarm
  class: AlarmSystem
  device_trackers:
    - device_tracker.samsung_s8_wifi
    - device_tracker.samsung_s8_bt
    - device_tracker.huawei_p8_wifi
    - device_tracker.huawei_p8_bt
    # - device_tracker.xiaomi_redmi_wifi
    # - device_tracker.xiaomi_redmi_bt
  armed_home_sensors:
    - binary_sensor.door_window_sensor_aaaaaaaa
    - binary_sensor.door_window_sensor_bbbbbbbb
    - binary_sensor.door_window_sensor_ccccccccc
    - binary_sensor.door_window_sensor_dddddddd
    - binary_sensor.door_window_sensor_eeeeeeee
    - binary_sensor.door_window_sensor_ffffffffffff
  armed_away_sensors:
    - binary_sensor.door_window_sensor_aaaaaaaa
    - binary_sensor.door_window_sensor_bbbbbbbb
    - binary_sensor.door_window_sensor_ccccccccc
    - binary_sensor.door_window_sensor_dddddddd
    - binary_sensor.door_window_sensor_eeeeeeee
    - binary_sensor.door_window_sensor_ffffffff
    - binary_sensor.motion_sensor_wwwwwwww
    - binary_sensor.motion_sensor_xxxxxxxxxxxx
    - binary_sensor.motion_sensor_yyyyyyyyyyyy
    - binary_sensor.motion_sensor_zzzzzzzzzzzz
  alarm_control_buttons:
    - binary_sensor.switch_kkkkkkkk
  alarm_lights:
    - light.gateway_light_gggggggg
  alarm_pin: !secret alarm_pin
  vacation_control: input_boolean.vacation_mode
  guest_control: input_boolean.guest_mode
  silent_control: input_boolean.silent_mode
  alarm_volume_control: input_number.xiaomi_alarm_volume
  info_volume_control: input_number.xiaomi_info_volume
  xiaomi_aqara_gw_mac: hhhhhhhhhhhhh
  notify_service: notify.hassio
  notify_title: "Intruder Alert"

What is wrong???

info volume had no value at the moment the error was created

until two days ago it worked…

which values are expected? where are these valued written?

input_number.xiaomi_info_volume is an entity in your home assistant.
so find it in home assistant and see the value there.

at the moment from the error it has no value. i have no idea why.

hi @andyinno could you help me about?

hi @ReneTode I commented the two lines…

#  alarm_volume_control: input_number.xiaomi_alarm_volume
#  info_volume_control: input_number.xiaomi_info_volume

and restarted AppDaemon … and now it do not show errors.
this problem was generated after I have upgraded HA to 0.60.1

Many thanks @ReneTode

1 Like