Skip to content

Commit 6a29a15

Browse files
committed
New Release 0.0.6
1 parent 0dcef76 commit 6a29a15

File tree

5 files changed

+362
-0
lines changed

5 files changed

+362
-0
lines changed

clear-homething.yaml

Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
1+
esphome:
2+
name: "clear-homething"
3+
platform: ESP32
4+
board: featheresp32
5+
on_boot:
6+
priority: 600.0
7+
then:
8+
- delay: 45s
9+
- if:
10+
condition:
11+
not:
12+
- wifi.connected:
13+
then:
14+
- switch.turn_on: sleep_toggle
15+
16+
wifi:
17+
ssid: !secret wifi_ssid
18+
password: !secret wifi_password
19+
fast_connect: true
20+
id: wifi_id
21+
power_save_mode: HIGH
22+
ap:
23+
ssid: "${friendly_name} Fallback"
24+
password: !secret wifi_fallback_password
25+
26+
external_components:
27+
- source:
28+
# type: git
29+
# url: https://github.com/landonr/homeThing
30+
# ref: main
31+
# refresh: 0s
32+
type: local
33+
path: components
34+
components: [homeThing]
35+
- source:
36+
# type: git
37+
# url: https://github.com/landonr/esphome-components
38+
# ref: main
39+
# refresh: 0s
40+
type: local
41+
path: ../local_components/components
42+
components: [
43+
homeassistant_component,
44+
homeassistant_media_player,
45+
media_player_source,
46+
media_player_source_sonos,
47+
media_player_source_spotify,
48+
media_player_source_custom
49+
]
50+
51+
packages:
52+
device_base: !include common/device_base.yaml
53+
ipod_control_backlight: !include common/ipod/lilygo_tdisplay_ipod_backlight.yaml
54+
ipod_control_battery: !include common/ipod/lilygo_tdisplay_ipod_battery.yaml
55+
ipod_control_binary_sensor: !include common/ipod/lilygo_tdisplay_ipod_binary_sensor.yaml
56+
ipod_control_rotary: !include common/ipod/lilygo_tdisplay_ipod_rotary.yaml
57+
ipod_control_sleep: !include common/ipod/lilygo_tdisplay_ipod_sleep.yaml
58+
home_media_player: !include homeConfig/media_player.yaml
59+
home_text_sensor: !include homeConfig/text_sensor.yaml
60+
home_light: !include homeConfig/light.yaml
61+
home_switch: !include homeConfig/switch.yaml
62+
fonts: !include common/fonts.yaml
63+
icon_fonts: !include common/icon_fonts.yaml
64+
65+
substitutions:
66+
friendly_name: "clear homething"
67+
68+
color:
69+
- id: my_primary_accent
70+
red_int: 75
71+
green_int: 45
72+
blue_int: 209
73+
74+
homeThing:
75+
id: homeThingMenu
76+
settings:
77+
sleep_after: 14400
78+
sleep_switch: sleep_toggle
79+
backlight: backlight
80+
battery:
81+
battery_percent: battery_percent
82+
charging: charging
83+
media_player_group: media_group_component
84+
display: my_display
85+
on_redraw:
86+
then:
87+
component.update: my_display
88+
display_state:
89+
colors:
90+
accent_primary: my_primary_accent
91+
draw_battery_level: true
92+
font_small: small_font
93+
font_medium: medium_font
94+
font_large: large_font
95+
font_large_heavy: large_heavy_font
96+
font_material_large: material_font_large
97+
font_material_small: material_font_small
98+
font_logo: home_thing_logo
99+
screens:
100+
- name: Desk Screen
101+
entities:
102+
- type: command
103+
name: "desk nudge up"
104+
command:
105+
- homeassistant.service:
106+
service: button.press
107+
data:
108+
entity_id: "button.desk_position_nudge_up"
109+
- type: command
110+
name: "desk nudge down"
111+
command:
112+
- homeassistant.service:
113+
service: button.press
114+
data:
115+
entity_id: "button.desk_position_nudge_down"
116+
- id: light_desk_lamp
117+
type: light
118+
- name: Settings Screen
119+
show_version: True
120+
entities:
121+
- id: backlight
122+
type: light
123+
- id: "restart_switch"
124+
type: switch
125+
- id: wifi_ssid
126+
type: text_sensor
127+
- id: wifi_signal_percent
128+
type: sensor
129+
- id: wifi_ip
130+
type: text_sensor
131+
132+
spi:
133+
clk_pin: GPIO18
134+
mosi_pin: GPIO19
135+
136+
display:
137+
- platform: st7789v
138+
model: TTGO_TDisplay_135x240
139+
id: my_display
140+
cs_pin: GPIO5
141+
dc_pin: GPIO16
142+
reset_pin: GPIO23
143+
rotation: 90
144+
update_interval: 10s
145+
lambda: |-
146+
id(homeThingMenu)->draw_menu_screen();
147+
return;
148+
149+
text_sensor:
150+
- platform: wifi_info
151+
ip_address:
152+
name: IP Address
153+
internal: True
154+
id: wifi_ip
155+
ssid:
156+
name: SSID
157+
internal: True
158+
id: wifi_ssid
159+
160+
sensor:
161+
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
162+
name: "WiFi Signal dB"
163+
id: wifi_signal_db
164+
update_interval: 60s
165+
entity_category: "diagnostic"
166+
internal: True
167+
168+
- platform: copy # Reports the WiFi signal strength in %
169+
source_id: wifi_signal_db
170+
name: "WiFi Signal %"
171+
id: wifi_signal_percent
172+
internal: True
173+
filters:
174+
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
175+
unit_of_measurement: "Signal %"
176+
entity_category: "diagnostic"

homeThing_0.0.5.tar.gz

-3.85 MB
Binary file not shown.

homeThing_0.0.6.tar.gz

3.82 MB
Binary file not shown.

proto.yaml

Lines changed: 186 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,186 @@
1+
# set up your name
2+
esphome:
3+
name: "homething-proto"
4+
platform: ESP32
5+
board: featheresp32
6+
on_boot:
7+
priority: 600.0
8+
then:
9+
- delay: 45s
10+
- if:
11+
condition:
12+
not:
13+
- wifi.connected:
14+
then:
15+
- switch.turn_on: sleep_toggle
16+
17+
wifi:
18+
ssid: !secret wifi_ssid
19+
password: !secret wifi_password
20+
fast_connect: true
21+
id: wifi_id
22+
power_save_mode: HIGH
23+
ap:
24+
ssid: "${friendly_name} Fallback"
25+
password: !secret wifi_fallback_password
26+
27+
external_components:
28+
- source:
29+
# type: git
30+
# url: https://github.com/landonr/homeThing
31+
# ref: main
32+
# refresh: 0s
33+
type: local
34+
path: components
35+
components: [homeThing]
36+
- source:
37+
# type: git
38+
# url: https://github.com/landonr/esphome-components
39+
# ref: main
40+
# refresh: 0s
41+
type: local
42+
path: ../local_components/components
43+
components: [
44+
homeassistant_component,
45+
homeassistant_media_player,
46+
media_player_source,
47+
media_player_source_sonos,
48+
media_player_source_spotify,
49+
media_player_source_custom,
50+
homeassistant_cover
51+
]
52+
53+
packages:
54+
device_base: !include common/device_base.yaml
55+
ipod_control_backlight: !include common/ipod/lilygo_tdisplay_ipod_backlight.yaml
56+
ipod_control_battery: !include common/ipod/lilygo_tdisplay_ipod_battery.yaml
57+
ipod_control_binary_sensor: !include common/ipod/lilygo_tdisplay_ipod_binary_sensor.yaml
58+
ipod_control_rotary: !include common/ipod/lilygo_tdisplay_ipod_rotary.yaml
59+
ipod_control_sleep: !include common/ipod/lilygo_tdisplay_ipod_sleep.yaml
60+
home_media_player: !include homeConfig/media_player.yaml
61+
home_text_sensor: !include homeConfig/text_sensor.yaml
62+
home_light: !include homeConfig/light.yaml
63+
home_switch: !include homeConfig/switch.yaml
64+
fonts: !include common/fonts.yaml
65+
icon_fonts: !include common/icon_fonts.yaml
66+
67+
substitutions:
68+
friendly_name: "homeThing proto"
69+
70+
color:
71+
- id: my_primary_accent
72+
red_int: 75
73+
green_int: 45
74+
blue_int: 209
75+
76+
cover:
77+
- platform: homeassistant_cover
78+
entity_id: "cover.megadesk_cover"
79+
name: "Megadesk"
80+
id: cover_megadesk
81+
82+
homeThing:
83+
id: homeThingMenu
84+
settings:
85+
sleep_after: 14400
86+
sleep_switch: sleep_toggle
87+
backlight: backlight
88+
battery:
89+
battery_percent: battery_percent
90+
charging: charging
91+
media_player_group: media_group_component
92+
display: my_display
93+
on_redraw:
94+
then:
95+
component.update: my_display
96+
display_state:
97+
colors:
98+
accent_primary: my_primary_accent
99+
draw_battery_level: true
100+
font_small: small_font
101+
font_medium: medium_font
102+
font_large: large_font
103+
font_large_heavy: large_heavy_font
104+
font_material_large: material_font_large
105+
font_material_small: material_font_small
106+
font_logo: home_thing_logo
107+
screens:
108+
- name: Desk Screen
109+
entities:
110+
- id: cover_megadesk
111+
type: cover
112+
- type: command
113+
name: "desk nudge up"
114+
command:
115+
- homeassistant.service:
116+
service: button.press
117+
data:
118+
entity_id: "button.desk_position_nudge_up"
119+
- type: command
120+
name: "desk nudge down"
121+
command:
122+
- homeassistant.service:
123+
service: button.press
124+
data:
125+
entity_id: "button.desk_position_nudge_down"
126+
- id: light_desk_lamp
127+
type: light
128+
- name: Settings Screen
129+
show_version: True
130+
entities:
131+
- id: backlight
132+
type: light
133+
- id: "restart_switch"
134+
type: switch
135+
- id: wifi_ssid
136+
type: text_sensor
137+
- id: wifi_signal_percent
138+
type: sensor
139+
- id: wifi_ip
140+
type: text_sensor
141+
142+
spi:
143+
clk_pin: GPIO18
144+
mosi_pin: GPIO19
145+
146+
display:
147+
- platform: st7789v
148+
model: TTGO_TDisplay_135x240
149+
id: my_display
150+
cs_pin: GPIO5
151+
dc_pin: GPIO16
152+
reset_pin: GPIO23
153+
rotation: 90
154+
update_interval: 10s
155+
lambda: |-
156+
id(homeThingMenu)->draw_menu_screen();
157+
return;
158+
159+
text_sensor:
160+
- platform: wifi_info
161+
ip_address:
162+
name: IP Address
163+
internal: True
164+
id: wifi_ip
165+
ssid:
166+
name: SSID
167+
internal: True
168+
id: wifi_ssid
169+
170+
sensor:
171+
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
172+
name: "WiFi Signal dB"
173+
id: wifi_signal_db
174+
update_interval: 60s
175+
entity_category: "diagnostic"
176+
internal: True
177+
178+
- platform: copy # Reports the WiFi signal strength in %
179+
source_id: wifi_signal_db
180+
name: "WiFi Signal %"
181+
id: wifi_signal_percent
182+
internal: True
183+
filters:
184+
- lambda: return min(max(2 * (x + 100.0), 0.0), 100.0);
185+
unit_of_measurement: "Signal %"
186+
entity_category: "diagnostic"

release.sh

100644100755
File mode changed.

0 commit comments

Comments
 (0)