Inzwischen habe ich ein Profil von dem Gerät erstellen lassen (nach einem Dump der Firmware via Lightleak) und auch ESPHome geflasht (tuya-cloudcutter).
Inzwischen reagiert das Teil auch auf die Tasten

Jetzt stehen eine Reihe weiterer Herausforderungen an:
- ein ESPHome ins openHAB zu integrieren
- Uhrzeit holen
- eine Art Zeitsteuerung zu integrieren die dann auch einen automatisierten Offline Betrieb ermöglicht
Ich hab hier im Forum gegoogelt, aber nicht wirklich eine Anleitung/Hilfe gefunden.
Am ehesten noch hier in English https://community.openhab.org/t/esphome/71765/13
Aber ich finde nicht, wie ich das in openHAB integriere.
Derzeit sieht mein device.yaml so aus, da ist noch nicht mal mqtt drin - ich dachte das wäre Standard bei espHome !?!
Code: Alles auswählen
esphome:
name: kickstart-bk7231n
bk72xx:
board: generic-bk7231n-qfn32-tuya
logger:
web_server:
captive_portal:
mdns:
api:
password: ""
ota:
password: ""
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
button:
- platform: restart
name: Restart
debug:
update_interval: 30s
text_sensor:
- platform: debug
reset_reason:
name: Reset Reason
- platform: libretiny
version:
name: LibreTiny Version
sensor:
- platform: uptime
name: Uptime
output:
- platform: gpio
id: output_led_1
pin: P14
- platform: gpio
id: output_led_3
pin: P23
light:
- platform: binary
id: light_switch_1
output: output_led_1
- platform: binary
id: light_switch_3
output: output_led_3
binary_sensor:
- platform: gpio
id: binary_switch_1
pin:
number: P24
inverted: true
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle: switch_1
- platform: gpio
id: binary_switch_3
pin:
number: P7
inverted: true
mode: INPUT_PULLUP
on_press:
then:
- switch.toggle: switch_3
switch:
- platform: gpio
id: switch_1
name: Relay 1
pin: P6
on_turn_on:
- light.turn_on: light_switch_1
on_turn_off:
- light.turn_off: light_switch_1
- platform: gpio
id: switch_3
name: Relay 3
pin: P9
on_turn_on:
- light.turn_on: light_switch_3
on_turn_off:
- light.turn_off: light_switch_3
status_led:
pin: P26