Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion tesla_ble_mqtt/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
<!-- https://developers.home-assistant.io/docs/add-ons/presentation#keeping-a-changelog -->

## 0.0.7a

### Changed

WARNING: broken for standalone deployment, stay on 0.0.6
OK for HA Addon

- logging msg adjustments & fix logic for log.debug
- logging add logic for log.debug to properly work

## 0.0.7

### Changed
Expand Down Expand Up @@ -55,4 +65,4 @@ OK for HA Addon
### Changed

- Initial dev version based on https://github.com/iainbullock/tesla_ble_mqtt_docker
- WARN: standalone not tested
- WARN: standalone not tested
2 changes: 1 addition & 1 deletion tesla_ble_mqtt/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: "Tesla Local Commands"
version: "0.0.7"
version: "0.0.7a"
slug: "tesla_local_commands"
description: "Local BLE calls to control your Tesla."
# url: "tbc"
Expand Down
94 changes: 47 additions & 47 deletions tesla_ble_mqtt/rootfs/app/discovery.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ setup_auto_discovery() {
"name": "Presence",
"unique_id": "tesla_ble_presence"
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/generate_keys/config -m \
'{
"command_topic": "tesla_ble/config",
Expand All @@ -31,7 +31,7 @@ setup_auto_discovery() {
"qos": 1,
"unique_id": "tesla_ble_generate_keys",
"entity_category": "config"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/deploy_key/config -m \
'{
Expand All @@ -48,7 +48,7 @@ setup_auto_discovery() {
"qos": 1,
"unique_id": "tesla_ble_deploy_key",
"entity_category": "config"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/scan_bluetooth/config -m \
'{
Expand All @@ -65,7 +65,7 @@ setup_auto_discovery() {
"qos": 1,
"unique_id": "tesla_ble_scan_bluetooth",
"entity_category": "diagnostic"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/wake/config -m \
'{
Expand All @@ -78,9 +78,9 @@ setup_auto_discovery() {
},
"name": "Wake Car",
"payload_press": "wake",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_wake"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/flash-lights/config -m \
'{
Expand All @@ -93,9 +93,9 @@ setup_auto_discovery() {
},
"name": "Flash Lights",
"payload_press": "flash-lights",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_flash_lights"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/honk/config -m \
'{
Expand All @@ -108,10 +108,10 @@ setup_auto_discovery() {
},
"name": "Honk",
"payload_press": "honk",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_honk"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/lock/config -m \
'{
"command_topic": "tesla_ble/command",
Expand All @@ -123,9 +123,9 @@ setup_auto_discovery() {
},
"name": "Lock Car",
"payload_press": "lock",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_lock"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/unlock/config -m \
'{
Expand All @@ -138,9 +138,9 @@ setup_auto_discovery() {
},
"name": "Unlock Car",
"payload_press": "unlock",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_unlock"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/auto_seat-climate/config -m \
'{
Expand All @@ -153,9 +153,9 @@ setup_auto_discovery() {
},
"name": "Auto Seat & Climate",
"payload_press": "auto-seat-and-climate",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_auto_seat-climate"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/climate-off/config -m \
'{
Expand All @@ -168,9 +168,9 @@ setup_auto_discovery() {
},
"name": "Climate Off",
"payload_press": "climate-off",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_climate-off"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/climate-on/config -m \
'{
Expand All @@ -183,7 +183,7 @@ setup_auto_discovery() {
},
"name": "Climate On",
"payload_press": "climate-on",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_climate-on"
}'

Expand All @@ -198,10 +198,10 @@ setup_auto_discovery() {
},
"name": "Open Trunk",
"payload_press": "trunk-open",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_trunk-open"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/trunk-close/config -m \
'{
"command_topic": "tesla_ble/command",
Expand All @@ -213,9 +213,9 @@ setup_auto_discovery() {
},
"name": "Close Trunk",
"payload_press": "trunk-close",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_trunk-close"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/frunk-open/config -m \
'{
Expand All @@ -228,9 +228,9 @@ setup_auto_discovery() {
},
"name": "Open Frunk",
"payload_press": "frunk-open",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_frunk-open"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/charging-start/config -m \
'{
Expand All @@ -243,9 +243,9 @@ setup_auto_discovery() {
},
"name": "Start Charging",
"payload_press": "charging-start",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_charging-start"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/charging-stop/config -m \
'{
Expand All @@ -258,9 +258,9 @@ setup_auto_discovery() {
},
"name": "Stop Charging",
"payload_press": "charging-stop",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_charging-stop"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/charge-port-open/config -m \
'{
Expand All @@ -273,9 +273,9 @@ setup_auto_discovery() {
},
"name": "Open Charge Port",
"payload_press": "charge-port-open",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_charge-port-open"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/charge-port-close/config -m \
'{
Expand All @@ -288,10 +288,10 @@ setup_auto_discovery() {
},
"name": "Close Charge Port",
"payload_press": "charge-port-close",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_charge-port-close"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/windows-close/config -m \
'{
"command_topic": "tesla_ble/command",
Expand All @@ -303,10 +303,10 @@ setup_auto_discovery() {
},
"name": "Close Windows",
"payload_press": "windows-close",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_windows-close"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/button/tesla_ble/windows-vent/config -m \
'{
"command_topic": "tesla_ble/command",
Expand All @@ -318,7 +318,7 @@ setup_auto_discovery() {
},
"name": "Vent Windows",
"payload_press": "windows-vent",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_windows-vent"
}'

Expand All @@ -339,7 +339,7 @@ setup_auto_discovery() {
"unit_of_measurement": "A",
"qos": 1,
"icon": "mdi:current-ac"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/number/tesla_ble/charging-set-limit/config -m \
'{
Expand All @@ -358,7 +358,7 @@ setup_auto_discovery() {
"unit_of_measurement": "%",
"qos": 1,
"icon": "mdi:battery-90"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/number/tesla_ble/climate-set-temp/config -m \
'{
Expand All @@ -377,7 +377,7 @@ setup_auto_discovery() {
"unit_of_measurement": "°C",
"qos": 1,
"icon": "mdi:temperature"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/number/tesla_ble/seat-heater/config -m \
'{
Expand All @@ -395,7 +395,7 @@ setup_auto_discovery() {
"mode": "slider",
"qos": 1,
"icon": "mdi:temperature"
}'
}'

mosquitto_pub -h $MQTT_IP -p $MQTT_PORT -u "$MQTT_USER" -P "$MQTT_PWD" -t homeassistant/switch/tesla_ble/sw-heater/config -m \
'{
Expand All @@ -407,8 +407,8 @@ setup_auto_discovery() {
"name": "Tesla_BLE_MQTT"
},
"name": "Steering Wheel Heater",
"device_class": "switch",
"qos": 1,
"device_class": "switch",
"qos": 1,
"unique_id": "tesla_ble_sw_heater"
}'

Expand All @@ -423,7 +423,7 @@ setup_auto_discovery() {
},
"name": "Sentry Mode",
"device_class": "switch",
"qos": 1,
"qos": 1,
"unique_id": "tesla_ble_sentry-mode"
}'

Expand Down
Loading