Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ansible-warpzone
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
specki
ansible-warpzone
Commits
654b6ee6
Commit
654b6ee6
authored
2 years ago
by
3d
Browse files
Options
Downloads
Patches
Plain Diff
change pins and add functions to popcorn
parent
94d61488
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
intern/docker_esphome/templates/config/esphome_popcorn.yaml
+147
-29
147 additions, 29 deletions
intern/docker_esphome/templates/config/esphome_popcorn.yaml
with
147 additions
and
29 deletions
intern/docker_esphome/templates/config/esphome_popcorn.yaml
+
147
−
29
View file @
654b6ee6
{
%
set devicename = "esphome_popcorn" %
}
{
%
set devicename = "esphome_popcorn" %
}
on_boot
:
-
priority
:
600
then
:
-
display.page.show
:
page1
-
priority
:
250
then
:
-
light.addressable_set
:
id
:
status_led
range_from
:
0
range_to
:
2
red
:
0%
green
:
100%
blue
:
0%
-
priority
:
-100
then
:
-
if
:
condition
:
binary_sensor.is_on
:
heat_button
then
:
-
light.addressable_set
:
id
:
status_led
range_from
:
1
range_to
:
1
red
:
100%
green
:
0%
blue
:
0%
-
if
:
condition
:
binary_sensor.is_off
:
heat_button
then
:
-
light.addressable_set
:
id
:
status_led
range_from
:
1
range_to
:
1
red
:
0%
green
:
0%
blue
:
0%
-
if
:
condition
:
binary_sensor.is_on
:
turn_button
then
:
-
light.addressable_set
:
id
:
status_led
range_from
:
2
range_to
:
2
red
:
100%
green
:
0%
blue
:
0%
-
if
:
condition
:
binary_sensor.is_off
:
turn_button
then
:
-
light.addressable_set
:
id
:
status_led
range_from
:
2
range_to
:
2
red
:
0%
green
:
0%
blue
:
0%
-
if
:
condition
:
binary_sensor.is_on
:
warmlight_button
then
:
-
light.addressable_set
:
id
:
status_led
range_from
:
0
range_to
:
0
red
:
100%
green
:
0%
blue
:
0%
-
if
:
condition
:
binary_sensor.is_off
:
warmlight_button
then
:
-
light.addressable_set
:
id
:
status_led
range_from
:
0
range_to
:
0
red
:
0%
green
:
0%
blue
:
0%
-
display.page.show
:
page3
{
%
include "/includes/ansible.inc.yaml" %
}
{
%
include "/includes/ansible.inc.yaml" %
}
{
%
include "/includes/board.esp32-doit-devkit-v1.inc.yaml" %
}
{
%
include "/includes/board.esp32-doit-devkit-v1.inc.yaml" %
}
...
@@ -52,11 +135,6 @@ climate:
...
@@ -52,11 +135,6 @@ climate:
kp
:
0.49460
kp
:
0.49460
ki
:
0.00487
ki
:
0.00487
kd
:
12.56301
kd
:
12.56301
output_averaging_samples
:
5
# smooth the output over 5 samples
derivative_averaging_samples
:
5
# smooth the derivative value over 10 samples
deadband_parameters
:
threshold_high
:
1°C
# deadband within +/-1°C of target_temperature
threshold_low
:
-1°C
visual
:
visual
:
min_temperature
:
0
min_temperature
:
0
max_temperature
:
275
max_temperature
:
275
...
@@ -123,12 +201,22 @@ sensor:
...
@@ -123,12 +201,22 @@ sensor:
output
:
output
:
-
platform
:
slow_pwm
-
platform
:
slow_pwm
pin
:
GPIO
33
pin
:
GPIO
12
id
:
pot_heater
id
:
pot_heater
period
:
15s
period
:
15s
-
platform
:
ledc
-
platform
:
ledc
pin
:
GPIO3
pin
:
GPIO3
id
:
gpio_4_backlight_pwm
id
:
backlight_pwm
switch
:
-
platform
:
gpio
pin
:
GPIO15
name
:
"
TurnMotor"
id
:
turnmotor
-
platform
:
gpio
pin
:
GPIO4
name
:
"
WarmLight"
id
:
warmlight
binary_sensor
:
binary_sensor
:
-
platform
:
gpio
-
platform
:
gpio
...
@@ -147,18 +235,36 @@ binary_sensor:
...
@@ -147,18 +235,36 @@ binary_sensor:
mode
:
"
OFF"
mode
:
"
OFF"
-
light.addressable_set
:
-
light.addressable_set
:
id
:
status_led
id
:
status_led
range_from
:
0
range_from
:
1
range_to
:
0
range_to
:
1
red
:
0%
red
:
0%
green
:
0%
green
:
0%
blue
:
0%
blue
:
0%
on_press
:
then
:
-
climate.control
:
id
:
pid_heater
mode
:
HEAT
target_temperature
:
264
-
light.addressable_set
:
-
light.addressable_set
:
id
:
status_led
id
:
status_led
range_from
:
1
range_from
:
1
range_to
:
1
range_to
:
1
red
:
0%
red
:
10
0%
green
:
0%
green
:
0%
blue
:
0%
blue
:
0%
-
platform
:
gpio
pin
:
number
:
GPIO33
inverted
:
true
mode
:
input
:
true
pullup
:
true
name
:
"
Turn
Button"
id
:
turn_button
on_release
:
then
:
-
switch.turn_off
:
turnmotor
-
light.addressable_set
:
-
light.addressable_set
:
id
:
status_led
id
:
status_led
range_from
:
2
range_from
:
2
...
@@ -168,31 +274,43 @@ binary_sensor:
...
@@ -168,31 +274,43 @@ binary_sensor:
blue
:
0%
blue
:
0%
on_press
:
on_press
:
then
:
then
:
-
climate.control
:
-
switch.turn_on
:
turnmotor
id
:
pid_heater
-
light.addressable_set
:
mode
:
HEAT
id
:
status_led
target_temperature
:
264
range_from
:
2
range_to
:
2
red
:
100%
green
:
0%
blue
:
0%
-
platform
:
gpio
pin
:
number
:
GPIO19
inverted
:
true
mode
:
input
:
true
pullup
:
true
name
:
"
WarmLight
Button"
id
:
warmlight_button
on_release
:
then
:
-
switch.turn_off
:
warmlight
-
light.addressable_set
:
-
light.addressable_set
:
id
:
status_led
id
:
status_led
range_from
:
0
range_from
:
0
range_to
:
0
range_to
:
0
red
:
0%
red
:
0%
green
:
0%
green
:
0%
blue
:
100%
blue
:
0%
on_press
:
then
:
-
switch.turn_on
:
warmlight
-
light.addressable_set
:
-
light.addressable_set
:
id
:
status_led
id
:
status_led
range_from
:
1
range_from
:
0
range_to
:
1
range_to
:
0
red
:
100%
red
:
100%
green
:
0%
green
:
0%
blue
:
0%
blue
:
0%
-
light.addressable_set
:
id
:
status_led
range_from
:
2
range_to
:
2
red
:
0%
green
:
100%
blue
:
0%
font
:
font
:
-
file
:
"
gfonts://Roboto"
-
file
:
"
gfonts://Roboto"
...
@@ -257,9 +375,9 @@ time:
...
@@ -257,9 +375,9 @@ time:
light
:
light
:
-
platform
:
monochromatic
-
platform
:
monochromatic
output
:
gpio_4_
backlight_pwm
output
:
backlight_pwm
name
:
"
ILI9341
Display
Backlight"
name
:
"
ILI9341
Display
Backlight"
id
:
back
_
light
id
:
backlight
restore_mode
:
ALWAYS_ON
restore_mode
:
ALWAYS_ON
internal
:
True
internal
:
True
-
platform
:
fastled_spi
-
platform
:
fastled_spi
...
@@ -271,6 +389,7 @@ light:
...
@@ -271,6 +389,7 @@ light:
num_leds
:
3
num_leds
:
3
name
:
"
NeoPixel
Light"
name
:
"
NeoPixel
Light"
internal
:
True
internal
:
True
restore_mode
:
ALWAYS_OFF
effects
:
effects
:
-
addressable_color_wipe
:
-
addressable_color_wipe
:
name
:
BootUp
name
:
BootUp
...
@@ -283,7 +402,7 @@ light:
...
@@ -283,7 +402,7 @@ light:
green
:
0%
green
:
0%
blue
:
0%
blue
:
0%
num_leds
:
3
num_leds
:
3
add_led_interval
:
5
00ms
add_led_interval
:
1
00ms
reverse
:
False
reverse
:
False
text_sensor
:
text_sensor
:
...
@@ -304,5 +423,4 @@ text_sensor:
...
@@ -304,5 +423,4 @@ text_sensor:
else {
else {
return {"ERROR see Display"};
return {"ERROR see Display"};
}
}
update_interval
:
5s
update_interval
:
5s
\ No newline at end of file
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment