Vaillant X6 Klemme über ESP8266 an FHEM

Begonnen von DirkS, 05 November 2015, 15:53:48

Vorheriges Thema - Nächstes Thema

mfischer-ffb


bei dem anderen yaml file ist keine Zusatzdatei  (.h) dabei..



esphome:
  name: weatherstation
  platform: ESP8266
  board: d1_mini

wifi:
  ssid: <wifi>
  password: <password>

  manual_ip:
    static_ip: 192.168.1.231   
    gateway: 192.168.1.1
    subnet: 255.255.0.0

api:
  password: <apipasswd>
 
ota:
  safe_mode: True
  password: <otapasswd>
 
logger:

dallas:
    # pin D7
  - pin: GPIO13

sensor:
  - platform: pulse_counter
    pin:
      # pin D5
      number: GPIO14
      mode: INPUT_PULLUP
    unit_of_measurement: 'm/s'
    name: 'Wind sensor'
    icon: 'mdi:weather-windy'
    id: my_wind
    count_mode:
      rising_edge: DISABLE
      falling_edge: INCREMENT
    internal_filter: 50us
    update_interval: 60s
    #rotations_per_sec = pulses/2/60
    #circ_m=0.09*2*3.14 = 0.5652
    #mps = 1.18*circ_m*rotations_per_sec 
    #mps = 1.18*0.5652/2/60 =0,0055578
    filters:
      - multiply: 0.0055578
     
  - platform: pulse_counter
    pin:
      # pin D6
      number: GPIO12
      mode: INPUT_PULLUP
    unit_of_measurement: 'mm'
    name: 'Rain gauge'
    icon: 'mdi:weather-rainy'
    id: my_rain
    count_mode:
      rising_edge: DISABLE
      falling_edge: INCREMENT
    internal_filter: 50us
    update_interval: 60s
    #buckets = pulses
    #mm_per_bucket=0.2794
    #rain = buckets*0.2794
    filters:
      - multiply: 0.2794

  - platform: total_daily_energy
    name: "Total Daily Rain"
    power_id: my_rain
    unit_of_measurement: 'mm'
    icon: 'mdi:weather-rainy'
    # x60 To convert to aggregated rain amount
    filters:
      - multiply: 60
   
  - platform: dallas
    address: 0x750517B15C1CFF28
    name: 'Temperature air'

# Enable time component to reset energy at midnight
time:
  - platform: sntp
    id: my_time


mache ich da was falsch die vaillantx6.h liegt im gleich Verzeichnis und beim kompilieren gibt es keine Fehler..

hast du die Version hier am laufen auf einem wemos mini ?

Gruß
Markus

mfischer-ffb

ok Problem gelöst, der Fehler war  ohne angeschlossenem X6 port resettet sich der ESP8266 immer wieder.

sobald er aber eine Antwort von der Heizung bekommt ist alles paletti !!

Danke

jms

Ah okay prima! Im Internet fliegt irgendwo eine Liste rum mit den ganzen Sensorwerten die man auslesen kann. Damit kannst du mein yaml   relativ leicht erweitern und noch andere Werte auslesen.

son

Hallo zusammen...
Ich habe mir den code von martin3000 mittels ESPHome auf einen D1mini geflasht. Ich hatte ohne Anschluss an x6 ebenfalls eine Bootschleife. Ein einfacher Levelshifter angeschlossen lässt das Ganze stabil werden...
Allerdings habe ich ein Reset-Problem:
- d1mini mit x6 verbunden
- die Werte werden richtig ausgelesen
- Darstellung auf der website des esp funktioniert
- die Sache funktioniert ein paar Minuten, dann ist der esp nicht mehr aufrufbar, ein ota-Update geht allerdings
- selbst mit very_verbose im logger lässt sich die Ursache für den vermuteten reboot ermitteln. Einziges Anzeichen hierfür ist der Logeintrag: [W][ota:036]: Last Boot was an unhandled reset, will proceed to safe mode in 2 restarts
- zwischendrin kommt immer mal wieder:
[ota:046]: Boot seems successful, resetting boot loop counter

kleiner Auszug :

[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 46.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 34.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 46.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 35.00000 °C with 1 decimals of accuracy
[I][ota:046]: Boot seems successful, resetting boot loop counter.
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 48.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 36.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 41.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 37.00000 °C with 1 decimals of accuracy
[I][ota:046]: Boot seems successful, resetting boot loop counter.
[D][sensor:092]: 'vl_soll': Sending state 4095.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 37.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 37.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 36.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 37.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 36.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 37.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 36.00000 °C with 1 decimals of accuracy
[I][ota:046]: Boot seems successful, resetting boot loop counter.
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 37.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 36.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 35.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 416.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 39.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 37.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_ist': Sending state 39.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'vl_set': Sending state 60.00000 °C with 1 decimals of accuracy
[D][sensor:092]: 'ruecklauf': Sending state 37.00000 °C with 1 decimals of accuracy
[I][ota:046]: Boot seems successful, resetting boot loop counter.
[D][sensor:092]: 'vl_soll': Sending state 43.00000 °C with 1 decimals of accuracy


Im erweiterten log  meckert er noch über die lange Ausführungszeit im loop 4,xx s
Netzteil, Wlan meine ich auschließen zu können...

Habt Ihr eine Idee oder Lösung ?
Danke und Gruß
Stephan

Oberchefe

Hallo zusammen,

gibt es eigentlich noch irgend ein Forum, in dem noch aktuell über das Protokoll der seriellen Schnittstelle der Vaillant diskutiert wird?

Ich war an meiner Vaillant von ebus-Schnittstelle ausgegangen, habe dann aber vor kurzem bemerkt, dass sie ebus noch nicht kann. Dafür aber über die X6, was eigentlich einfacher ist. Dank ein paar hilfreicher Seiten wie z.B.
http://old.ethersex.de/index.php/Vaillant_X6_Schnittstelle
http://translate.google.de/translate?u=http%3A%2F%2Fab-log.ru%2Fsmart-house%2Fheating-automation%2Fvaillant-rs232&sl=ru&tl=de&hl=&ie=UTF-8
https://translate.google.com/translate?depth=1&ie=UTF8&pto=aue&rurl=translate.google.de&sl=ru&sp=nmt4&tl=de&u=https://www.ab-log.ru/smart-house/heating-automation/gaz_meter
und dieser hier (hier ist die Belegung der X6 vollständig ;-)  )

kann ich jetzt generell mit meiner Heizung reden, zwar nicht über ESP8266 sondern über eine SPS, aber das ist prinzipiell erst mal egal. Da ich mich mittlerweile auch schon eine ganze Weile mit dem Thema beschäftigt habe, wollte ich meine Erkenntnisse der Allgemeinheit nicht vorenthalten.
Die Seite vom ersten Link ist allerdings "old", und auf der aktuellen dazugehörigen Seite finde ich nichts zum Thema. Die beiden anderen Seiten haben das Problem, dass russisch nicht so mein Ding ist.

Kennt jemand also ein Forum, wo aktuell über das Protokoll diskutiert wird oder ist das Thema eingeschlafen?


toensi

Hallo zusammen!

Hat jemand ein fertiges Produkt was er los werden möchte, oder kann mir jemand eins Bauen?

Möchte gerne meine Vaillant Therme mit Fhem verbinden über WLAN mit WEMOS D1 mini und X6.

Da ich nich so der Bastler bin, benötige ein fertiges Endprodukt geflash, zum direkten Anstecken an die Therme, so das ich nur noch den ESP konfigurieren muss.

Bitte Angebote per PN.

Danke und frohes NEUES :)



jms

Du musst ja auch den Stecker besorgen, ein Netzteil usw. Das macht dir niemand für 10€.

Wetterhexe

nachdem ich eine Anfrage bekommen habe, das script auf pyhton 3 zu migrieren ... hier ist mein aktueller code py3 kompatibel

ReBi

Hallo

Zitat von: Wetterhexe am 29 Januar 2023, 22:46:42
nachdem ich eine Anfrage bekommen habe, das script auf pyhton 3 zu migrieren ... hier ist mein aktueller code py3 kompatibel

Vielen Dank nochmal für das python3 script. Funktioniert sehr gut bei mir.

Ich habe versucht noch die Aussentemperatur in dein Script einzugebauen.
retval = qVail(0x6A)                            # d.47 Aussentemperatur

Sollange ich positive Temperaturen habe, liefert vTemp2 auch sinnvolle Werte. Aber leider bei Minus-Grade nicht mehr.
Bei Minus-Grade bekomme ich Werte so um die 4000.

Hat jemand eine Idee, wie vTemp2 dafür geändert werden müsste ?

Gruß
ReBi

PatrickR

Guten Abend!

Sorry, dass ich den Dinosaurier wieder hochhole. Hat zufällig jemand von Euch mal mit dem Schreiben von Werten experimentiert? Ich würde gerne die Brauchwassersolltemperatur steuern. Leider geht das aus vrDIALOG nicht, so dass sich die Frage stellt, ob das über die X6-Schnittstelle überhaupt möglich ist. Werde die Tage mal probieren, den Wert zu schreiben. Laut https://www.ab-log.ru/smart-house/heating-automation/gaz_meter muss man im zweiten Byte 0x00 durch 0x80 ersetzen.

Patrick
lepresenced - Tracking von Bluetooth-LE-Tags (Gigaset G-Tag) mittels PRESENCE

"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the universe is winning." - Rich Cook