-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
262 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#pragma once | ||
|
||
#include "esphome/core/hal.h" | ||
|
||
namespace esphome | ||
{ | ||
namespace tc_bus | ||
{ | ||
enum SettingType { | ||
SETTING_RINGTONE_FLOOR_CALL, | ||
SETTING_RINGTONE_DOOR_CALL, | ||
SETTING_RINGTONE_INTERNAL_CALL, | ||
SETTING_RINGTONE_VOLUME, | ||
SETTING_HANDSET_VOLUME | ||
}; | ||
|
||
struct Settings { | ||
uint8_t handset_volume = 4; | ||
uint8_t ringtone_volume = 4; | ||
uint8_t door_call_ringtone = 0; | ||
uint8_t internal_call_ringtone = 0; | ||
uint8_t floor_call_ringtone = 0; | ||
}; | ||
} | ||
} |
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,19 @@ | ||
# Memory Utils Addon | ||
|
||
# Extend TC:BUS Component | ||
tc_bus: | ||
on_read_memory_complete: | ||
- logger.log: "Completed memory reading!" | ||
- lambda: |- | ||
std::string hexString = str_upper_case(format_hex(x)); | ||
ESP_LOGD("tcs_bus", "Memory: %s", hexString.c_str()); | ||
on_read_memory_timeout: | ||
- logger.log: "Failed to read Memory" | ||
|
||
|
||
button: | ||
- platform: template | ||
name: "Read Memory" | ||
on_press: | ||
- tc_bus.read_memory: |
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