I use:
Homeassistant version: 0.83.3
appdaemon version: 3.0.2
Started to learn and play with appdaemon.
I have a script that runs fine “no errors in appdaemon” but Homeassistant complains with the following error.
########
Log Details (WARNING)
Sun Dec 09 2018 23:22:05 GMT+0100 (Midden-Europese standaardtijd)
Unable to find service perisistent_notification/create
########
The part of the script:
self.call_service("perisistent_notification/create",
title="AppNote: {}".format(entity),
message="{}\nAppDaemon: Lampen boven de zit zijn aan.".format(pretty_timestamp),
notification_id="1235")
Homeassistant is using the service as persistent_notification.create but that does appdaemon not accept.
The complete script:
#import appdaemon.appapi as appapi
import appdaemon.plugins.hass.hassapi as hass
from datetime import datetime
#class notes(appapi.AppDaemon):
class notes(hass.Hass):
def initialize(self):
self.listen_state(self.is_light_on, "group.woonkamer_1")
def is_light_on(self, entity, attribute, old, new, kwargs):
pretty_timestamp = self.datetime().strftime('%A, %x @ %X')
state = new
self.log('{} changed status to: {} | {}'.format(entity, state, pretty_timestamp))
if state == "on":
self.call_service("perisistent_notification/create",
title="AppNote: {}".format(entity),
message="{}\nAppDaemon: Lampen boven de zit zijn aan.".format(pretty_timestamp),
notification_id="1235")
else:
self.call_service("perisistent_notification/create",
title="AppNote: {}".format(entity),
message="{}\nAppDaemon: Lampen boven de zit zijn uit.".format(pretty_timestamp),
notification_id="1235")