@orange-assistant
I didn’t know that was possible. Seems really powerful. However it’s a bit too much trouble to flash esp home on the sonoff bridge. With the physical modifications and all. Have to see what the advantages of the tasmota firmware are. Do I know if it allows multi press detection?
@tom_l
I extended the wait period to 10 seconds to see if the integration has a minimum delay between notifying of two consecutive presses. Still the second press doesn’t get detected.
Here’s the full trace (2 seconds delay, button pressed 2 times)
{
"trace": {
"last_step": "action/1/then/0",
"run_id": "9a3e831e4ddac2224fba2a8ce8761ed8",
"state": "stopped",
"script_execution": "finished",
"timestamp": {
"start": "2023-08-27T14:05:30.510326+00:00",
"finish": "2023-08-27T14:05:32.520501+00:00"
},
"domain": "automation",
"item_id": "1693128603375",
"trigger": null,
"trace": {
"trigger": [
{
"path": "trigger",
"timestamp": "2023-08-27T14:05:30.510424+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.rf_automation_not_working",
"state": "on",
"attributes": {
"id": "1693128603375",
"last_triggered": "2023-08-27T10:37:21.852362+00:00",
"mode": "single",
"current": 0,
"friendly_name": "RF AUTOMATION NOT WORKING "
},
"last_changed": "2023-08-27T10:41:47.407067+00:00",
"last_updated": "2023-08-27T10:41:47.407067+00:00",
"context": {
"id": "01H8V9BRWFP6CJM5H3MMMZWKTB",
"parent_id": null,
"user_id": null
}
},
"trigger": {
"platform": null
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2023-08-27T14:05:30.512868+00:00",
"changed_variables": {
"context": {
"id": "01H8VN0SGE8TR2M1SFRWE8GAY5",
"parent_id": "01H8VN0SGDTS4HP7YHE30FC2AH",
"user_id": null
}
},
"result": {
"wait": {
"remaining": 0,
"trigger": null
}
}
}
],
"action/1": [
{
"path": "action/1",
"timestamp": "2023-08-27T14:05:32.514800+00:00",
"changed_variables": {
"wait": {
"remaining": 0,
"trigger": null
}
},
"result": {
"choice": "then"
}
}
],
"action/1/if": [
{
"path": "action/1/if",
"timestamp": "2023-08-27T14:05:32.515059+00:00",
"result": {
"result": true
}
}
],
"action/1/if/condition/0": [
{
"path": "action/1/if/condition/0",
"timestamp": "2023-08-27T14:05:32.515094+00:00",
"result": {
"result": true,
"entities": []
}
}
],
"action/1/then/0": [
{
"path": "action/1/then/0",
"timestamp": "2023-08-27T14:05:32.515827+00:00",
"result": {
"params": {
"domain": "logbook",
"service": "log",
"service_data": {
"message": "Single press detected",
"entity_id": "button.1001588a20_2",
"name": "Custom"
},
"target": {}
},
"running_script": false
}
}
]
},
"config": {
"id": "1693128603375",
"alias": "RF AUTOMATION NOT WORKING ",
"description": "",
"trigger": [
{
"platform": "device",
"device_id": "48728c2ea4ff424ff576c549008cdc57",
"domain": "button",
"entity_id": "c9ca1e9a73903255d61eee8497d3ee7f",
"type": "pressed"
}
],
"condition": [],
"action": [
{
"wait_for_trigger": [
{
"platform": "device",
"device_id": "48728c2ea4ff424ff576c549008cdc57",
"domain": "button",
"entity_id": "c9ca1e9a73903255d61eee8497d3ee7f",
"type": "pressed",
"id": "A"
}
],
"timeout": {
"hours": 0,
"minutes": 0,
"seconds": 2,
"milliseconds": 0
}
},
{
"if": [
{
"condition": "template",
"value_template": "{{\n not wait.trigger\n}}"
}
],
"then": [
{
"service": "logbook.log",
"data": {
"message": "Single press detected",
"entity_id": "button.1001588a20_2",
"name": "Custom"
}
}
],
"else": [
{
"service": "logbook.log",
"data": {
"message": "Double press detected "
}
}
]
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01H8VN0SGE8TR2M1SFRWE8GAY5",
"parent_id": "01H8VN0SGDTS4HP7YHE30FC2AH",
"user_id": null
}
},
"logbookEntries": [
{
"name": "RF AUTOMATION NOT WORKING ",
"message": "triggered",
"source": null,
"entity_id": "automation.rf_automation_not_working",
"context_id": "01H8VN0SGE8TR2M1SFRWE8GAY5",
"when": 1693145130.510497,
"domain": "automation"
},
{
"when": 1693145132.516183,
"name": "Custom",
"message": "Single press detected",
"domain": "button",
"entity_id": "button.1001588a20_2",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "RF AUTOMATION NOT WORKING ",
"context_message": "triggered",
"context_entity_id": "automation.rf_automation_not_working"
}
]
}