PyLoxone
PyLoxone copied to clipboard
PushButton sends timestamp as state for both "pressed" and "unpressed" events
Describe the bug
When a PushButton is Pressed in Loxone, the corresponding button object in HomeAssistant for both "Pressed" and "Unpressed" states have a timestamp in ithe state. So it is not possbile to distinguish those two events in any way as the current satate is nowehere available. (Previously when the PushButton was represented by switch in HA, it worked fine).
The state should be on / off or pressed / unpressed. Or something what would allow to distinguish the two event types. Or Send only a single even on Press instaed of two events.
Button Pressed Event Detail
{
"payload": "2024-08-26T15:29:48.446374+00:00",
"data": {
"entity_id": "button.loxone_button_press_demo",
"old_state": {
"entity_id": "button.loxone_button_press_demo",
"state": "2024-08-26T15:25:16.990973+00:00",
"attributes": {
"uuid": "182b9d23-01ca-2dda-ffffd1ffb7f86d13",
"state_uuid": "182b9d23-01ca-2dd9-ffffa93911e485c3",
"room": "Statusy",
"category": "Ovládání",
"device_type": "Pushbutton",
"platform": "loxone",
"friendly_name": "loxone_button_press_demo"
},
"last_changed": "2024-08-26T15:25:16.990994+00:00",
"last_reported": "2024-08-26T15:29:48.370564+00:00",
"last_updated": "2024-08-26T15:25:16.990994+00:00",
"context": {
"id": "01J67MN6SYP2S180BWVF1QJHSD",
"parent_id": null,
"user_id": null
}
},
"new_state": {
"entity_id": "button.loxone_button_press_demo",
"state": "2024-08-26T15:29:48.446374+00:00",
"attributes": {
"uuid": "182b9d23-01ca-2dda-ffffd1ffb7f86d13",
"state_uuid": "182b9d23-01ca-2dd9-ffffa93911e485c3",
"room": "Statusy",
"category": "Ovládání",
"device_type": "Pushbutton",
"platform": "loxone",
"friendly_name": "loxone_button_press_demo"
},
"last_changed": "2024-08-26T15:29:48.446550+00:00",
"last_reported": "2024-08-26T15:29:48.446550+00:00",
"last_updated": "2024-08-26T15:29:48.446550+00:00",
"context": {
"id": "01J67MXFTFQ2HJ8NR7WNZS1C1Q",
"parent_id": null,
"user_id": "5244dadddac14f1b9c220a7741163d8a"
},
"timeSinceChangedMs": 15
}
},
"topic": "button.loxone_button_press_demo",
"_msgid": "ed64071f15c2f2c8"
}
Button UnPressed Event Detail
{
"payload": "2024-08-26T15:29:49.411075+00:00",
"data": {
"entity_id": "button.loxone_button_press_demo",
"old_state": {
"entity_id": "button.loxone_button_press_demo",
"state": "2024-08-26T15:29:48.446374+00:00",
"attributes": {
"uuid": "182b9d23-01ca-2dda-ffffd1ffb7f86d13",
"state_uuid": "182b9d23-01ca-2dd9-ffffa93911e485c3",
"room": "Statusy",
"category": "Ovládání",
"device_type": "Pushbutton",
"platform": "loxone",
"friendly_name": "loxone_button_press_demo"
},
"last_changed": "2024-08-26T15:29:48.446550+00:00",
"last_reported": "2024-08-26T15:29:48.446550+00:00",
"last_updated": "2024-08-26T15:29:48.446550+00:00",
"context": {
"id": "01J67MXFTFQ2HJ8NR7WNZS1C1Q",
"parent_id": null,
"user_id": "5244dadddac14f1b9c220a7741163d8a"
}
},
"new_state": {
"entity_id": "button.loxone_button_press_demo",
"state": "2024-08-26T15:29:49.411075+00:00",
"attributes": {
"uuid": "182b9d23-01ca-2dda-ffffd1ffb7f86d13",
"state_uuid": "182b9d23-01ca-2dd9-ffffa93911e485c3",
"room": "Statusy",
"category": "Ovládání",
"device_type": "Pushbutton",
"platform": "loxone",
"friendly_name": "loxone_button_press_demo"
},
"last_changed": "2024-08-26T15:29:49.411206+00:00",
"last_reported": "2024-08-26T15:29:49.411206+00:00",
"last_updated": "2024-08-26T15:29:49.411206+00:00",
"context": {
"id": "01J67MXFTFQ2HJ8NR7WNZS1C1Q",
"parent_id": null,
"user_id": "5244dadddac14f1b9c220a7741163d8a"
},
"timeSinceChangedMs": 13
}
},
"topic": "button.loxone_button_press_demo",
"_msgid": "c546c35ad793d131"
}
Firmware of your Miniserver
11.1.9.14
HomeAssistant install method
HACS
Version of HomeAssistant
2024.8.3
Version of Pyloxone
0.6.14
Update pyloxone
Yes, updated to the latest version:
Log
Settings for the log can be found on the main page under the section Log Configuration