Skip to content

Commit d8e1e2b

Browse files
author
committed
Deployed 5dff151 with MkDocs version: 1.6.1
0 parents  commit d8e1e2b

File tree

930 files changed

+33903
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

930 files changed

+33903
-0
lines changed

.nojekyll

Whitespace-only changes.

404.html

+1
Large diffs are not rendered by default.

A4988-Stepper-Motor-Controller/index.html

+10
Large diffs are not rendered by default.

ADC/index.html

+5
Large diffs are not rendered by default.

AHT1x/index.html

+5
Large diffs are not rendered by default.

AHT2x/index.html

+4
Large diffs are not rendered by default.

AM2301/index.html

+12
Large diffs are not rendered by default.

APDS-9960/index.html

+20
Large diffs are not rendered by default.

API/index.html

+63
Large diffs are not rendered by default.

AS3935/index.html

+5
Large diffs are not rendered by default.

AWS-IoT-cert/index.html

+83
Large diffs are not rendered by default.

AWS-IoT/index.html

+31
Large diffs are not rendered by default.

AZ-7798/index.html

+4
Large diffs are not rendered by default.

About/index.html

+1
Large diffs are not rendered by default.

Alexa/index.html

+1
Large diffs are not rendered by default.

ArtNet/index.html

+10
Large diffs are not rendered by default.

Azure-IoT-Central/index.html

+13
Large diffs are not rendered by default.

Azure-IoT-Hub/index.html

+21
Large diffs are not rendered by default.

BH1750/index.html

+5
Large diffs are not rendered by default.

BME280/index.html

+14
Large diffs are not rendered by default.

BME680/index.html

+16
Large diffs are not rendered by default.

BMP280/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../BME280/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../BME280/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../BME280/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../BME280/">new destination</a>.
13+
</body>
14+
</html>

BUILDS/index.html

+1
Large diffs are not rendered by default.

Berry-Cookbook/index.html

+526
Large diffs are not rendered by default.

Berry-Introduction/index.html

+304
Large diffs are not rendered by default.

Berry-Scripting/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../Berry/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../Berry/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../Berry/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../Berry/">new destination</a>.
13+
</body>
14+
</html>

Berry/index.html

+817
Large diffs are not rendered by default.

Berry_Addressable-LED/index.html

+27
Large diffs are not rendered by default.

Blinds-and-Shutters/index.html

+62
Large diffs are not rendered by default.

Bluetooth/index.html

+18
Large diffs are not rendered by default.

Bluetooth_ESP32/index.html

+18
Large diffs are not rendered by default.

Bluetooth_MI32/index.html

+781
Large diffs are not rendered by default.

Buttons-and-Switches/index.html

+14
Large diffs are not rendered by default.

Buttons-schematics/index.html

+1
Large diffs are not rendered by default.

Buzzer/index.html

+1
Large diffs are not rendered by default.

CC2530/index.html

+37
Large diffs are not rendered by default.

CCLoader/index.html

+4
Large diffs are not rendered by default.

Codes-for-IR-Remotes/index.html

+1
Large diffs are not rendered by default.

Commands/index.html

+13
Large diffs are not rendered by default.

Compile-your-build/index.html

+143
Large diffs are not rendered by default.

Components-old/index.html

+1
Large diffs are not rendered by default.

Components/index.html

+1
Large diffs are not rendered by default.

Configuration-Procedure-for-New-Devices/index.html

+10
Large diffs are not rendered by default.

Contributing/index.html

+1
Large diffs are not rendered by default.

Control-a-Sonoff-using-a-remote-button/index.html

+1
Large diffs are not rendered by default.

Create-your-own-Firmware-Build-without-IDE/index.html

+175
Large diffs are not rendered by default.

DALI/index.html

+8
Large diffs are not rendered by default.

DFR0299/index.html

+5
Large diffs are not rendered by default.

DHT11-Wiring---Sonoff-Basic/index.html

+1
Large diffs are not rendered by default.

DHT11/index.html

+25
Large diffs are not rendered by default.

DS18x20/index.html

+18
Large diffs are not rendered by default.

DS3231/index.html

+8
Large diffs are not rendered by default.

DY-SV17F/index.html

+7
Large diffs are not rendered by default.

DeepSleep/index.html

+55
Large diffs are not rendered by default.

Device-Groups/index.html

+1
Large diffs are not rendered by default.

Device-Recovery/index.html

+1
Large diffs are not rendered by default.

Displays/index.html

+38
Large diffs are not rendered by default.

Domoticz/index.html

+1
Large diffs are not rendered by default.

Download/index.html

+1
Large diffs are not rendered by default.

Dynamic-Sleep/index.html

+2
Large diffs are not rendered by default.

ENS161/index.html

+4
Large diffs are not rendered by default.

EQ3-TRV/index.html

+57
Large diffs are not rendered by default.

ESP32-Devices/index.html

+56
Large diffs are not rendered by default.

ESP32/index.html

+3
Large diffs are not rendered by default.

EZO/index.html

+13
Large diffs are not rendered by default.

Energy-Saving/index.html

+1
Large diffs are not rendered by default.

Esptool/index.html

+4
Large diffs are not rendered by default.

Expanding-4CH/index.html

+1
Large diffs are not rendered by default.

Expanding-Tasmota/index.html

+1
Large diffs are not rendered by default.

FAQ/index.html

+18
Large diffs are not rendered by default.

Features/index.html

+1
Large diffs are not rendered by default.

Firmware-Builds/index.html

+1
Large diffs are not rendered by default.

For-Developers/index.html

+1
Large diffs are not rendered by default.

GPIO-Conversion/index.html

+1
Large diffs are not rendered by default.

GPIO-Locations/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../Pinouts/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../Pinouts/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../Pinouts/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../Pinouts/">new destination</a>.
13+
</body>
14+
</html>

GPS-NTP-server/index.html

+5
Large diffs are not rendered by default.

Getting-Started/index.html

+9
Large diffs are not rendered by default.

Gitpod/index.html

+1
Large diffs are not rendered by default.

GladysAssistant/index.html

+1
Large diffs are not rendered by default.

HASPmota/index.html

+171
Large diffs are not rendered by default.

HC-SR04/index.html

+5
Large diffs are not rendered by default.

HDMI_CEC/index.html

+30
Large diffs are not rendered by default.

HLK-LD2410/index.html

+14
Large diffs are not rendered by default.

HLK-LD2410S/index.html

+23
Large diffs are not rendered by default.

HM-10/index.html

+7
Large diffs are not rendered by default.

HM-17/index.html

+7
Large diffs are not rendered by default.

HRG15/index.html

+14
Large diffs are not rendered by default.

Home-Assistant/index.html

+664
Large diffs are not rendered by default.

HomeSeer/index.html

+1
Large diffs are not rendered by default.

Homebridge/index.html

+1
Large diffs are not rendered by default.

Honeywell-HIH/index.html

+4
Large diffs are not rendered by default.

How-to-Expand-Sonoff-Basic-to-4MB-Flash/index.html

+4
Large diffs are not rendered by default.

Hubitat/index.html

+1
Large diffs are not rendered by default.

I2CDEVICES/index.html

+1
Large diffs are not rendered by default.

I2S-Audio/index.html

+29
Large diffs are not rendered by default.

I2S-Audio_ESP32/index.html

+43
Large diffs are not rendered by default.

IAQ/index.html

+5
Large diffs are not rendered by default.

IP-Symcon/index.html

+3
Large diffs are not rendered by default.

IPv6/index.html

+24
Large diffs are not rendered by default.

IR-Remote/index.html

+9
Large diffs are not rendered by default.

IRSend-RAW-Encoding/index.html

+34
Large diffs are not rendered by default.

Integrations/index.html

+1
Large diffs are not rendered by default.

JSON-Status-Responses/index.html

+209
Large diffs are not rendered by default.

KNX/index.html

+8
Large diffs are not rendered by default.

LM75AD/index.html

+4
Large diffs are not rendered by default.

LMT01/index.html

+4
Large diffs are not rendered by default.

LVGL/index.html

+235
Large diffs are not rendered by default.

LVGL_API_Reference/index.html

+1
Large diffs are not rendered by default.

LVGL_Internals/index.html

+93
Large diffs are not rendered by default.

LVGL_in_10_minutes/index.html

+82
Large diffs are not rendered by default.

LedMask/index.html

+1
Large diffs are not rendered by default.

Lights/index.html

+2
Large diffs are not rendered by default.

LoRa-and-LoRaWan-Bridge/index.html

+23
Large diffs are not rendered by default.

MAX31855/index.html

+18
Large diffs are not rendered by default.

MAX7219/index.html

+15
Large diffs are not rendered by default.

MCP230xx/index.html

+68
Large diffs are not rendered by default.

MCP9808/index.html

+5
Large diffs are not rendered by default.

MFRC522/index.html

+8
Large diffs are not rendered by default.

MGC3130/index.html

+4
Large diffs are not rendered by default.

MH-Z19B/index.html

+4
Large diffs are not rendered by default.

MLX90614/index.html

+10
Large diffs are not rendered by default.

MLX90640/index.html

+11
Large diffs are not rendered by default.

MPR121/index.html

+4
Large diffs are not rendered by default.

MPU-6050/index.html

+20
Large diffs are not rendered by default.

MQTT/index.html

+30
Large diffs are not rendered by default.

MacOSX-Server/index.html

+5
Large diffs are not rendered by default.

Matter-Internals/index.html

+37
Large diffs are not rendered by default.

Matter-with-Google/index.html

+1
Large diffs are not rendered by default.

Matter/index.html

+18
Large diffs are not rendered by default.

Modbus-Bridge/index.html

+15
Large diffs are not rendered by default.

Modules/index.html

+1
Large diffs are not rendered by default.

Moisture-Sensor-and-Chirp!-Sensor/index.html

+4
Large diffs are not rendered by default.

NRF24L01/index.html

+9
Large diffs are not rendered by default.

NeoPool/index.html

+1,039
Large diffs are not rendered by default.

NodeRed/index.html

+1
Large diffs are not rendered by default.

OTA-over-SCP/index.html

+7
Large diffs are not rendered by default.

Octoprint/index.html

+1
Large diffs are not rendered by default.

OpenHASP/index.html

+1
Large diffs are not rendered by default.

OpenTherm/index.html

+80
Large diffs are not rendered by default.

P1-Smart-Meter/index.html

+54
Large diffs are not rendered by default.

PAJ7620/index.html

+4
Large diffs are not rendered by default.

PCA9557/index.html

+17
Large diffs are not rendered by default.

PCA9685/index.html

+12
Large diffs are not rendered by default.

PCF8574/index.html

+20
Large diffs are not rendered by default.

PID-Control/index.html

+3
Large diffs are not rendered by default.

PIR-Motion-Sensors/index.html

+7
Large diffs are not rendered by default.

PN532/index.html

+22
Large diffs are not rendered by default.

PS-16-DZ-Dimmer/index.html

+69
Large diffs are not rendered by default.

PWM-dimmer-switch/index.html

+1
Large diffs are not rendered by default.

PZEM-0XX/index.html

+2
Large diffs are not rendered by default.

Peripherals/index.html

+20
Large diffs are not rendered by default.

Pinouts/index.html

+1
Large diffs are not rendered by default.

PlatformIO-CLI/index.html

+1
Large diffs are not rendered by default.

PlatformIO/index.html

+1
Large diffs are not rendered by default.

Power-Monitoring-Calibration/index.html

+1
Large diffs are not rendered by default.

PowerOnState/index.html

+1
Large diffs are not rendered by default.

Project-AM312-and-Sonoff-R2/index.html

+6
Large diffs are not rendered by default.

Projector/index.html

+14
Large diffs are not rendered by default.

Python-HTTP-OTA-Server/index.html

+31
Large diffs are not rendered by default.

RCWL-0516/index.html

+1
Large diffs are not rendered by default.

RDM6300/index.html

+8
Large diffs are not rendered by default.

RF-Protocol/index.html

+6
Large diffs are not rendered by default.

RF-Transceiver/index.html

+10
Large diffs are not rendered by default.

ROI-editor/index.html

+60
Large diffs are not rendered by default.

Range-Extender/index.html

+48
Large diffs are not rendered by default.

Rule-Cookbook/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../Rules/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../Rules/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../Rules/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../Rules/">new destination</a>.
13+
</body>
14+
</html>

Rules/index.html

+524
Large diffs are not rendered by default.

SCD4x/index.html

+13
Large diffs are not rendered by default.

SDS011/index.html

+7
Large diffs are not rendered by default.

SHT30/index.html

+4
Large diffs are not rendered by default.

SK6812/index.html

+3
Large diffs are not rendered by default.

SPS30/index.html

+2
Large diffs are not rendered by default.

Safeboot/index.html

+1
Large diffs are not rendered by default.

Scripting-Cookbook/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../Scripting-Language/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../Scripting-Language/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../Scripting-Language/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../Scripting-Language/">new destination</a>.
13+
</body>
14+
</html>

Scripting-Language/index.html

+1,803
Large diffs are not rendered by default.

Securing-your-IoT-from-hacking/index.html

+49
Large diffs are not rendered by default.

Self-signed-Mosquitto/index.html

+222
Large diffs are not rendered by default.

Sensor-API/index.html

+554
Large diffs are not rendered by default.

Sensor-Configuration/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../Peripherals/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../Peripherals/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../Peripherals/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../Peripherals/">new destination</a>.
13+
</body>
14+
</html>

Serial-to-TCP-Bridge/index.html

+4
Large diffs are not rendered by default.

SetOption37/index.html

+1
Large diffs are not rendered by default.

Shutter-and-Steppers/index.html

+1
Large diffs are not rendered by default.

Smart-Meter-Interface/index.html

+3,038
Large diffs are not rendered by default.

SolaX-X1/index.html

+18
Large diffs are not rendered by default.

Sonoff-DIY/index.html

+161
Large diffs are not rendered by default.

Sonoff-SPM/index.html

+6
Large diffs are not rendered by default.

Status-LED/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../Lights/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../Lights/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../Lights/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../Lights/">new destination</a>.
13+
</body>
14+
</html>

Subscribe-&-Unsubscribe/index.html

+1
Large diffs are not rendered by default.

Supported-Modules/index.html

+1
Large diffs are not rendered by default.

Supported-Peripherals/index.html

+1
Large diffs are not rendered by default.

TFL/index.html

+307
Large diffs are not rendered by default.

TLS/index.html

+13
Large diffs are not rendered by default.

TM163x/index.html

+45
Large diffs are not rendered by default.

TM1650/index.html

+24
Large diffs are not rendered by default.

TSL2561/index.html

+5
Large diffs are not rendered by default.

TWAI/index.html

+170
Large diffs are not rendered by default.

TX2x/index.html

+34
Large diffs are not rendered by default.

TasUI/index.html

+3
Large diffs are not rendered by default.

TasmoAdmin/index.html

+1
Large diffs are not rendered by default.

Tasmota-Application/index.html

+8
Large diffs are not rendered by default.

Tasmota-Device-Manager/index.html

+1
Large diffs are not rendered by default.

Tasmota-IR/index.html

+4
Large diffs are not rendered by default.

TasmotaClient/index.html

+12
Large diffs are not rendered by default.

Telegram/index.html

+15
Large diffs are not rendered by default.

Teleinfo/index.html

+47
Large diffs are not rendered by default.

Templates/index.html

+7
Large diffs are not rendered by default.

Thermal-considerations/index.html

+1
Large diffs are not rendered by default.

Thermostat/index.html

+72
Large diffs are not rendered by default.

Time-Proportioned-Output-support/index.html

+1
Large diffs are not rendered by default.

Timers/index.html

+4
Large diffs are not rendered by default.

Timezone-Table/index.html

+1
Large diffs are not rendered by default.

Tips/index.html

+1
Large diffs are not rendered by default.

TouchPin/index.html

+1
Large diffs are not rendered by default.

Troubleshooting/index.html

+3
Large diffs are not rendered by default.

Tutorials/index.html

+1
Large diffs are not rendered by default.

Tuya-Convert/index.html

+1
Large diffs are not rendered by default.

Tuya-Protocols/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../TuyaMCU/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../TuyaMCU/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../TuyaMCU/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../TuyaMCU/">new destination</a>.
13+
</body>
14+
</html>

Tuya-generic-wifi-curtain-motor-WIP/index.html

+1
Large diffs are not rendered by default.

TuyaMCU-Devices/index.html

+1
Large diffs are not rendered by default.

TuyaMCU/index.html

+201
Large diffs are not rendered by default.

UFS/index.html

+15
Large diffs are not rendered by default.

ULP/index.html

+110
Large diffs are not rendered by default.

Universal-Display-Driver/index.html

+342
Large diffs are not rendered by default.

Upgrade/index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
2+
<!doctype html>
3+
<html lang="en">
4+
<head>
5+
<meta charset="utf-8">
6+
<title>Redirecting...</title>
7+
<link rel="canonical" href="../Upgrading/">
8+
<script>var anchor=window.location.hash.substr(1);location.href="../Upgrading/"+(anchor?"#"+anchor:"")</script>
9+
<meta http-equiv="refresh" content="0; url=../Upgrading/">
10+
</head>
11+
<body>
12+
You're being redirected to a <a href="../Upgrading/">new destination</a>.
13+
</body>
14+
</html>

Upgrading/index.html

+22
Large diffs are not rendered by default.

User-created-templates/index.html

+1
Large diffs are not rendered by default.

VEML6070/index.html

+6
Large diffs are not rendered by default.

VEML6075/index.html

+4
Large diffs are not rendered by default.

VEML7700/index.html

+4
Large diffs are not rendered by default.

VL53Lxx/index.html

+21
Large diffs are not rendered by default.

Visual-Studio-Code/index.html

+22
Large diffs are not rendered by default.

WS2812B-RGB-Shield/index.html

+1
Large diffs are not rendered by default.

WS2812B-and-WS2813/index.html

+1
Large diffs are not rendered by default.

WebUI/index.html

+8
Large diffs are not rendered by default.

White-Blend-Mode/index.html

+1
Large diffs are not rendered by default.

WifiPower/index.html

+1
Large diffs are not rendered by default.

Zigbee-CCLib-Flashing/index.html

+66
Large diffs are not rendered by default.

Zigbee-Internals/index.html

+5
Large diffs are not rendered by default.

Zigbee/index.html

+240
Large diffs are not rendered by default.

_media/A0.png

11.7 KB

_media/ADC_CT_circuit.png

4.65 KB

_media/ADCesp32.png

18.3 KB

_media/Analog0.png

1.89 KB

_media/ArduinoIDE_settings.png

7.13 KB
65.6 KB

_media/Blitzwolf_SHP6_15A.jpg

557 KB

_media/CC2530 External Antenna.png

461 KB

_media/CalentaPressure.png

298 KB

_media/DY-SV17F_datasheet.pdf

2.69 MB
Binary file not shown.

_media/ESP-01-Pin-Out.png

59.7 KB

_media/GPIO13-switch.png

5.86 KB

_media/MAX7219-tasmota-config.png

22.9 KB

_media/OptoSerial.jpg

81.3 KB

_media/Partition_Wizard.png

8.9 KB
1.48 KB

_media/Remeha1.jpg

1.76 MB
49.8 KB

_media/SWB1-COM2.jpg

462 KB

_media/TM1637-tasmota-config.png

16.4 KB

_media/TM1638-tasmota-config.png

22.1 KB

_media/TM1650-tasmota-config.png

6.65 KB

_media/TYWE3S_fullpinout.png

115 KB

_media/TYWE3S_pinout.png

138 KB

_media/TasUI.png

37.1 KB

_media/aqara.png

77.1 KB

_media/artnet/LED_Lab_Menu1.png

25.7 KB

_media/artnet/LED_Lab_Menu2.png

4.36 KB

_media/artnet/LED_Lab_Setup.png

61.4 KB
+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
AWSTemplateFormatVersion: "2010-09-09"
2+
Description: "Tasmota: create the AWS IoT policy to be used by all Tasmota devices. This policy needs to be created once per AWS Region for all Tasmota devices."
3+
4+
Parameters:
5+
RetentionPolicy:
6+
Type: String
7+
AllowedValues: [ "Delete", "Retain" ]
8+
Default: "Retain"
9+
Description: When you delete the CloudFormation template, "Delete" will also delete this policy, "Retain" will keep it
10+
MQTTPolicyName:
11+
Type: String
12+
Default: "TasmotaMqttPolicy"
13+
Description: The Name of the MQTTPolicy for Tasmota devices (leave unchanged unless you have specific needs)
14+
15+
Outputs:
16+
MqttPolicyName:
17+
Description: The name of the AWS IoT policy created
18+
Value: !If [ Retained, !Ref TasmotaMqttPolicyRetained, !Ref TasmotaMqttPolicyNotRetained ]
19+
20+
Conditions:
21+
Retained: !Equals [ !Ref RetentionPolicy, "Retain" ]
22+
NotRetained: !Not [ !Equals [ !Ref RetentionPolicy, "Retain" ] ]
23+
24+
Resources:
25+
26+
######################################################################
27+
#
28+
# The AWS IoT policy to be used by all Tasmota devices.
29+
# It needs to be created once for all.
30+
# This policy will remain if you delete the CloudFormation template
31+
#
32+
######################################################################
33+
TasmotaMqttPolicyRetained:
34+
Type: AWS::IoT::Policy
35+
Condition: Retained
36+
DeletionPolicy: Retain
37+
Properties:
38+
PolicyDocument:
39+
Version: "2012-10-17"
40+
Statement:
41+
-
42+
Effect: Allow
43+
Action: [ "iot:Connect", "iot:Publish", "iot:Subscribe", "iot:Receive" ]
44+
Resource: !Sub "arn:aws:iot:${AWS::Region}:${AWS::AccountId}:*"
45+
PolicyName: !Ref MQTTPolicyName
46+
47+
######################################################################
48+
#
49+
# This policy will be removed if you delete the CloudFormation template
50+
#
51+
######################################################################
52+
TasmotaMqttPolicyNotRetained:
53+
Type: AWS::IoT::Policy
54+
Condition: NotRetained
55+
DeletionPolicy: Delete
56+
Properties:
57+
PolicyDocument:
58+
Version: "2012-10-17"
59+
Statement:
60+
-
61+
Effect: Allow
62+
Action: [ "iot:Connect", "iot:Publish", "iot:Subscribe", "iot:Receive" ]
63+
Resource: !Sub "arn:aws:iot:${AWS::Region}:${AWS::AccountId}:*"
64+
PolicyName: !Ref MQTTPolicyName
65+

0 commit comments

Comments
 (0)