28 lines
3.2 KiB
JSON
28 lines
3.2 KiB
JSON
[
|
|
{
|
|
"id": "OFF2ON",
|
|
"result": {
|
|
"structured": "TRIGGER: When voltage sensor [21de8f39b88bc7392a2f988a93e48a31] value drops below 0.3. CONDITIONS: (Xiaomi 13T bluetooth sensor [sensor.bt_xiaomi_13t] signal strength is above -85 dBm) OR (Mi A2 bluetooth sensor [sensor.bt_mi_a2] signal strength is above -85 dBm). ACTIONS: If voltage sensor [a956f56584635e82ff4e1793445b8431] voltage is below 0.05, then turn on room light [light.esphome_web_0451d2_room_light]. If Xiaomi 13T bluetooth sensor [sensor.bt_xiaomi_13t] signal strength is above -80 dBm, then send a notification to Leonardo mobile notification [notify.mobile_app_2306epn60g] with title 'Welcome Message' and message 'Welcome Home Leonardo!'. If Mi A2 bluetooth sensor [sensor.bt_mi_a2] signal strength is above -80 dBm, then send a notification to Matilde mobile notification [notify.mobile_app_mi_a2] with title 'Welcome Message' and message 'Welcome Home Matilde!'.",
|
|
"natural_language": {
|
|
"trigger": "The automation is triggered when a specific voltage sensor [21de8f39b88bc7392a2f988a93e48a31] in the living room reports a value below 0.3.",
|
|
"conditions": "At least one of the following Bluetooth devices must be nearby: either the Xiaomi 13T bluetooth sensor [sensor.bt_xiaomi_13t] must have a signal strength greater than -85 dBm, or the Mi A2 bluetooth sensor [sensor.bt_mi_a2] must have a signal strength greater than -85 dBm.",
|
|
"action": "The automation performs three conditional actions. First, if another voltage sensor [a956f56584635e82ff4e1793445b8431] reports a voltage below 0.05, it turns on the living room light [light.esphome_web_0451d2_room_light]. Second, if the Xiaomi 13T phone is very close (signal above -80 dBm), it sends a 'Welcome Home Leonardo!' notification to Leonardo's phone [notify.mobile_app_2306epn60g]. Third, if the Mi A2 phone is very close (signal above -80 dBm), it sends a 'Welcome Home Matilde!' notification to Matilde's phone [notify.mobile_app_mi_a2]."
|
|
},
|
|
"human_like": "This automation detects when someone arrives home by monitoring a voltage drop and Bluetooth signals, then turns on the living room light and sends personalized welcome notifications.",
|
|
"complexity": "medium"
|
|
}
|
|
},
|
|
{
|
|
"id": "ON2OFF",
|
|
"result": {
|
|
"structured": "TRIGGER: When voltage sensor [21de8f39b88bc7392a2f988a93e48a31] value rises above 0.9. CONDITIONS: (Xiaomi 13T bluetooth sensor [sensor.bt_xiaomi_13t] value is below -85) AND (Mi A2 bluetooth sensor [sensor.bt_mi_a2] value is below -85). ACTIONS: Turn off room light [light.esphome_web_0451d2_room_light].",
|
|
"natural_language": {
|
|
"trigger": "When the voltage sensor [21de8f39b88bc7392a2f988a93e48a31] reports a value greater than 0.9.",
|
|
"conditions": "If the Xiaomi 13T bluetooth sensor [sensor.bt_xiaomi_13t] reports a value below -85 and the Mi A2 bluetooth sensor [sensor.bt_mi_a2] also reports a value below -85.",
|
|
"action": "Turns off the living room light [light.esphome_web_0451d2_room_light]."
|
|
},
|
|
"human_like": "Turns off the living room light when a voltage threshold is exceeded and both specified Bluetooth devices are out of range.",
|
|
"complexity": "medium"
|
|
}
|
|
}
|
|
] |