regnets
(Andreas)
April 24, 2025, 6:16pm
1
I got myself a few starry sky projectors from Amazon.
I replaced theWB3S with an ESP12F board and thought it would be as easy as just switching some GPIO Pins to trigger nebula, stars and moon, however it seems that i can only switch on the nebula lights (rgb) however these are activating the motor, stars and moon as well. After inspecting the pcb there is a
STM8S003F3 - Mainstream Value line 8-bit MCU with 8 Kbytes Flash, 16 MHz CPU, integrated EEPROM, STM8S003F3P6, STM8S003F3P6TR, STM8S003F3U6TR, STMicroelectronics
onboard and its most possible that this includes somekind of firmware from tuya and i need to communicate with it through serial.
Where do i start now?
Attached some pictures for reference.
Karosm
(Karosm)
April 24, 2025, 7:16pm
2
regnets:
Where do i start now?
I don’t know but probably it has been used as some kind of port expander.
regnets
(Andreas)
April 24, 2025, 7:26pm
3
This is were i am currently at:
substitutions:
name: Valeries Zimmer Sternenhimmel
esphome:
name: valeries-zimmer-sternenhimmel
friendly_name: $name
esp8266:
board: esp01_1m
logger:
baud_rate: 0
level: DEBUG
api:
ota:
- platform: esphome
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: $name
captive_portal:
web_server:
port: 80
uart:
baud_rate: 57600
tx_pin: GPIO1
rx_pin: GPIO3
tuya:
switch:
- platform: "tuya"
name: "Power"
switch_datapoint: 20
light:
- platform: rgb
name: $name Licht
red: GPIO4
green: GPIO12
blue: GPIO14
restore_mode: ALWAYS_OFF
default_transition_length: 0.4s
effects:
- random:
name: Random
transition_length: 5s
update_interval: 5s
- random:
name: Random Slow
transition_length: 10s
update_interval: 5s
- pulse:
name: "Fast Pulse"
transition_length: 0.5s
update_interval: 0.5s
min_brightness: 0%
max_brightness: 100%
- pulse:
name: "Slow Pulse"
transition_length: 500ms
update_interval: 2s
- pulse:
name: "Asymmetrical Pulse"
transition_length:
on_length: 1s
off_length: 500ms
update_interval: 1.5s
- flicker:
name: Flicker
alpha: 95%
intensity: 1.5%
output:
- platform: esp8266_pwm
id: GPIO4
pin: GPIO4
- platform: esp8266_pwm
id: GPIO12
pin: GPIO12
- platform: esp8266_pwm
id: GPIO14
pin: GPIO14
text_sensor:
- platform: wifi_info
ssid:
name: "SSID"
ip_address:
name: "IP Address"
mac_address:
name: "MAC Address"
sensor:
- platform: wifi_signal
name: "WiFi Signal dB"
id: wifi_signal_db
update_interval: 60s
entity_category: "diagnostic"
- platform: uptime
name: "Uptime"
unit_of_measurement: minutes
filters:
- lambda: return x / 60.0;
entity_category: "diagnostic"
However currently i always get the message:
“21:25:55 [E] [tuya:464]
Initialization failed at init_state 0”
I tried already different baud rates (9600, 57600, 115200) and GPIO Pins (3,1; 1,3).