@macek - taka mniejsza konkurencja rośnie dla Kincony
Tematy powiązane:
W dokumentacji SDK są również gotowe konfiguracje dla HA pod MQTT.
@macek - taka mniejsza konkurencja rośnie dla Kincony
Tematy powiązane:
W dokumentacji SDK są również gotowe konfiguracje dla HA pod MQTT.
Analizowałem już wcześniej ich produkty, tak samo jak rozwiązania RobotDyn (https://pl.aliexpress.com/store/1950989), oni akurat mają dodatkowe moduły rozszerzeń na szynę DIN - https://rocketcontroller.com/product-category/relays-esp32r4/, wada: działa tylko po Wi-Fi. Jednego mi zawsze brakuje w tych wszystkich rozwiązaniach - dodatkowego modułu z samymi wejściami z transoptorami na szynę I2C, takiego elementu:
P.S. Kincony nawet chce wydać własny firmware pod moduły KC868-A:
Zamówiłem jedną płytkę w obudowie. Darmowa wysyłka z Niemiec w rozsądnej cenie (8CH ETH WIFI 485 CAS, GERMANY).
Dam znać jak dotrze, jak to wygląda w praktyce.
Dorzucam linka do losowego sklepu z (chyba) tym produktem
podstawowa dokumentacja
https://www.dingtian-tech.com/sdk/relay_sdk.zip
PS
Wydzielam to jako osobny wątek.
Witam. Skorzystałem z dokumentacji od Dingtian (czyli gotowca do wklejenia w conf.yaml) i działa dobrze. Wklejam kawalek kodu:
mqtt:
switch:
- unique_id: Dingtian-relay29202-all
name: "Dingtian-Relay-Switch All ON/OFF"
command_topic: "/dingtian/relay29202/in/control"
availability:
- topic: "/dingtian/relay29202/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"ON/OFF","idx":"1","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"2","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"3","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"4","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"5","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"6","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"7","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"8","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"9","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"10","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"11","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"12","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"13","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"14","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"15","status":"ON","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"16","status":"ON","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"1","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"2","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"3","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"4","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"5","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"6","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"7","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"8","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"9","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"10","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"11","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"12","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"13","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"14","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"15","status":"OFF","time":"0","pass":"0"}
{"type":"ON/OFF","idx":"16","status":"OFF","time":"0","pass":"0"}'
optimistic: false
qos: 0
retain: false
# relay1~8
- unique_id: Dingtian-relay29202-r1
name: "Dingtian-Switch1"
state_topic: "/dingtian/relay29202/out/r1"
command_topic: "/dingtian/relay29202/in/r1"
availability:
- topic: "/dingtian/relay29202/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
Trochę odkopuję temat, i jak to wygląda?
Witam!
Wiem że pytanie dla niektórych może okazać się banalne lecz jestem dopiero początkującym użytkownikiem HA. Czy kod wskazany powyżej należy wstawić do pliku configuration.yaml?
Jeśli Twoja konfiguracja mqtt jest w katalogu głównym (/homeassistant/configuration.yaml) to tak, chyba, że masz przeniesioną konfigurację do innej lokalizacji np. mqtt: !include mqtt.yaml
to tam gdzie ją skonfigurowałeś.
Dziękuje za podpowiedź