mirror of https://github.com/arendst/Tasmota.git
Updated Home Assistant (markdown)
parent
11c8fd81b5
commit
3f2a94de33
|
@ -214,7 +214,7 @@ Display the WiFi signal strength published from each telemetry message (default
|
|||
payload_not_available: "Offline"
|
||||
```
|
||||
|
||||
### Switch
|
||||
### Manually add Switch
|
||||
|
||||
Add the device as a switch to HA by updating the configuration file.
|
||||
```yaml
|
||||
|
@ -247,7 +247,7 @@ https://home-assistant.io/components/switch.mqtt/
|
|||
|
||||
https://home-assistant.io/components/light.mqtt/
|
||||
|
||||
### DHT22 sensor
|
||||
### Manually add DHT22 sensor
|
||||
|
||||
#### Periodical updates
|
||||
|
||||
|
@ -299,7 +299,7 @@ sensor:
|
|||
```
|
||||
The Sonoff-Tasmota command could be initiated by a mosquitto mqtt pub command on ``mosquitto_pub -h localhost -t 'cmnd/sonoff/status' -m '10'``
|
||||
|
||||
### HTU and BMP I2C sensors
|
||||
### Manually add HTU and BMP I2C sensors
|
||||
|
||||
HTU21 and BMP280 sensors connected to ``sonoff2`` send messages like:
|
||||
```
|
||||
|
@ -315,7 +315,7 @@ sensor:
|
|||
unit_of_measurement: "hPa"
|
||||
```
|
||||
|
||||
### Sonoff Pow Energy sensors
|
||||
### Manually add Sonoff Pow Energy sensors
|
||||
|
||||
#### Periodical updates
|
||||
|
||||
|
@ -386,7 +386,38 @@ sensor:
|
|||
value_template: "{{ value_json.StatusPWR.Factor }}"
|
||||
```
|
||||
|
||||
### RGB Lights
|
||||
### Manually add Dimmer / PWM LED
|
||||
Change the brightness template entities to match your entity name.
|
||||
|
||||
configuration.yaml
|
||||
```yaml
|
||||
- platform: mqtt
|
||||
name: "TuyaDimTest"
|
||||
state_topic: "stat/TuyaDimTest/POWER"
|
||||
command_topic: "cmnd/TuyaDimTest/POWER"
|
||||
availability_topic: "tele/TuyaDimTest/LWT"
|
||||
brightness_state_topic: "stat/TuyaDimTest/RESULT"
|
||||
brightness_command_topic: "cmnd/TuyaDimTest/Dimmer"
|
||||
brightness_scale: 100
|
||||
brightness_value_template: >
|
||||
{% if value_json.Dimmer is defined %}
|
||||
{{ value_json.Dimmer }}
|
||||
{% else %}
|
||||
{% if state_attr('light.tuyadimtest','brightness') == none %}
|
||||
0
|
||||
{% else %}
|
||||
{{ state_attr('light.tuyadimtest','brightness') / 255 * 100 }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
qos: 1
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
```
|
||||
|
||||
### Manually add RGB Lights
|
||||
#### AiLight
|
||||
|
||||
Configure the module as "AiLight".
|
||||
|
@ -410,7 +441,7 @@ light:
|
|||
retain: false
|
||||
```
|
||||
|
||||
#### Led WS2812B
|
||||
#### Manually add Led WS2812B
|
||||
|
||||
Configure any of the pins of the module as "WS2812B" and on the Console run `SetOption15 1`.
|
||||
|
||||
|
@ -460,7 +491,7 @@ light:
|
|||
- 12
|
||||
```
|
||||
|
||||
### RGBW Lights
|
||||
### Manually add RGBW Lights
|
||||
|
||||
#### MagicHome Led Controller
|
||||
|
||||
|
@ -505,7 +536,7 @@ light:
|
|||
payload_off: "OFF"
|
||||
```
|
||||
|
||||
### RGBWW Lights
|
||||
### Manually add RGBWW Lights
|
||||
|
||||
#### Sonoff B1
|
||||
https://community.home-assistant.io/t/sonoff-b1-led-wifi-bulb-template-error-in-log/28690/9
|
||||
|
@ -607,7 +638,7 @@ binary_sensor:
|
|||
value_template: '{{ value_json.RfReceived.RfKey }}'
|
||||
```
|
||||
|
||||
### iFan02
|
||||
### Manually add iFan02 - Example 1
|
||||
|
||||
From @kbickar in [Support for Ifan02 #2839](https://github.com/arendst/Sonoff-Tasmota/issues/2839)`
|
||||
|
||||
|
@ -643,7 +674,7 @@ Modified by @finity69x2 in [Support for Ifan02 #2839](https://github.com/arendst
|
|||
- high
|
||||
```
|
||||
|
||||
### S31
|
||||
### Manually add S31
|
||||
configuration.yaml
|
||||
```yaml
|
||||
switch:
|
||||
|
@ -737,7 +768,7 @@ Sonoff S31_02:
|
|||
- sensor.s31_02_energy_total
|
||||
```
|
||||
|
||||
### iFan02
|
||||
### Manually add iFan02 - Example 2
|
||||
Combination of configs found in the support thread:
|
||||
[Support for Ifan02 #2839](https://github.com/arendst/Sonoff-Tasmota/issues/2839)
|
||||
and Home Assistant forum:
|
||||
|
@ -793,34 +824,3 @@ Pat Ceiling Fan:
|
|||
- fan.pat_ceiling_fan
|
||||
- light.pat_ceiling_light
|
||||
```
|
||||
|
||||
### Dimmer / PWM LED
|
||||
Change the brightness template entities to match your entity name.
|
||||
|
||||
configuration.yaml
|
||||
```yaml
|
||||
- platform: mqtt
|
||||
name: "TuyaDimTest"
|
||||
state_topic: "stat/TuyaDimTest/POWER"
|
||||
command_topic: "cmnd/TuyaDimTest/POWER"
|
||||
availability_topic: "tele/TuyaDimTest/LWT"
|
||||
brightness_state_topic: "stat/TuyaDimTest/RESULT"
|
||||
brightness_command_topic: "cmnd/TuyaDimTest/Dimmer"
|
||||
brightness_scale: 100
|
||||
brightness_value_template: >
|
||||
{% if value_json.Dimmer is defined %}
|
||||
{{ value_json.Dimmer }}
|
||||
{% else %}
|
||||
{% if state_attr('light.tuyadimtest','brightness') == none %}
|
||||
0
|
||||
{% else %}
|
||||
{{ state_attr('light.tuyadimtest','brightness') / 255 * 100 }}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
qos: 1
|
||||
payload_on: "ON"
|
||||
payload_off: "OFF"
|
||||
payload_available: "Online"
|
||||
payload_not_available: "Offline"
|
||||
retain: false
|
||||
```
|
Loading…
Reference in New Issue