MQTT a Home assistant po lopatě pro blbce
Diskuze, rady a návody ohledně HomeAssistant
-
- Příspěvky: 458
- Registrován: čtv kvě 07, 2020 2:35 am
MQTT a Home assistant po lopatě pro blbce
Chtěl bych požádat člověka, nebo lidi, co tomu rozumí, zdali by to tady nevyložili nějak po lopatě.
Mám HA a chtěl bych k němu připojit relé desku, která podporuje HA a MQTT. Na webu té desky je tohleto:
Jsem z toho ouplný jelen, co tam napsat, co napsat a kam do Home assistanta.
Nechápu co se připojuje k čemu, jestli ta relé deska k HA, nebo HA k relé desce, prostě mi pořád uniká ten princip.
Byl bych moc vděčný člověku, co mě to vyloží tak, aby to pochopil i blbec jako já.
Mám HA a chtěl bych k němu připojit relé desku, která podporuje HA a MQTT. Na webu té desky je tohleto:
Jsem z toho ouplný jelen, co tam napsat, co napsat a kam do Home assistanta.
Nechápu co se připojuje k čemu, jestli ta relé deska k HA, nebo HA k relé desce, prostě mi pořád uniká ten princip.
Byl bych moc vděčný člověku, co mě to vyloží tak, aby to pochopil i blbec jako já.
7,5 kWp
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
-
- Příspěvky: 5451
- Registrován: pát úno 13, 2015 2:24 pm
- Lokalita: SO, SK
- Bydliště: SO, SK
Re: MQTT a Home assistant po lopatě pro blbce
Kde bezi broker ? Mimo HA alebo v HA ?
https://www.youtube.com/watch?v=dqTn-Gk4Qeo&t=11s
https://www.youtube.com/watch?v=7bJnzKhEZbA
https://www.youtube.com/watch?v=dqTn-Gk4Qeo&t=11s
https://www.youtube.com/watch?v=7bJnzKhEZbA
DC-AC inverter REC Lion DC-AC ESP32 DIY inv. 15 GB za sekundu DIY MPPT Holder
Zjedz vsetko, co si kupil, v obchode a netreba ti tasku, auto ci chladnicku.
Zjedz vsetko, co si kupil, v obchode a netreba ti tasku, auto ci chladnicku.
-
- Příspěvky: 3947
- Registrován: úte dub 23, 2013 10:21 am
- Lokalita: Kousek od Lysé nad Labem
- Systémové napětí: 48V
- Výkon panelů [Wp]: 46000
- Kapacita baterie [kWh]: 40
- Chci prodávat energii: NE
- Chci/Mám dotaci: NE
- Bydliště: Kousek od Lysé nad Labem
Re: MQTT a Home assistant po lopatě pro blbce
1. Nainstaluješ do HA Mosquitto broker - já mám nastavení:
2. Jeho nastavení vložíš do nastavení toho tvého relay boardu. Jako příklad tady mám co ukládám do Shelly:
3. Do HA configuration.yaml vložíš kód, který bys měl mít od dodavatele tvého relay boardu. Já mám podobný a u něj je tam vloženo toto (u některých relátek jsem nastavení změnil, protože jsem chtěl, aby měla převrácené ON/OFF chování):Kód: Vybrat vše
# example relay board SN is 100,then replace "relay0" with "relay100"
switch:
- unique_id: Dingtian-relay13756-all
name: "Dingtian-relay13756 Switch0 All ON/OFF"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/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"}'
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"}'
optimistic: false
qos: 0
retain: false
# relay1~8
- unique_id: Dingtian-relay13756-r1
name: "Dingtian-relay13756 Switch1"
state_topic: "/dingtian/relay13756/out/r1"
command_topic: "/dingtian/relay13756/in/r1"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "OFF"
payload_off: "ON"
state_on: "OFF"
state_off: "ON"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r2
name: "Dingtian-relay13756 Switch2"
state_topic: "/dingtian/relay13756/out/r2"
command_topic: "/dingtian/relay13756/in/r2"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "OFF"
payload_off: "ON"
state_on: "OFF"
state_off: "ON"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r3
name: "Dingtian-relay13756 Switch3"
state_topic: "/dingtian/relay13756/out/r3"
command_topic: "/dingtian/relay13756/in/r3"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r4
name: "Dingtian-relay13756 Switch4"
state_topic: "/dingtian/relay13756/out/r4"
command_topic: "/dingtian/relay13756/in/r4"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r5
name: "Dingtian-relay13756 Switch5"
state_topic: "/dingtian/relay13756/out/r5"
command_topic: "/dingtian/relay13756/in/r5"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r6
name: "Dingtian-relay13756 Switch6"
state_topic: "/dingtian/relay13756/out/r6"
command_topic: "/dingtian/relay13756/in/r6"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r7
name: "Dingtian-relay13756 Switch7"
state_topic: "/dingtian/relay13756/out/r7"
command_topic: "/dingtian/relay13756/in/r7"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r8
name: "Dingtian-relay13756 Switch8"
state_topic: "/dingtian/relay13756/out/r8"
command_topic: "/dingtian/relay13756/in/r8"
availability:
- topic: "/dingtian/relay13756/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
# delay-relay1~8
# - unique_id: Dingtian-relay13756-r1-delay_mutual_20s
# name: "Dingtian-relay13756 Switch1 Delay mutual 20S OFF Switch2"
# state_topic: "/dingtian/relay13756/out/r1"
# command_topic: "/dingtian/relay13756/in/control"
# availability:
# - topic: "/dingtian/relay13756/out/lwt_availability"
# payload_available: "online"
# payload_not_available: "offline"
# payload_on: '{"type":"DELAY","idx":"1","status":"ON","time":"20","pass":"0"},
# {"type":"ON/OFF","idx":"2","status":"OFF","time":"0","pass":"0"}'
# payload_off: '{"type":"ON/OFF","idx":"1","status":"OFF","time":"0","pass":"0"}'
# state_on: "ON"
# state_off: "OFF"
# optimistic: false
# qos: 0
# retain: false
# - unique_id: Dingtian-relay13756-r2-delay_mutual_20s
# name: "Dingtian-relay13756 Switch2 Delay mutual 20S OFF Switch1"
# state_topic: "/dingtian/relay13756/out/r2"
# command_topic: "/dingtian/relay13756/in/control"
# availability:
# - topic: "/dingtian/relay13756/out/lwt_availability"
# payload_available: "online"
# payload_not_available: "offline"
# payload_on: '{"type":"DELAY","idx":"2","status":"ON","time":"20","pass":"0"},
# {"type":"ON/OFF","idx":"1","status":"OFF","time":"0","pass":"0"}'
# payload_off: '{"type":"ON/OFF","idx":"2","status":"OFF","time":"0","pass":"0"}'
# state_on: "ON"
# state_off: "OFF"
# optimistic: false
# qos: 0
# retain: false
- unique_id: Dingtian-relay13756-r3-delay_mutual_20s
name: "Dingtian-relay13756 Switch3 mutual 20S OFF Switch4"
state_topic: "/dingtian/relay13756/out/r3"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"3","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"4","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"3","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r4-delay_mutual_20s
name: "Dingtian-relay13756 Switch4 mutual 20S OFF Switch3"
state_topic: "/dingtian/relay13756/out/r4"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"4","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"3","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"4","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r5-delay_mutual_20s
name: "Dingtian-relay13756 Switch5 mutual 20S OFF Switch6"
state_topic: "/dingtian/relay13756/out/r5"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"5","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"6","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"5","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r6-delay_mutual_20s
name: "Dingtian-relay13756 Switch6 mutual 20S OFF Switch5"
state_topic: "/dingtian/relay13756/out/r6"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"6","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"5","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"6","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r7-delay_mutual_20s
name: "Dingtian-relay13756 Switch7 mutual 20S OFF Switch8"
state_topic: "/dingtian/relay13756/out/r7"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"7","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"8","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"7","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r8-delay_mutual_20s
name: "Dingtian-relay13756 Switch8 mutual 20S OFF Switch7"
state_topic: "/dingtian/relay13756/out/r8"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"8","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"7","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"8","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
# jogging-relay1~8
# - unique_id: Dingtian-relay13756-r1-jogging-500ms
# name: "Dingtian-relay13756 Switch1 Delay 500ms"
# state_topic: "/dingtian/relay13756/out/r1"
# command_topic: "/dingtian/relay13756/in/control"
# availability:
# - topic: "/dingtian/relay13756/out/lwt_availability"
# payload_available: "online"
# payload_not_available: "offline"
# payload_on: '{"type":"JOGGING","idx":"1","status":"ON","time":"5","pass":"0"}'
# payload_off: '{"type":"JOGGING","idx":"1","status":"OFF","time":"5","pass":"0"}'
# state_on: "ON"
# state_off: "OFF"
# optimistic: false
# qos: 0
# retain: false
# - unique_id: Dingtian-relay13756-r2-jogging-500ms
# name: "Dingtian-relay13756 Switch2 Delay 500ms"
# state_topic: "/dingtian/relay13756/out/r2"
# command_topic: "/dingtian/relay13756/in/control"
# availability:
# - topic: "/dingtian/relay13756/out/lwt_availability"
# payload_available: "online"
# payload_not_available: "offline"
# payload_on: '{"type":"JOGGING","idx":"2","status":"ON","time":"5","pass":"0"}'
# payload_off: '{"type":"JOGGING","idx":"2","status":"OFF","time":"5","pass":"0"}'
# state_on: "ON"
# state_off: "OFF"
# optimistic: false
# qos: 0
# retain: false
- unique_id: Dingtian-relay13756-r3-jogging-500ms
name: "Dingtian-relay13756 Switch3 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r3"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"3","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"3","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r4-jogging-500ms
name: "Dingtian-relay13756 Switch4 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r4"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"4","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"4","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r5-jogging-500ms
name: "Dingtian-relay13756 Switch5 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r5"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"5","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"5","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r6-jogging-500ms
name: "Dingtian-relay13756 Switch6 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r6"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"6","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"6","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r7-jogging-500ms
name: "Dingtian-relay13756 Switch7 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r7"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"7","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"7","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r8-jogging-500ms
name: "Dingtian-relay13756 Switch8 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r8"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"8","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"8","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
# input1~8
binary_sensor:
- unique_id: Dingtian-relay13756-i1
name: "Dingtian-relay13756 Input1"
state_topic: "/dingtian/relay13756/out/i1"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i2
name: "Dingtian-relay13756 Input2"
state_topic: "/dingtian/relay13756/out/i2"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i3
name: "Dingtian-relay13756 Input3"
state_topic: "/dingtian/relay13756/out/i3"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i4
name: "Dingtian-relay13756 Input4"
state_topic: "/dingtian/relay13756/out/i4"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i5
name: "Dingtian-relay13756 Input5"
state_topic: "/dingtian/relay13756/out/i5"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i6
name: "Dingtian-relay13756 Input6"
state_topic: "/dingtian/relay13756/out/i6"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i7
name: "Dingtian-relay13756 Input7"
state_topic: "/dingtian/relay13756/out/i7"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i8
name: "Dingtian-relay13756 Input8"
state_topic: "/dingtian/relay13756/out/i8"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
_______________________________________________________________________
43 kWp, LiFePO4 62 kWh,
EPSolar 60 A/150 V ET6415N + 3x Isolar SM II (5 kW, 450 V, 80 A) + Axpert PIP 5048MS
43 kWp, LiFePO4 62 kWh,
EPSolar 60 A/150 V ET6415N + 3x Isolar SM II (5 kW, 450 V, 80 A) + Axpert PIP 5048MS
-
- Příspěvky: 3947
- Registrován: úte dub 23, 2013 10:21 am
- Lokalita: Kousek od Lysé nad Labem
- Systémové napětí: 48V
- Výkon panelů [Wp]: 46000
- Kapacita baterie [kWh]: 40
- Chci prodávat energii: NE
- Chci/Mám dotaci: NE
- Bydliště: Kousek od Lysé nad Labem
Re: MQTT a Home assistant po lopatě pro blbce
Jo a pak ti v HA přibude něco takového:
_______________________________________________________________________
43 kWp, LiFePO4 62 kWh,
EPSolar 60 A/150 V ET6415N + 3x Isolar SM II (5 kW, 450 V, 80 A) + Axpert PIP 5048MS
43 kWp, LiFePO4 62 kWh,
EPSolar 60 A/150 V ET6415N + 3x Isolar SM II (5 kW, 450 V, 80 A) + Axpert PIP 5048MS
-
- Příspěvky: 458
- Registrován: čtv kvě 07, 2020 2:35 am
Re: MQTT a Home assistant po lopatě pro blbce
Díky rva to vypadá, že jsem to asi pobral. Mockrát děkuju. Teď budu muset nastudovat, jak udělat odkazy z configuration.yaml do jiných *.yaml, abych tam neměl bordel. Jdu na to.
7,5 kWp
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
-
- Příspěvky: 3947
- Registrován: úte dub 23, 2013 10:21 am
- Lokalita: Kousek od Lysé nad Labem
- Systémové napětí: 48V
- Výkon panelů [Wp]: 46000
- Kapacita baterie [kWh]: 40
- Chci prodávat energii: NE
- Chci/Mám dotaci: NE
- Bydliště: Kousek od Lysé nad Labem
Re: MQTT a Home assistant po lopatě pro blbce
Perfekt. U toho kódu koukám, že jsem nezkopíroval ten podstatný začátek - tedy že se celá sekce vztahuje k mqtt. Tak tady je to celé:
Jinak k tomu relé je celá SDK knihovna, má to cca 47 MB a je v ní vše popsané i s návodem pro danou desku. V yaml je ještě dle návodu potřeba změnit číslo desky dle aktuálního kusu. Uvádějí tam:
"prompt:
Dingtian relay board support Home Assistant with MQTT
1 install Home Assistant
2 stop Home Assistant
3 replace configuration_2/4/8/16/32ch_*.yaml example SN(0) to you relay board SN
4 copy configuration_2/4/8/16/32ch_*.yaml to you Home Assistant yaml
5 start Home Assistant"
Kód: Vybrat vše
# Setting up Power Monitoring with a Shelly EM and Home Assistant
# Shelly MQTT Power Monitor for Household/Clamp 0 (05A7F8)
# Example configuration.yaml entry
mqtt:
sensor:
name: Household Power Watts
unique_id: shellyempower0mqtt
icon: mdi:chart-bar
state_topic: "shellies/shellyem-BCFF4DFCE2EE/emeter/0/power"
unit_of_measurement: Watts
qos: 2
# this example for version >= 2022.09
# example relay board SN is 100,then replace "relay0" with "relay100"
switch:
- unique_id: Dingtian-relay13756-all
name: "Dingtian-relay13756 Switch0 All ON/OFF"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/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"}'
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"}'
optimistic: false
qos: 0
retain: false
# relay1~8
- unique_id: Dingtian-relay13756-r1
name: "Dingtian-relay13756 Switch1"
state_topic: "/dingtian/relay13756/out/r1"
command_topic: "/dingtian/relay13756/in/r1"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "OFF"
payload_off: "ON"
state_on: "OFF"
state_off: "ON"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r2
name: "Dingtian-relay13756 Switch2"
state_topic: "/dingtian/relay13756/out/r2"
command_topic: "/dingtian/relay13756/in/r2"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "OFF"
payload_off: "ON"
state_on: "OFF"
state_off: "ON"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r3
name: "Dingtian-relay13756 Switch3"
state_topic: "/dingtian/relay13756/out/r3"
command_topic: "/dingtian/relay13756/in/r3"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r4
name: "Dingtian-relay13756 Switch4"
state_topic: "/dingtian/relay13756/out/r4"
command_topic: "/dingtian/relay13756/in/r4"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r5
name: "Dingtian-relay13756 Switch5"
state_topic: "/dingtian/relay13756/out/r5"
command_topic: "/dingtian/relay13756/in/r5"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r6
name: "Dingtian-relay13756 Switch6"
state_topic: "/dingtian/relay13756/out/r6"
command_topic: "/dingtian/relay13756/in/r6"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r7
name: "Dingtian-relay13756 Switch7"
state_topic: "/dingtian/relay13756/out/r7"
command_topic: "/dingtian/relay13756/in/r7"
availability:
- topic: "/dingtian/relay13756/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
- unique_id: Dingtian-relay13756-r8
name: "Dingtian-relay13756 Switch8"
state_topic: "/dingtian/relay13756/out/r8"
command_topic: "/dingtian/relay13756/in/r8"
availability:
- topic: "/dingtian/relay13756/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
# delay-relay1~8
# - unique_id: Dingtian-relay13756-r1-delay_mutual_20s
# name: "Dingtian-relay13756 Switch1 Delay mutual 20S OFF Switch2"
# state_topic: "/dingtian/relay13756/out/r1"
# command_topic: "/dingtian/relay13756/in/control"
# availability:
# - topic: "/dingtian/relay13756/out/lwt_availability"
# payload_available: "online"
# payload_not_available: "offline"
# payload_on: '{"type":"DELAY","idx":"1","status":"ON","time":"20","pass":"0"},
# {"type":"ON/OFF","idx":"2","status":"OFF","time":"0","pass":"0"}'
# payload_off: '{"type":"ON/OFF","idx":"1","status":"OFF","time":"0","pass":"0"}'
# state_on: "ON"
# state_off: "OFF"
# optimistic: false
# qos: 0
# retain: false
# - unique_id: Dingtian-relay13756-r2-delay_mutual_20s
# name: "Dingtian-relay13756 Switch2 Delay mutual 20S OFF Switch1"
# state_topic: "/dingtian/relay13756/out/r2"
# command_topic: "/dingtian/relay13756/in/control"
# availability:
# - topic: "/dingtian/relay13756/out/lwt_availability"
# payload_available: "online"
# payload_not_available: "offline"
# payload_on: '{"type":"DELAY","idx":"2","status":"ON","time":"20","pass":"0"},
# {"type":"ON/OFF","idx":"1","status":"OFF","time":"0","pass":"0"}'
# payload_off: '{"type":"ON/OFF","idx":"2","status":"OFF","time":"0","pass":"0"}'
# state_on: "ON"
# state_off: "OFF"
# optimistic: false
# qos: 0
# retain: false
- unique_id: Dingtian-relay13756-r3-delay_mutual_20s
name: "Dingtian-relay13756 Switch3 mutual 20S OFF Switch4"
state_topic: "/dingtian/relay13756/out/r3"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"3","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"4","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"3","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r4-delay_mutual_20s
name: "Dingtian-relay13756 Switch4 mutual 20S OFF Switch3"
state_topic: "/dingtian/relay13756/out/r4"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"4","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"3","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"4","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r5-delay_mutual_20s
name: "Dingtian-relay13756 Switch5 mutual 20S OFF Switch6"
state_topic: "/dingtian/relay13756/out/r5"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"5","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"6","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"5","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r6-delay_mutual_20s
name: "Dingtian-relay13756 Switch6 mutual 20S OFF Switch5"
state_topic: "/dingtian/relay13756/out/r6"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"6","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"5","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"6","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r7-delay_mutual_20s
name: "Dingtian-relay13756 Switch7 mutual 20S OFF Switch8"
state_topic: "/dingtian/relay13756/out/r7"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"7","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"8","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"7","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r8-delay_mutual_20s
name: "Dingtian-relay13756 Switch8 mutual 20S OFF Switch7"
state_topic: "/dingtian/relay13756/out/r8"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"DELAY","idx":"8","status":"ON","time":"20","pass":"0"},
{"type":"ON/OFF","idx":"7","status":"OFF","time":"0","pass":"0"}'
payload_off: '{"type":"ON/OFF","idx":"8","status":"OFF","time":"0","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
# jogging-relay1~8
# - unique_id: Dingtian-relay13756-r1-jogging-500ms
# name: "Dingtian-relay13756 Switch1 Delay 500ms"
# state_topic: "/dingtian/relay13756/out/r1"
# command_topic: "/dingtian/relay13756/in/control"
# availability:
# - topic: "/dingtian/relay13756/out/lwt_availability"
# payload_available: "online"
# payload_not_available: "offline"
# payload_on: '{"type":"JOGGING","idx":"1","status":"ON","time":"5","pass":"0"}'
# payload_off: '{"type":"JOGGING","idx":"1","status":"OFF","time":"5","pass":"0"}'
# state_on: "ON"
# state_off: "OFF"
# optimistic: false
# qos: 0
# retain: false
# - unique_id: Dingtian-relay13756-r2-jogging-500ms
# name: "Dingtian-relay13756 Switch2 Delay 500ms"
# state_topic: "/dingtian/relay13756/out/r2"
# command_topic: "/dingtian/relay13756/in/control"
# availability:
# - topic: "/dingtian/relay13756/out/lwt_availability"
# payload_available: "online"
# payload_not_available: "offline"
# payload_on: '{"type":"JOGGING","idx":"2","status":"ON","time":"5","pass":"0"}'
# payload_off: '{"type":"JOGGING","idx":"2","status":"OFF","time":"5","pass":"0"}'
# state_on: "ON"
# state_off: "OFF"
# optimistic: false
# qos: 0
# retain: false
- unique_id: Dingtian-relay13756-r3-jogging-500ms
name: "Dingtian-relay13756 Switch3 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r3"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"3","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"3","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r4-jogging-500ms
name: "Dingtian-relay13756 Switch4 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r4"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"4","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"4","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r5-jogging-500ms
name: "Dingtian-relay13756 Switch5 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r5"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"5","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"5","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r6-jogging-500ms
name: "Dingtian-relay13756 Switch6 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r6"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"6","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"6","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r7-jogging-500ms
name: "Dingtian-relay13756 Switch7 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r7"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"7","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"7","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
- unique_id: Dingtian-relay13756-r8-jogging-500ms
name: "Dingtian-relay13756 Switch8 Delay 500ms"
state_topic: "/dingtian/relay13756/out/r8"
command_topic: "/dingtian/relay13756/in/control"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: '{"type":"JOGGING","idx":"8","status":"ON","time":"5","pass":"0"}'
payload_off: '{"type":"JOGGING","idx":"8","status":"OFF","time":"5","pass":"0"}'
state_on: "ON"
state_off: "OFF"
optimistic: false
qos: 0
retain: false
# input1~8
binary_sensor:
- unique_id: Dingtian-relay13756-i1
name: "Dingtian-relay13756 Input1"
state_topic: "/dingtian/relay13756/out/i1"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i2
name: "Dingtian-relay13756 Input2"
state_topic: "/dingtian/relay13756/out/i2"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i3
name: "Dingtian-relay13756 Input3"
state_topic: "/dingtian/relay13756/out/i3"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i4
name: "Dingtian-relay13756 Input4"
state_topic: "/dingtian/relay13756/out/i4"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i5
name: "Dingtian-relay13756 Input5"
state_topic: "/dingtian/relay13756/out/i5"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i6
name: "Dingtian-relay13756 Input6"
state_topic: "/dingtian/relay13756/out/i6"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i7
name: "Dingtian-relay13756 Input7"
state_topic: "/dingtian/relay13756/out/i7"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
- unique_id: Dingtian-relay13756-i8
name: "Dingtian-relay13756 Input8"
state_topic: "/dingtian/relay13756/out/i8"
availability:
- topic: "/dingtian/relay13756/out/lwt_availability"
payload_available: "online"
payload_not_available: "offline"
payload_on: "ON"
payload_off: "OFF"
qos: 0
"prompt:
Dingtian relay board support Home Assistant with MQTT
1 install Home Assistant
2 stop Home Assistant
3 replace configuration_2/4/8/16/32ch_*.yaml example SN(0) to you relay board SN
4 copy configuration_2/4/8/16/32ch_*.yaml to you Home Assistant yaml
5 start Home Assistant"
_______________________________________________________________________
43 kWp, LiFePO4 62 kWh,
EPSolar 60 A/150 V ET6415N + 3x Isolar SM II (5 kW, 450 V, 80 A) + Axpert PIP 5048MS
43 kWp, LiFePO4 62 kWh,
EPSolar 60 A/150 V ET6415N + 3x Isolar SM II (5 kW, 450 V, 80 A) + Axpert PIP 5048MS
-
- Příspěvky: 458
- Registrován: čtv kvě 07, 2020 2:35 am
Re: MQTT a Home assistant po lopatě pro blbce
Tak až teď jsem se dostal k samotné realizaci. Myslím, že jsem udělal vše, jak má být, vložil kompletní konfiguraci do configuration.yaml - předtím jsem změnil to číslo desky pomocí PSPadu.
Bohužel to ale nefunguje, senzory pro relátka se sice objeví, ale nejsou dostupné.
Chtěl bych nějak zkontrolovat, jestli se ta relé deska snaží spojit přes to jméno a heslo s mosquittem, ale nevím jak na to.
Ještě jedna poznámka, kvůli solar assistentovi jsem musel udělat, myslím, nestandardní konfiguraci brokera. Mám pocit, že by to mohlo celý věci nějak vadit.
Tady je celý log ze startu Mosquitta:
Tato věta v logu o tom vypovídá:
Bohužel to ale nefunguje, senzory pro relátka se sice objeví, ale nejsou dostupné.
Chtěl bych nějak zkontrolovat, jestli se ta relé deska snaží spojit přes to jméno a heslo s mosquittem, ale nevím jak na to.
Ještě jedna poznámka, kvůli solar assistentovi jsem musel udělat, myslím, nestandardní konfiguraci brokera. Mám pocit, že by to mohlo celý věci nějak vadit.
Tady je celý log ze startu Mosquitta:
Kód: Vybrat vše
s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
cont-init: info: running /etc/cont-init.d/mosquitto.sh
[05:03:28] INFO: Setting up user plazivec
[05:03:28] INFO: SSL is not enabled
cont-init: info: /etc/cont-init.d/mosquitto.sh exited 0
cont-init: info: running /etc/cont-init.d/nginx.sh
cont-init: info: /etc/cont-init.d/nginx.sh exited 0
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
services-up: info: copying legacy longrun mosquitto (no readiness notification)
services-up: info: copying legacy longrun nginx (no readiness notification)
[05:03:28] INFO: Starting NGINX for authentication handling...
s6-rc: info: service legacy-services successfully started
[05:03:29] INFO: Starting mosquitto MQTT broker...
1683687809: Loading config file /share/mosquitto/solar_assistant.conf
2023-05-10 05:03:29: Warning: Mosquitto should not be run as root/administrator.
[05:03:30] INFO: Successfully send discovery information to Home Assistant.
[05:03:30] INFO: Successfully send service information to the Supervisor.
Kód: Vybrat vše
1683687809: Loading config file /share/mosquitto/solar_assistant.conf
7,5 kWp
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
-
- Příspěvky: 1807
- Registrován: pát lis 11, 2022 8:14 am
- Lokalita: Hlohovec, SR
- Systémové napětí: 48V
- Výkon panelů [Wp]: 5520
- Kapacita baterie [kWh]: 14
- Chci prodávat energii: NE
- Chci/Mám dotaci: NE
- Bydliště: Hlohovec, SR
Re: MQTT a Home assistant po lopatě pro blbce
Ja som kúpil podobné relé moduly - https://vi.aliexpress.com/item/1005003458137383.html
Použi MQTT klienta - https://www.jensd.de/wordpress/?p=2746 - tam si vieš urobiť scan topicov, publikovať správy, prihlásiť sa na odber...
Použi MQTT klienta - https://www.jensd.de/wordpress/?p=2746 - tam si vieš urobiť scan topicov, publikovať správy, prihlásiť sa na odber...
2x MUST PH1800 5.5kW, 8.85kWp 3x 2S3P, V+J+Z, 16x 280 Ah LiFePO4 (14.3 kWh), BMS JBD 200A, SW: Home Assistant na Synology DS923+ ku tomu ESPHome, Tasmota, MariaDB, InfluxDB, Telegraf, Grafana, Zigbee2MQTT..., HW: ESPlan (ESP32 + LAN 8720 + RS485 + UART). Nejaké moje projekty: MUST-ESPhome, ELTEK Flatpack2 ESPhome, ESP32-EMON, PZEM-017@WiFi, diyBMS-CurrentShunt-ESPhome 01/2023 -> 11/2024 = 8.6 MWh AC
-
- Příspěvky: 458
- Registrován: čtv kvě 07, 2020 2:35 am
Re: MQTT a Home assistant po lopatě pro blbce
Jo pane, předně díky za tip, ale koukám na to už 10 minut a nezjistil jsem, jestli se to instaluje na můj PC, nebo na PC s HA, nebo kam. Je to určitě bohumilej skutek od toho člověka, ale je to pro odbornou komunitu, do které já prozatím rozhodně nepatřím. Jo a ty linky jsou prázdný.
7,5 kWp
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
-
- Příspěvky: 458
- Registrován: čtv kvě 07, 2020 2:35 am
Re: MQTT a Home assistant po lopatě pro blbce
Tak jsem se jal studovat, našel jsem mosquitto_sub - mocný to nástroj. výsledkem je, že relátka v logu mqtt vidím, ale jinak sensors jsou unavailable.
log:
log:
Kód: Vybrat vše
➜ ~ mosquitto_sub -h 127.0.0.1 -u plazivec -P kecs2m3et -v -t '#' | grep "dingtian"
/dingtian/relay17645/out/lwt_availability online
/dingtian/relay17645/out/hw_version V3.6J
/dingtian/relay17645/out/sw_version V3.1.1759A
/dingtian/relay17645/out/r1 OFF
/dingtian/relay17645/out/r2 OFF
/dingtian/relay17645/out/r3 OFF
/dingtian/relay17645/out/r4 OFF
/dingtian/relay17645/out/r5 OFF
/dingtian/relay17645/out/r6 OFF
/dingtian/relay17645/out/r7 OFF
/dingtian/relay17645/out/r8 OFF
/dingtian/relay17645/out/i1 OFF
/dingtian/relay17645/out/i2 OFF
/dingtian/relay17645/out/i3 OFF
/dingtian/relay17645/out/i4 OFF
/dingtian/relay17645/out/i5 OFF
/dingtian/relay17645/out/i6 OFF
/dingtian/relay17645/out/i7 OFF
/dingtian/relay17645/out/i8 OFF
/dingtian/relay17645/out/relay1 {"idx":"1","status":"OFF"}
/dingtian/relay17645/out/relay2 {"idx":"2","status":"OFF"}
/dingtian/relay17645/out/relay3 {"idx":"3","status":"OFF"}
/dingtian/relay17645/out/relay4 {"idx":"4","status":"OFF"}
/dingtian/relay17645/out/relay5 {"idx":"5","status":"OFF"}
/dingtian/relay17645/out/relay6 {"idx":"6","status":"OFF"}
/dingtian/relay17645/out/relay7 {"idx":"7","status":"OFF"}
/dingtian/relay17645/out/relay8 {"idx":"8","status":"OFF"}
/dingtian/relay17645/out/input1 {"idx":"1","status":"HIGH"}
/dingtian/relay17645/out/input2 {"idx":"2","status":"HIGH"}
/dingtian/relay17645/out/input3 {"idx":"3","status":"HIGH"}
/dingtian/relay17645/out/input4 {"idx":"4","status":"HIGH"}
/dingtian/relay17645/out/input5 {"idx":"5","status":"HIGH"}
/dingtian/relay17645/out/input6 {"idx":"6","status":"HIGH"}
/dingtian/relay17645/out/input7 {"idx":"7","status":"HIGH"}
/dingtian/relay17645/out/input8 {"idx":"8","status":"HIGH"}
/dingtian/relay17645/out/ip 192.168.1.100
/dingtian/relay17645/out/sn 17645
/dingtian/relay17645/out/mac ba:34:88:00:44:3e
/dingtian/relay17645/out/input_cnt 8
/dingtian/relay17645/out/relay_cnt 8
7,5 kWp
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
--východ == 2,25 kWp == Epever Tracer 5415AN
--Jih ===== 3,00 kWp == Epever Tracer 8420AN
--Západ == 2,25 kWp == Epever Tracer 5415AN
2x Axpert king1 Parallel
3x150ah Lion
-
- Podobná témata
- Odpovědi
- Zobrazení
- Poslední příspěvek
-
-
Komunikace Solar Assistant s Home Assistant
od Mickel » » v Raspberry Pi
Komunikace Solar Assistant s Home Assistant
- 2 Odpovědi
- 1384 Zobrazení
-
Poslední příspěvek od UTima
-
-
- 73 Odpovědi
- 5166 Zobrazení
-
Poslední příspěvek od Forrest
-
- 372 Odpovědi
- 26457 Zobrazení
-
Poslední příspěvek od kodl69
-
- 7 Odpovědi
- 1319 Zobrazení
-
Poslední příspěvek od mgx
-
- 47 Odpovědi
- 6073 Zobrazení
-
Poslední příspěvek od rva