mirror of https://github.com/arendst/Tasmota.git
Updated Sonoff iFan02 (markdown)
parent
5dd0ed78fd
commit
39345cf575
|
@ -39,3 +39,35 @@ Two users report the TP16 pad lifting after soldering a wire to ground as shown
|
||||||
### Alternate Power Supply Schematic
|
### Alternate Power Supply Schematic
|
||||||
|
|
||||||
![esp8285 PINOUT](https://user-images.githubusercontent.com/24206271/43140236-857bc724-8f21-11e8-87c0-6f3688cb5eb0.gif)
|
![esp8285 PINOUT](https://user-images.githubusercontent.com/24206271/43140236-857bc724-8f21-11e8-87c0-6f3688cb5eb0.gif)
|
||||||
|
|
||||||
|
### HomeAssistant MQTT Fan config
|
||||||
|
|
||||||
|
Credit to [finity](https://community.home-assistant.io/t/sonoff-ifan02-tasmota-mqtt-fan/64083/12)
|
||||||
|
```
|
||||||
|
- platform: mqtt
|
||||||
|
name: "Master Bedroom Fan"
|
||||||
|
command_topic: "cmnd/sonoff_MBR_fan/FanSpeed"
|
||||||
|
speed_command_topic: "cmnd/sonoff_MBR_fan/FanSpeed"
|
||||||
|
state_topic: "stat/sonoff_MBR_fan/RESULT"
|
||||||
|
speed_state_topic: "stat/sonoff_MBR_fan/RESULT"
|
||||||
|
state_value_template: >
|
||||||
|
{% if value_json.FanSpeed is defined %}
|
||||||
|
{% if value_json.FanSpeed == 0 -%}0{%- elif value_json.FanSpeed > 0 -%}4{%- endif %}
|
||||||
|
{% else %}
|
||||||
|
{% if states.fan.master_bedroom_fan.state == 'off' -%}0{%- elif states.fan.master_bedroom_fan.state == 'on' -%}4{%- endif %}
|
||||||
|
{% endif %}
|
||||||
|
speed_value_template: "{{ value_json.FanSpeed }}"
|
||||||
|
availability_topic: tele/sonoff_MBR_fan/LWT
|
||||||
|
payload_off: "0"
|
||||||
|
payload_on: "4"
|
||||||
|
payload_low_speed: "1"
|
||||||
|
payload_medium_speed: "2"
|
||||||
|
payload_high_speed: "3"
|
||||||
|
payload_available: Online
|
||||||
|
payload_not_available: Offline
|
||||||
|
speeds:
|
||||||
|
- off
|
||||||
|
- low
|
||||||
|
- medium
|
||||||
|
- high
|
||||||
|
```
|
Loading…
Reference in New Issue