Skip to content

Commit 479dbea

Browse files
committed
add .gitignore
1 parent 7bc634b commit 479dbea

File tree

482 files changed

+11897
-12
lines changed

Some content is hidden

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

482 files changed

+11897
-12
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.vscode
2+
.git

.vscode/settings.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

docs/Commands.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ Most used ones are: `space` = `%20` and `;` = `%3B`
5353

5454
If you have set a password for web user interface access, this must be included (in plaintext) in the URL of the HTTP request, like so:
5555
```
56-
http://<ip>/cm?&user=<username>&password=<password>&cmnd=Power%20On
56+
http://<ip>/cm?user=<username>&password=<password>&cmnd=Power%20On
5757
```
5858
### in Console in the Web UI
5959

docs/Device-groups.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
1-
[remoteMarkdownUrl](https://raw.githubusercontent.com/arendst/Tasmota/v8.2.0/Device_Groups.md)
1+
# Device Groups
2+
3+
The device groups module provides a framework to allow multiple devices to be in a group with values such as power, light color/temperature/brightness, PWM values, sensor values, etc. shared with other devices in the group. For example, with multiple light modules in a device group, the light settings can be changed on one module and the settings will automatically be changed on the other light modules. Dimmer switch modules could be in a device group with light modules and the dimmer switch could control the power, brightness and colors of all the lights in the group. Multiple dimmer switches could be in a device group to form a 3-way/4-way dimmer switch.
4+
5+
UDP multicasts, followed by UDP unicasts if necessary, are used to send updates to all devices so updates are fast. There is no need for an MQTT server but all the devices in a group must be on the same IP network.
6+
7+
To include device groups support in the build, define USE_DEVICE_GROUPS in your user_config_override. This adds 3.5K to the code size. All devices in a group must be running firmware with device group support and have device groups enabled.
8+
9+
To enable device groups, execute the command SetOption85 1.
10+
11+
12+
## Device Groups Operation
13+
14+
The device group name is the MQTT group topic set with the GroupTopic command. All devices in the same IP network with the same group topic are in the same group. Some modules may define additional device groups. For example, if Remote Device Mode is enabled, the PWM Dimmer module defines three devices groups.
15+
16+
The items that are sent to the group and the items that are received from the group are selected with the DevGroupShare command. By default all items are sent and received from the group. An example of when the DevGroupShare command would be used is when you have a group of lights that you control with a dimmer switch and home automation software. You want the dimmer switch to be able to control all items. The home automation software controls each light individually. When it controls the whole group, it actually sends command to each light in the group. If you use the home automation software to turn an individual light on or off or change it’s brightness, color or scheme, you do not want the change to be replicated to the other lights. In this case, you would set the incoming and outgoing item masks to 0xffffffff (all items) on the dimmer switch (DevGroupShare 0xffffffff,0xffffffff) and set the incoming item mask to 0xffffffff and outgoing item mask to 0 on all the lights (DevGroupShare 0xffffffff,0).
17+
18+
19+
### Commands
20+
21+
22+
<table>
23+
<tr>
24+
<td><strong>Command</strong>
25+
</td>
26+
<td><strong>Parameters</strong>
27+
</td>
28+
</tr>
29+
<tr>
30+
<td>DevGroupShare
31+
</td>
32+
<td>&lt;in>,&lt;out> = set incoming and outgoing shared item mask (default = 0xffffffff,0xffffffff)<br>
33+
1 = Power, 2 = Light brightness, 4 = Light fade/speed, 8 = Light scheme, 16 = Light color, 32 = Dimmer settings (presets)
34+
</td>
35+
</tr>
36+
<tr>
37+
<td>GroupTopic&lt;x>
38+
</td>
39+
<td>1 = reset device group &lt;x> MQTT group topic to firmware default (MQTT_GRPTOPIC) and restart<br>
40+
&lt;value> = set device group &lt;x> MQTT group topic (32 chars max) and restart
41+
</td>
42+
</tr>
43+
</table>

docs/IR-Remote.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ This covers only the basic IR protocols. Read [Complete IR Remote Protocols](Tas
5656

5757
[IR Send RAW configuration and use](IRSend-RAW-Encoding)
5858

59-
User maintained [codes database for IR](Codes-for-IR-Remotes-(for-YTF-IR-Bridge))
59+
User maintained [codes database for IR](Codes-for-IR-Remotes)
6060

6161
[Linux Infrared Remote Control (LIRC)](http://www.lirc.org/) for more information.
6262

docs/PWM-dimmer-switch.md

Lines changed: 94 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,94 @@
1-
[remoteMarkdownUrl](https://raw.githubusercontent.com/arendst/Tasmota/development/PWM_Dimmer.md)
1+
# PWM Dimmer
2+
3+
The PWM Dimmer module adds support for Martin Jerry/acenx/Tessan/NTONPOWER SD0x PWM dimmer switches. The brightness of the load for these dimmers is controlled by a PWM GPIO pin. They typically have power, up and down buttons, a powered-on LED, five brightness LEDs and another status LED. Examples are:[ https://www.amazon.com/dp/B07FXYSVR1](https://www.amazon.com/dp/B07FXYSVR1),[ https://www.amazon.com/dp/B07V26Q3VD](https://www.amazon.com/dp/B07V26Q3VD),[ https://www.amazon.com/dp/B07K67D43J](https://www.amazon.com/dp/B07K67D43J),[ https://www.amazon.com/dp/B07TTGFWFM](https://www.amazon.com/dp/B07TTGFWFM)
4+
5+
To include PWM dimmer support in the build, define USE_PWM_DIMMER in your user_config_override. This adds 4.5K to the code size. The light module is not required for PWM dimmer operation so you can #undef USE_LIGHT to reduce the firmware bin size.
6+
7+
To enable PWM dimmer operation, select the PWM Dimmer module.
8+
9+
10+
## PWM Dimmer Operation
11+
12+
Pressing and releasing the power button toggles the power on/off. If the toggle turns the power on, the load is returned to the last brightness it was adjusted to. If Fade is enabled, the load is faded on/off at the rate defined by the Speed setting.
13+
14+
When the power is on, holding the down or up button decreases/increases the brightness. The brightness can also be changed using just the power button. When the power is on, holding the power button alternately increases or decreases the brightness. Initially, holding the power button increases the brightness. Releasing and then holding the power button again decreases the brightness.
15+
16+
When the power is off, pressing and releasing the down or up button turns the power on at a temporary brightness of the low/high levels set by the DimmerPreset command. Turning the power on at the low preset can also be accomplished by holding the power button while the power is off. The dimmer presets are intended to enable quickly turning on a light to a dim or bright level without changing the normal desired brightness. Turning the power on to a preset does not change the brightness the load will be set to when the switch is turned on the next time. For example, if the light is on and you adjust the brightness to 80 and then turn the light off, when you turn it back on, the brightness will return to 80. If you turn the power off again and then press the down button, the light will be turned on with a brightness of the low preset. If you then turn the light off and on again, the brightness will return to 80.
17+
18+
When the power is off, holding the down or up button publishes an MQTT EVENT command. The topic follows the format of the Full Topic with a prefix of Event (ex. cmnd/LightSwitch1/EVENT). The MQTT payload is Trigger#, where # is 1 if the down button is held or 2 if the up button is held. These triggers can be used in rules on remote devices (ON Event#Trigger1) or by automation software to trigger automations such as scene changes. For example, the Event topic Trigger1 payload could trigger the automation software to turn on the previous scene in a list and the Trigger2 payload could trigger the automation software to turn on the next scene in a list.
19+
20+
If there are LED’s defined in the template, they are turned on to indicate the current brightness. More LEDs are turned on at higher brightnesses. The LedTimeout command enables/disables an LED timeout. If LED timeout is enabled, the LED’s turn off five seconds after the last change in brightness. Note that the lowest LED and the blue power LED are always on when the power is on. The LED timeout can also be enabled/disabled by holding the power button while tapping (pressing and releasing quickly) the down button.
21+
22+
The LEDLink LED can be used as a nightlight/powered-off indicator. The PoweredOffLed command enables/disables turning the LEDLink LED on when the power is off. The powered-off indicator can also be enabled/disabled by holding the power button and tapping the up button.
23+
24+
Holding the power button, tapping the down button and then tapping or holding the down or up button sends a device group message to set RGB lights in the device group to the previous/next fixed color. The command is sent/value is adjusted once every .5 seconds for as long as the button is held. The color sequence as defined by the Light module is red, green, blue, orange, light green, light blue, amber, cyan, purple, yellow, pink, white using RGB channels, white using CT channels.
25+
26+
Holding the power button, tapping the up button and then tapping or holding the down or up button publishes an MQTT Event command. The command is sent/value is adjusted once every .5 seconds for as long as the button is held. The MQTT topic is as described above. The MQTT payload is Trigger#, where # is 3 if the down button is held or 4 if the up button is held.
27+
28+
Holding the down or up button alone for over 10 seconds executes the WiFiConfig 2 command.
29+
30+
Pressing and releasing any button publishes an MQTT TOGGLE command for the button. Holding a button publishes an MQTT HOLD command followed by an MQTT OFF command when the button is released.
31+
32+
When Device Groups are enabled, the PWM Dimmer brightness presets are kept in sync across all switches in the group. The powered-off LED and LED timeout settings are specific to each switch. Changing them does not replicate the change to the other switches in the group.
33+
34+
### Commands
35+
36+
<table>
37+
<tr>
38+
<td><strong>Command</strong>
39+
</td>
40+
<td><strong>Parameters</strong>
41+
</td>
42+
</tr>
43+
<tr>
44+
<td>BriPreset
45+
</td>
46+
<td> &lt;low>,&lt;high> = set brightness low and high presets<br>
47+
1..255 = set brightness preset<br>
48+
+ = increase brightness preset<br>
49+
- = decrease brightness preset
50+
</td>
51+
</tr>
52+
<tr>
53+
<td>SetOption86
54+
</td>
55+
<td>Set brightness LED timeout<br>
56+
0 = disable timeout (default)<br>
57+
1 = enable timeout
58+
</td>
59+
</tr>
60+
<tr>
61+
<td>SetOption87
62+
</td>
63+
<td>Set powered-off LED (nightlight)<br>
64+
0 = disable powered-off LED (default)<br>
65+
1 = enable powered-off LED
66+
</td>
67+
</tr>
68+
<tr>
69+
<td>SetOption88
70+
</td>
71+
<td>Set remote device mode<br>
72+
0 = disable remote device mode(default)<br>
73+
1 = enable remote device mode
74+
</td>
75+
</tr>
76+
</table>
77+
78+
79+
80+
### Remote Device Mode
81+
82+
Remote device mode allows PWM Dimmer switches to control remote devices. With remote device mode enabled, each button controls a different device. Note that dimmer switches with toggle-style down/up buttons have limited functionality as remote device mode switches because you can not push the down and up buttons simultaneously.
83+
84+
To include remote device mode support in the build, define USE_PWM_DIMMER_REMOTE in your user_config_override. Remote device mode support requires device group support so USE_DEVICE_GROUPS is automatically defined if USE_PWM_DIMMER_REMOTE is defined. Remote device mode support adds 0.7K to the code size in addition to the code size required for device groups support.
85+
86+
To enable remote device mode, execute the command SetOption88 1 (the device will restart). Each remote device must be running firmware with device group support and have remote device support enabled. The remote devices do not need to be built with PWM dimmer support nor do they need to be switches.
87+
88+
If a remote device is a PWM dimmer, the device acts like a 3-way dimmer switch would and may or may not have a load connected to it. It’s also possible to use a PWM dimmer switch without a load to act as a wall switch to control the power, brightness and color of one or more smart lights with Tasmota with device group support loaded on them.
89+
90+
With remote device mode is enabled, button 1 is the power button for the local device while buttons 2 and 3 are the power buttons for remote devices. Group names for buttons 2 and 3 are set by the GroupTopic2 and GroupTopic3 commands respectively. Note that the button numbers are defined by the module template and can be in any physical order on the switch (button 1 can be defined as the top button, the middle button or the bottom button). Button combinations that publish MQTT Event commands use a topic in the format cmnd/%group-topic%/EVENT.
91+
92+
Pressing and releasing a power button toggles the power on all devices in the group assigned to the button. When the power is on, holding the button alternately increases or decreases the brightness. When the power is off, holding the button turns the power on at a temporary brightness of the low level set by the BriPreset command.
93+
94+
While holding a power button, the other two buttons act like the down and up buttons for the remote device. All the functions performed by the down and up buttons in non-remote device mode are available in remote device mode. While holding button 1, button 2 performs the functions of the down button and button 3 performs the functions of the up button. While holding button 2, button 1 performs the functions of the down button and button 3 performs the functions of the up button. While holding button 3, button 1 performs the functions of the down button and button 2 performs the functions of the up button.

docs/devices/YTF-IR-Bridge.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ GPIO | Component | Description
2727
14 | IRsend (8) | IR Transmitter
2828

2929
## IR Codes
30-
[IR Code List](Codes-for-IR-Remotes-(for-YTF-IR-Bridge))
30+
[IR Code List](Codes-for-IR-Remotes)

mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
site_name: Tasmota
22
repo_name: 'arendst/tasmota'
33
repo_url: 'https://github.com/arendst/tasmota'
4-
edit_uri: 'https://github.com/tasmota/docs/blob/master/'
4+
edit_uri: 'https://github.com/tasmota/docs/blob/master/docs/'
55
# copyright: 'Copyright &copy; 2020 Tasmota Development Team'
66
# use_directory_urls: false
77
theme:
@@ -197,4 +197,4 @@ nav:
197197
- Troubleshooting.md
198198
- Device-Recovery.md
199199
- Contributing: Contributing.md
200-
- Discord Community: "//discord.gg/Ks2Kzd4"
200+
- Discord Community: //discord.gg/Ks2Kzd4 "target=_blank"

site/#/index.html

Lines changed: 11 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)