93 lines
13 KiB
JSON
93 lines
13 KiB
JSON
[
|
||
{
|
||
"id": "Notification Android TV - Cellular Incoming",
|
||
"result": {
|
||
"structured": "TRIGGER: When Samsung G950F Phone State [sensor.sm_g950f_phone_state] changes to 'ringing' OR Samsung N975F Phone State [sensor.sm_n975f_phone_state] changes to 'ringing'. CONDITIONS: Android TV [media_player.android_tv] is on. ACTIONS: While (Samsung G950F Phone State [sensor.sm_g950f_phone_state] is 'ringing' OR Samsung N975F Phone State [sensor.sm_n975f_phone_state] is 'ringing'), repeatedly send a notification to Android TV with title 'Incoming Phone Call' and a message stating the state of Van Door Sensor [binary_sensor.i_o_linc_1f_0b_58_sensor] (Closed if 'off', Open if 'on'), with specific formatting and an icon based on the door state.",
|
||
"natural_language": {
|
||
"trigger": "When either the Samsung G950F Phone State [sensor.sm_g950f_phone_state] or the Samsung N975F Phone State [sensor.sm_n975f_phone_state] changes to 'ringing', indicating an incoming call.",
|
||
"conditions": "The Android TV [media_player.android_tv] must be turned on.",
|
||
"action": "While at least one of the phones is still ringing, the automation repeatedly sends a notification to the Android TV. The notification has the title 'Incoming Phone Call' and a message that reports whether the Van Door Sensor [binary_sensor.i_o_linc_1f_0b_58_sensor] is Closed or Open. The notification includes custom formatting, a duration of 5 seconds, and an icon that changes based on the door's state."
|
||
},
|
||
"human_like": "Shows an incoming phone call notification on the Android TV, which also reports the status of the van door, while a call is active.",
|
||
"complexity": "medium"
|
||
}
|
||
},
|
||
{
|
||
"id": "Notification LG TV - Incoming Cellular",
|
||
"result": {
|
||
"structured": "TRIGGER: When Samsung A715F Phone State [sensor.sm_a715f_phone_state] changes to ringing OR when New Phone Phone State [sensor.new_phone_phone_state] changes to ringing. CONDITIONS: LG WebOS TV [media_player.lg_webos_tv_um7600pta] is on AND (Samsung A715F Last Notification [sensor.sm_a715f_last_notification] is NOT a WhatsApp incoming voice call AND New Phone Last Notification [sensor.new_phone_last_notification] is NOT a WhatsApp incoming voice call). ACTIONS: While Samsung A715F Phone State [sensor.sm_a715f_phone_state] is ringing, repeatedly send a notification to LG WebOS TV [media_player.lg_webos_tv_um7600pta] with title 'Incoming Call' and message 'Answer your cell phone — it’s ringing!', then wait 5 seconds.",
|
||
"natural_language": {
|
||
"trigger": "When either the Samsung A715F Phone State [sensor.sm_a715f_phone_state] or the New Phone Phone State [sensor.new_phone_phone_state] changes to a ringing state.",
|
||
"conditions": "The LG WebOS TV [media_player.lg_webos_tv_um7600pta] must be turned on, and the incoming call must not be a WhatsApp voice call, as determined by checking the last notification attributes of both phones.",
|
||
"action": "Repeatedly sends a notification to the LG WebOS TV [media_player.lg_webos_tv_um7600pta] with the message 'Answer your cell phone — it’s ringing!' and the title 'Incoming Call', pausing for 5 seconds between each notification, as long as the Samsung A715F Phone State [sensor.sm_a715f_phone_state] remains in the ringing state."
|
||
},
|
||
"human_like": "Shows a notification on the LG TV for incoming cellular calls, but excludes WhatsApp calls, and repeats the notification while the phone is still ringing.",
|
||
"complexity": "medium"
|
||
}
|
||
},
|
||
{
|
||
"id": "Notification LG TV - Incoming SMS",
|
||
"result": {
|
||
"structured": "TRIGGER: When Samsung A715F Last Notification [sensor.sm_a715f_last_notification] OR New Phone Last Notification [sensor.new_phone_last_notification] changes state. CONDITIONS: (The triggering entity is either Samsung A715F Last Notification [sensor.sm_a715f_last_notification] OR New Phone Last Notification [sensor.new_phone_last_notification] AND the notification package is 'com.android.mms', 'com.google.android.apps.messaging', or 'com.samsung.android.messaging' AND the notification text is not empty AND the notification text does not contain the phrase 'voice call') AND LG WebOS TV [media_player.lg_webos_tv_um7600pta] is on. ACTIONS: Repeat the following sequence 2 times: Send a notification to LG WebOS TV [media_player.lg_webos_tv_um7600pta] with title 'Incoming SMS' and message 'You have received a SMS!', then wait for 5 seconds.",
|
||
"natural_language": {
|
||
"trigger": "When there is a change in the state of either the Samsung A715F Last Notification [sensor.sm_a715f_last_notification] or the New Phone Last Notification [sensor.new_phone_last_notification].",
|
||
"conditions": "The notification must come from one of the specified messaging applications (Android Messages, Samsung Messages, or the default MMS app), it must contain text, and that text must not mention a 'voice call'. Additionally, the LG WebOS TV [media_player.lg_webos_tv_um7600pta] must be turned on.",
|
||
"action": "Sends a notification to the LG WebOS TV [media_player.lg_webos_tv_um7600pta] saying 'You have received a SMS!' with the title 'Incoming SMS'. This notification is sent twice, with a 5-second pause between each one."
|
||
},
|
||
"human_like": "Displays an SMS alert on the LG TV when a text message arrives on a connected phone, provided the TV is on.",
|
||
"complexity": "medium"
|
||
}
|
||
},
|
||
{
|
||
"id": "Notification LG TV - Incoming WhatsApp",
|
||
"result": {
|
||
"structured": "TRIGGER: When Samsung A715F Last Notification [sensor.sm_a715f_last_notification] OR New Phone Last Notification [sensor.new_phone_last_notification] changes state. CONDITIONS: LG WebOS TV [media_player.lg_webos_tv_um7600pta] is on AND (The triggering entity is either Samsung A715F Last Notification [sensor.sm_a715f_last_notification] OR New Phone Last Notification [sensor.new_phone_last_notification] AND the notification package is 'com.whatsapp' AND the notification category is 'call' AND the notification text contains the phrase 'incoming voice call' (case-insensitive)). ACTIONS: Repeat the following sequence 2 times: Send a notification to LG WebOS TV [media_player.lg_webos_tv_um7600pta] with title 'Incoming Call' and message 'Answer your WhatsApp — it’s ringing!', then wait for 5 seconds.",
|
||
"natural_language": {
|
||
"trigger": "Whenever there is a change in the state of either the Samsung A715F Last Notification [sensor.sm_a715f_last_notification] or the New Phone Last Notification [sensor.new_phone_last_notification].",
|
||
"conditions": "The LG WebOS TV [media_player.lg_webos_tv_um7600pta] must be turned on. Additionally, the notification that triggered the automation must be from the WhatsApp application (package 'com.whatsapp'), be of the 'call' category, and its text must contain the phrase 'incoming voice call' (checked in a case-insensitive manner).",
|
||
"action": "Sends a notification to the LG WebOS TV [media_player.lg_webos_tv_um7600pta] with the title 'Incoming Call' and the message 'Answer your WhatsApp — it’s ringing!'. This notification is sent twice, with a 5-second pause between each send."
|
||
},
|
||
"human_like": "Displays an incoming WhatsApp call alert on the LG TV when a phone receives a call notification, ensuring the TV is on.",
|
||
"complexity": "medium"
|
||
}
|
||
},
|
||
{
|
||
"id": "Notification Light - Incoming Cellular Call Flash",
|
||
"result": {
|
||
"structured": "TRIGGER: When Samsung A715F Phone State [sensor.sm_a715f_phone_state] changes to 'ringing'. CONDITIONS: The last notification from Samsung A715F Last Notification [sensor.sm_a715f_last_notification] is NOT a WhatsApp incoming voice call (i.e., the notification's package is not 'com.whatsapp' OR its category is not 'call' OR its text does not contain 'incoming voice call'). ACTIONS: Run the Flash Alert Lights Script [script.flash_alert_lights] with parameters: target light group Incoming Call Flash Light Group [light.light_group_incoming_call_flash], first color blue, second color white, high brightness 80%, low brightness 20%, flash 4 times with a 2-second delay between flashes.",
|
||
"natural_language": {
|
||
"trigger": "When the Samsung A715F Phone State [sensor.sm_a715f_phone_state] changes to 'ringing', indicating an incoming call.",
|
||
"conditions": "The automation checks the last notification captured by Samsung A715F Last Notification [sensor.sm_a715f_last_notification]. It proceeds only if that notification is not identified as a WhatsApp incoming voice call. Specifically, it filters out notifications where the app package is 'com.whatsapp', the category is 'call', and the text contains 'incoming voice call'.",
|
||
"action": "Activates the Flash Alert Lights Script [script.flash_alert_lights], which will make the Incoming Call Flash Light Group [light.light_group_incoming_call_flash] flash between blue and white colors. The lights will flash four times, alternating between high (80%) and low (20%) brightness, with a two-second pause between each flash."
|
||
},
|
||
"human_like": "Flashes a group of lights in blue and white when a non-WhatsApp phone call is received, providing a visual alert.",
|
||
"complexity": "medium"
|
||
}
|
||
},
|
||
{
|
||
"id": "Notification Light - Incoming SMS Call Flash",
|
||
"result": {
|
||
"structured": "TRIGGER: When Samsung A715F Last Notification [sensor.sm_a715f_last_notification] OR New Phone Last Notification [sensor.new_phone_last_notification] changes state. CONDITIONS: The triggering entity must be Samsung A715F Last Notification [sensor.sm_a715f_last_notification] OR New Phone Last Notification [sensor.new_phone_last_notification] AND the notification package attribute must be 'com.android.mms' OR 'com.google.android.apps.messaging' OR 'com.samsung.android.messaging' AND the notification text attribute (android.text) must exist (not be none) AND the notification text must NOT contain the phrase 'voice call' (case-insensitive). ACTIONS: Run the Flash Alert Lights Script [script.flash_alert_lights] with parameters: target light group is Incoming Call Flash Light Group [light.light_group_incoming_call_flash], first colour yellow, second colour white, high brightness 80%, low brightness 20%, flash count 4, and flash delay of 2 seconds.",
|
||
"natural_language": {
|
||
"trigger": "When either the Samsung A715F Last Notification [sensor.sm_a715f_last_notification] or the New Phone Last Notification [sensor.new_phone_last_notification] sensor updates its state.",
|
||
"conditions": "The notification must be from one of the specified messaging applications (Android Messages, Samsung Messages, or the default MMS app), it must contain text, and that text must not mention a voice call.",
|
||
"action": "Activates a light flashing sequence by running the Flash Alert Lights Script [script.flash_alert_lights]. The script will make the Incoming Call Flash Light Group [light.light_group_incoming_call_flash] flash four times, alternating between yellow and white at different brightness levels, with a two-second delay between flashes."
|
||
},
|
||
"human_like": "Flashes a group of lights in a specific pattern when an SMS message is received on either of two monitored phones, providing a visual alert.",
|
||
"complexity": "medium"
|
||
}
|
||
},
|
||
{
|
||
"id": "Notification Light - Incoming WhatsApp Call Flash",
|
||
"result": {
|
||
"structured": "TRIGGER: When Samsung A715F Last Notification [sensor.sm_a715f_last_notification] OR New Phone Last Notification [sensor.new_phone_last_notification] changes state. CONDITIONS: The triggering entity is either Samsung A715F Last Notification [sensor.sm_a715f_last_notification] OR New Phone Last Notification [sensor.new_phone_last_notification] AND its 'package' attribute equals 'com.whatsapp' AND its 'category' attribute equals 'call' AND its 'android.text' attribute (converted to lowercase) contains the string 'incoming voice call'. ACTIONS: Run the Flash Alert Lights Script [script.flash_alert_lights] with parameters: target light group is Incoming Call Flash Light Group [light.light_group_incoming_call_flash], colors are green and white, high brightness 80%, low brightness 20%, flash 4 times with a 2-second delay between flashes.",
|
||
"natural_language": {
|
||
"trigger": "When the state of either the Samsung A715F Last Notification [sensor.sm_a715f_last_notification] or the New Phone Last Notification [sensor.new_phone_last_notification] changes.",
|
||
"conditions": "The notification that triggered the automation must be from the WhatsApp app (package 'com.whatsapp'), be of the 'call' category, and have the text 'incoming voice call' in its notification message.",
|
||
"action": "Activates the Flash Alert Lights Script [script.flash_alert_lights] to make the Incoming Call Flash Light Group [light.light_group_incoming_call_flash] flash four times, alternating between green and white colors at specified brightness levels, with a two-second pause between each flash."
|
||
},
|
||
"human_like": "Flashes a group of lights to visually alert you when an incoming WhatsApp call is detected on either of the monitored phones.",
|
||
"complexity": "medium"
|
||
}
|
||
}
|
||
] |