UniversalDevicesInc-PG3 / udi-poly-notification

Polyglot v2 NodeServer for Notifications
MIT License
2 stars 1 forks source link

get_device_name KeyError: #8

Closed jimboca closed 4 years ago

jimboca commented 4 years ago
2020-02-06 20:10:58,081 [Controller] [INFO ] controller:cmd_set_message: 4
2020-02-06 20:10:58,082 [Controller] [INFO ] Updating Driver controller - GV2: 4, uom: 25
2020-02-06 20:10:58,788 [Controller] [INFO ] pushover_homeisy:Service Pushover homeisy:cmd_set_device: 4
2020-02-06 20:10:58,789 [Controller] [INFO ] pushover_homeisy:Service Pushover homeisy:set_device: 4
2020-02-06 20:10:58,789 [Controller] [INFO ] pushover_homeisy:Service Pushover homeisy:set_device: Set GV1 to 4
2020-02-06 20:10:59,437 [Controller] [INFO ] pushover_homeisy:Service Pushover homeisy:cmd_set_priority: 2
2020-02-06 20:10:59,438 [Controller] [INFO ] pushover_homeisy:Service Pushover homeisy:set_priority: 2
2020-02-06 20:10:59,438 [Controller] [INFO ] pushover_homeisy:Service Pushover homeisy:set_priority: Set GV2 to 2
2020-02-06 20:10:59,439 [Controller] [INFO ] Updating Driver po_homeisy - GV2: 2, uom: 25
2020-02-06 20:11:00,197 [Controller] [INFO ] pushover_homeisy:Service Pushover homeisy:cmd_send: 
2020-02-06 20:11:00,198 [Controller] [INFO ] controller:get_current_message: i=4
2020-02-06 20:11:00,199 [Controller] [INFO ] pushover_homeisy:Service Pushover homeisy:cmd_send: params={'title': 'Good Night', 'id': '4', 'message': 'Good Night', 'device': 'JimsPhone', 'priority': 0, 'monospace': 1, 'user': 'tavzn48CN3tsp8iXwPwNgDxbfw3ngh', 'token': 'XY2bmjgRLzy4LANZREGd23WrewFawA'}
2020-02-06 20:11:00,200 [Controller] [DEBUG] pushover_homeisy:Service Pushover homeisy:get_device_name: dev=JimsPhone
2020-02-06 20:11:00,200 [Controller] [ERROR] _parseInput: failed po_homeisy.runCmd(SEND) 'JimsPhone'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.7/site-packages/polyinterface/polyinterface.py", line 846, in _parseInput
    self.nodes[input[key]['address']].runCmd(input[key])
  File "/var/polyglot/.local/lib/python3.7/site-packages/polyinterface/polyinterface.py", line 749, in runCmd
    fun(self, command)
  File "/var/polyglot/nodeservers/Notification/nodes/Pushover.py", line 282, in cmd_send
    return self.do_send(md)
  File "/var/polyglot/nodeservers/Notification/nodes/Pushover.py", line 290, in do_send
    params['device'] = self.get_device_name(params['device'])
  File "/var/polyglot/nodeservers/Notification/nodes/Pushover.py", line 206, in get_device_name
    return self.devices[str(dev)]
KeyError: 'JimsPhone'