Hi Automation Ninjas!
Thanks in advance.
I’m trying to create a script for sending a mobile notification, assigning variable as fields.
I created an RGB color field for the Icon color. Then I realised the Icon color needs to be a hex value.
Is it even possible to use an RGB color field as an Icon colour in a mobile notification script?
Any help would be highly appreciated.
alias: Mobile Notification Script
sequence:
- service: notify.mobile_app_sobanath_s_mobile
data:
message: "{{message}}"
title: "{{title}}"
data:
channel: "{{channel}}"
color: "{{colour}}"
priority: high
importance: high
mode: parallel
fields:
message:
selector:
text: null
name: message
required: true
description: >-
Send clear_notification to clear with correct tag. Send remove_channel
with the correct channal in the channal field
title:
selector:
text: null
name: title
colour:
selector:
color_rgb: {}
name: colour
max: 10