Preformatted textAfter updating to 1.1.1 it seems that is should be possible to change the badgenumber without a message. I have tried to do this in the following, but nothing happens and the logs returns an error.
- alias: Notify iOS when sonos is playing
trigger:
- platform: state
entity_id: media_player.kkken
from: 'paused'
to: 'playing'
action:
service: notify.ios_jespersiphone
data:
push:
badge: 1
sound: "solemn.mp3"
error:
2017-11-18 07:51:24 ERROR (MainThread) [homeassistant.core] Invalid service data for notify.ios_jespersiphone: extra keys not allowed @ data[‘push’]. Got OrderedDict([(‘badge’, 1), (‘sound’, ‘solemn.mp3’)])
required key not provided @ data[‘message’]. Got None
I agree but after reading the release notes of the new 1.1.1 update I thought that changed.
“Support customization of notification display options (see online docs for this, but allows you to specify badge/alert/sound or any combination of the three for each notfication”
I have now tried it using the new Companion v1.5.0 (24) but still the same log error and not working with badge alone without a message. Anyone knows how to make this work?