Hello,
I have a Sonoff BN-SZ01 led which is presently running Tasmota. The tasmota template is listed here.
Does anybody have an esphome config for this?
Thanks
Hello,
I have a Sonoff BN-SZ01 led which is presently running Tasmota. The tasmota template is listed here.
Does anybody have an esphome config for this?
Thanks
This^^
…
I rarely write code for free, but it’s the season.
This is untested but might be what you want:
#Sonoff BN-SZ01
substitutions:
device_name: sonoff-BN-SZ01
friendly_name: sonoff_BN_SZ01
esphome:
name: ${device_name}
esp8266:
board: esp01_1m
framework:
version: recommended
# Logger level "debug" is needed to get 1-Wire addresses, like the ds18b20.
logger:
level: DEBUG
ota:
safe_mode: True
# Enable Home Assistant API
api:
# Optional
# encryption:
# key: !secret key
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
status_led:
pin:
number: 13
# Web server uses a lot of RAM. If you have a lot of components and your
# device is acting strange, try commenting out this component.
#
web_server:
port: 80
# Light on GPIO12
output:
- platform: esp8266_pwm
pin: 12
frequency: 1000 Hz
id: pwm_output
light:
- platform: monochromatic
output: pwm_output
name: "Kitchen Light"
# Optional
# Get the WiFi details
text_sensor:
- platform: wifi_info
ip_address:
name: ${friendly_name} IP
ssid:
name: ${friendly_name} SSID
mac_address:
name: ${friendly_name} Mac Address
sensor:
- platform: wifi_signal
name: ${friendly_name} WiFi Level
id: ${friendly_name}_WiFi_level
update_interval: 300s
Thanks for this. It seems that the device is based on ESP8285. Will the following with it?
Here is some more information on the device. The leds are dimmable.
Same as ESP8266 with less memory. The board: is the same.