-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from bolkedebruin/main
Add long press and release event support
- Loading branch information
Showing
6 changed files
with
164 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
long_press: | ||
description: Long press of a button on a Button+ | ||
target: | ||
entity: | ||
domain: button_plus | ||
release: | ||
description: Release of a button on a Button+ | ||
target: | ||
entity: | ||
domain: button_plus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"config": { | ||
"abort": { | ||
"mqtt_not_enabled": "The MQTT integration is not enabled. Please add this first here: {mqtt_integration_link}" | ||
}, | ||
"error": { | ||
"cannot_connect": "Failed to connect, see log for more info", | ||
"button_plus_connection": "Error connecting or reading from https://api.button.plus/ See log for more info", | ||
"invalid_ip": "The IP ' {ip} ' is not a valid IPv4 address." | ||
}, | ||
"step": { | ||
"fetch_website": { | ||
"data": { | ||
"cookie": "Auth Cookie", | ||
"email": "Email", | ||
"password": "Password" | ||
}, | ||
"data_description": { | ||
"cookie": "Optional, can be used instead of login. If used, paste the entire cookie content including auth_cookie=" | ||
}, | ||
"description": "Either enter your login info for button plus or enter the Auth Cookie after login in on https://button.plus/" | ||
}, | ||
"manual": { | ||
"data": { | ||
"ip_address": "IP Address" | ||
}, | ||
"data_description": { | ||
"ip_address": "Button+ IP address (as seen on the bottom left of the display)" | ||
}, | ||
"description": "Manually enter Button+ device IP address" | ||
}, | ||
"user": { | ||
"data": { | ||
"broker": "Address to reach the broker." | ||
}, | ||
"data_description": { | ||
"broker": "Leave this unchanged if you're unsure what this is." | ||
}, | ||
"description": "The MQTT broker configured in Home Assistant will be used:\n - Broker: {mqtt_broker}\n - Port:{mqtt_broker_port}\n - Authentication: {mqtt_user}\n\n This broker configuration will be added to each device with the name of this integration; 'ha-button-plus' and can be found in the Button+ interface.\n\n The buttons of the Button+ will be configured to send clicks on a topic in this broker and the integration will sync these with the home assistant button entities. \n\n You can override the MQTT broker endpoint if you want here." | ||
}, | ||
"choose_entry": { | ||
"menu_options": { | ||
"fetch_website": "Fetch all devices from Button.plus website", | ||
"manual": "Manually enter single device by local IP" | ||
}, | ||
"description": "To continue, pick the desired option to setup your Button+ devices." | ||
} | ||
} | ||
}, | ||
"services": { | ||
"long_press": { | ||
"name": "Long press", | ||
"description": "Long press on a button on button+" | ||
}, | ||
"release": { | ||
"name": "Release", | ||
"description": "Release of a button on button+" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters