Skip to content

noonlight dispatch not getting service type #30

@colmode

Description

@colmode

I've been testing v1.2.0, installed from HACS. Alarrms are triggered correctly, but dispatch claims that they don't get a specific service type ('fire' in this case), only "Home Assistant device".

I configured an automation using the built-in configurator. Do I need to use the Manual Alarm component instead?

Automation config:

- id: '1655668581792'
  alias: Smoke alarm notification
  description: ''
  triggers:
  - type: smoke
    device_id: ac5a522876814ba28fdb63bc47d3d635
    entity_id: binary_sensor.ecolink_z_wave_plus_firefighter_smoke_alarm_smoke_detected
    domain: binary_sensor
    trigger: device
  conditions: []
  actions:
  - data:
      service: fire
    action: noonlight.create_alarm
  - action: notify.notify
    metadata: {}
    data:
      message: Smoke alarm on
      title: Smoke alarm on
  mode: single
...
- id: '1738193907509'
  alias: CO alarm notification
  description: ''
  triggers:
  - type: gas
    device_id: ac5a522876814ba28fdb63bc47d3d635
    entity_id: 714aab2e8bf8efacbd5cca4ad1ebded4
    domain: binary_sensor
    trigger: device
  conditions: []
  actions:
  - data:
      service: fire
    action: noonlight.create_alarm
  - action: notify.notify
    metadata: {}
    data:
      message: CO alarm on
      title: CO alarm on
  mode: single

Debug log (not a lot of detail about the alarm event here:

2025-04-07 13:26:47.192 DEBUG (MainThread) [custom_components.noonlight.config_flow] [async_step_init] self._data: {'address1': 'xxx', 'api_endpoint': 'https://api.noonlight.com/platform/v1', 'city': 'xxx', 'id': '99b9d235-333a-4564-829a-62a2a745270e', 'location_mode': 'address', 'name': 'Noonlight', 'secret': 'xxx/d', 'state': 'xxx', 'token_endpoint': 'https://noonlight.konnected.io/ha/token', 'zip': 'xxx'}
2025-04-07 13:26:54.689 DEBUG (MainThread) [custom_components.noonlight.config_flow] [async_step_reconfig_address] self._data: {'address1': 'xxx', 'api_endpoint': 'https://api.noonlight.com/platform/v1', 'city': 'xxx', 'id': '99b9d235-333a-4564-829a-62a2a745270e', 'location_mode': 'address', 'name': 'Noonlight', 'secret': 'xxx/d', 'state': 'xxx', 'token_endpoint': 'https://noonlight.konnected.io/ha/token', 'zip': 'xxx'}
2025-04-07 13:26:54.689 INFO (MainThread) [custom_components.noonlight] Unloading: {'address1': 'xxx', 'api_endpoint': 'https://api.noonlight.com/platform/v1', 'city': 'xxx', 'id': '99b9d235-333a-4564-829a-62a2a745270e', 'location_mode': 'address', 'name': 'Noonlight', 'secret': 'xxx/d', 'state': 'xxx', 'token_endpoint': 'https://noonlight.konnected.io/ha/token', 'zip': 'xxx'}
2025-04-07 13:26:54.691 DEBUG (MainThread) [custom_components.noonlight] [init async_setup_entry] entry: {'address1': 'xxx', 'api_endpoint': 'https://api.noonlight.com/platform/v1', 'city': 'xxx', 'id': '99b9d235-333a-4564-829a-62a2a745270e', 'location_mode': 'address', 'name': 'Noonlight', 'secret': 'xxx/d', 'state': 'xxx', 'token_endpoint': 'https://noonlight.konnected.io/ha/token', 'zip': 'xxx'}
2025-04-07 13:26:54.693 DEBUG (MainThread) [custom_components.noonlight.switch] [aync_setup_entry] noonlight_integration: {'01JJT4X8DK42Y6YRPPBTJ28KKY': <custom_components.noonlight.NoonlightIntegration object at 0x7f4c98bc50>}
2025-04-07 13:26:54.693 DEBUG (MainThread) [custom_components.noonlight.switch] [aync_setup_entry] config_entry: {'address1': 'xxx', 'api_endpoint': 'https://api.noonlight.com/platform/v1', 'city': 'xxx', 'id': '99b9d235-333a-4564-829a-62a2a745270e', 'location_mode': 'address', 'name': 'Noonlight', 'secret': 'xxx/d', 'state': 'ME', 'token_endpoint': 'https://noonlight.konnected.io/ha/token', 'zip': 'xxx'}
2025-04-07 13:26:54.707 DEBUG (MainThread) [custom_components.noonlight] Checking if token needs renewal, expires: -484457.4h
2025-04-07 13:26:54.708 DEBUG (MainThread) [custom_components.noonlight] Renewing Noonlight access token
2025-04-07 13:26:56.819 DEBUG (MainThread) [custom_components.noonlight] Token set: xxx
2025-04-07 13:26:56.819 DEBUG (MainThread) [custom_components.noonlight] Token renewed, expires at 2025-04-08 03:26:56.790000+00:00 (10.0h)
2025-04-07 13:35:53.957 DEBUG (MainThread) [custom_components.noonlight] Checking if token needs renewal, expires: 8.2h
2025-04-07 13:41:56.821 DEBUG (MainThread) [custom_components.noonlight] Checking if token needs renewal, expires: 9.7h
2025-04-07 13:43:08.211 DEBUG (MainThread) [custom_components.noonlight] noonlight alarm has been initiated. id: 67f40eacd019bda97d168e24 status: ACTIVE
2025-04-07 13:43:23.212 DEBUG (MainThread) [custom_components.noonlight] checking alarm status...
2025-04-07 13:43:38.213 DEBUG (MainThread) [custom_components.noonlight] checking alarm status...
2025-04-07 13:43:53.213 DEBUG (MainThread) [custom_components.noonlight] checking alarm status...
2025-04-07 13:44:08.214 DEBUG (MainThread) [custom_components.noonlight] checking alarm status...
2025-04-07 13:44:08.278 DEBUG (MainThread) [custom_components.noonlight] alarm 67f40eacd019bda97d168e24 has been canceled!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions