Compare commits

...

2 Commits

@ -0,0 +1,46 @@
######################################################################
# @CCOSTAN - Follow Me on X
# For more info visit https://www.vcloudinfo.com/click-here
# Original Repo : https://github.com/CCOSTAN/Home-AssistantConfig
# -------------------------------------------------------------------
# Royal Caribbean Price Alerts - Webhook-driven drop notifications
# Uses Cruise Tracker webhook to notify via notify_engine + HA UI.
# -------------------------------------------------------------------
# Notes: Use script.notify_engine for app notifications.
######################################################################
automation:
- alias: "Royal Caribbean Price Drop Alert"
id: royal_caribbean_price_drop_alert
mode: queued
trigger:
- platform: webhook
webhook_id: !secret royalcaribbean_price_drop_webhook
variables:
payload: "{{ trigger.json | default({}) }}"
ship: "{{ payload.ship | default('Royal Caribbean') }}"
sail_date: "{{ payload.sail_date | default('') }}"
room_type: "{{ payload.room_type | default('') }}"
old_price: "{{ payload.old_price | default('') }}"
new_price: "{{ payload.new_price | default('') }}"
booking_id: "{{ payload.booking_id | default('') }}"
details: >-
{{ [ship, sail_date, room_type] | select('string') | select('length') | join(' | ') }}
message: >-
New price {{ new_price }} vs {{ old_price }}.
action:
- service: script.notify_engine
data:
who: carlo
title: "Royal Caribbean price drop"
value1: "{{ details }}"
value2: "{{ message }}"
value3: ""
group: "royal_caribbean_price_drop"
level: "active"
- service: persistent_notification.create
data:
title: "Royal Caribbean price drop"
message: "{{ details }} - {{ message }}"
notification_id: >-
{{ 'rc_price_drop_' ~ (booking_id if booking_id else sail_date|replace('-', '')) }}

@ -1,13 +1,13 @@
<svg width="61.5" height="20" viewBox="0 0 615 200" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="2026.1.3">
<title>2026.1.3</title>
<linearGradient id="fijFz" x2="0" y2="100%">
<linearGradient id="HXVFo" x2="0" y2="100%">
<stop offset="0" stop-opacity=".1" stop-color="#EEE"/>
<stop offset="1" stop-opacity=".1"/>
</linearGradient>
<mask id="ouZtW"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#ouZtW)">
<mask id="yewwi"><rect width="615" height="200" rx="30" fill="#FFF"/></mask>
<g mask="url(#yewwi)">
<rect width="615" height="200" fill="#08C" x="0"/>
<rect width="615" height="200" fill="url(#fijFz)"/>
<rect width="615" height="200" fill="url(#HXVFo)"/>
</g>
<g aria-hidden="true" fill="#fff" text-anchor="start" font-family="Verdana,DejaVu Sans,sans-serif" font-size="110">
<text x="65" y="148" textLength="500" fill="#000" opacity="0.25">2026.1.3</text>

Before

Width:  |  Height:  |  Size: 811 B

After

Width:  |  Height:  |  Size: 811 B

Loading…
Cancel
Save

Powered by TurnKey Linux.