Skip to content

Commit

Permalink
Update Dakin-Rotex-CAN.yaml
Browse files Browse the repository at this point in the history
Warmwasser Einstellen wurde bis zu 55Grad erweitert
  • Loading branch information
Trunks1982 authored Jan 1, 2024
1 parent a2cc92c commit 4c63850
Showing 1 changed file with 66 additions and 48 deletions.
114 changes: 66 additions & 48 deletions Dakin-Rotex-CAN.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
esphome:
name: rotex-hpsu-compact
friendly_name: Rotex HPSU Compact
name: rotex
friendly_name: Rotex

esp32:
board: esp32-s3-devkitc-1
Expand All @@ -9,53 +9,28 @@ esp32:

# Enable logging
logger:
level: ERROR

# Enable Home Assistant API
api:
encryption:
key: "#Hier muss der eigene Encryption Key eingegeben werden"
key: "heqmwzvu7TckUlOZjse5Y2dPSiNR8a5+LZDPmSC3URI="

ota:

web_server:

wifi:
ssid: !secret wifi_ssid #WLAN SSID
password: !secret wifi_password #WLAN Passwort
ssid: !secret wifi_ssid
password: !secret wifi_password

# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Esphome-Web-6Dca5C"
password: "G0d27OLpvpOt"

web_server:
ssid: "Rotex Fallback Hotspot"
password: "H3jGqANSa7aL"

captive_portal:

globals:
#Variablen für senden von CAN-Bus Befehlen zum Umschalten auf Warmwasserbetrieb (evtl. ersetzen durch Array)
- id: dataframe0
type: int
restore_value: no
- id: dataframe1
type: int
restore_value: no
- id: dataframe2
type: int
restore_value: no
- id: dataframe3
type: int
restore_value: no
- id: dataframe4
type: int
restore_value: no
- id: dataframe5
type: int
restore_value: no
- id: dataframe6
type: int
restore_value: no




text_sensor:
- platform: template
Expand Down Expand Up @@ -120,17 +95,20 @@ button:
on_press:
then:
- canbus.send:
data: [ 0x30, 0x00, 0x13, 0x02, 0xBC, 0x00, 0x00 ]
data: [ 0x30, 0x00, 0x13, 0x02, 0xBC, 0x00, 0x00 ] # 45 Grad Grundeinstellung
can_id: 0x680
- delay: 10s
- canbus.send:
data: [ 0x30, 0x00, 0x13, 0x01, 0xC2, 0x00, 0x00 ]
data: [ 0x30, 0x00, 0x13, 0x01, 0xC2, 0x00, 0x00 ] # 70 Grad
can_id: 0x680
- logger.log: CAN Nachricht wurde gesendet




sensor:


- platform: template
name: "Thermische Leistung"
device_class: "power"
Expand Down Expand Up @@ -174,7 +152,7 @@ sensor:
accuracy_decimals: 0

- platform: template
name: "Umwälzpumpe"
name: "Umwaelzpumpe"
id: Umwaelzpumpe
unit_of_measurement: "%"
icon: "mdi:thermometer-lines"
Expand All @@ -190,7 +168,7 @@ sensor:
device_class: "temperature"
state_class: "measurement"
accuracy_decimals: 0
internal: false # don't show on HA


- platform: template
name: "Betriebsart"
Expand All @@ -200,7 +178,7 @@ sensor:
device_class: "temperature"
state_class: "measurement"
accuracy_decimals: 0
internal: false # don't show on HA


- platform: template
name: "T-WW-Soll1"
Expand All @@ -222,7 +200,7 @@ sensor:


- platform: template
name: "Außentemperatur"
name: "Aussentemperatur"
id: temperature_outside
unit_of_measurement: "°C"
icon: "mdi:thermometer-lines"
Expand Down Expand Up @@ -259,7 +237,7 @@ sensor:
accuracy_decimals: 1

- platform: template
name: "Rücklauftemperatur Heizung"
name: "Ruecklauftemperatur Heizung"
id: ruecklauf
unit_of_measurement: "°C"
icon: "mdi:waves-arrow-left"
Expand All @@ -272,7 +250,7 @@ sensor:
id: durchfluss
unit_of_measurement: "ltr/h"
icon: "mdi:waves-arrow-left"
device_class: "battery"
device_class: "water"
state_class: "measurement"
accuracy_decimals: 0

Expand All @@ -286,6 +264,15 @@ sensor:
accuracy_decimals: 0











select:
- platform: template
name: "Betriebsmodus setzen"
Expand Down Expand Up @@ -327,6 +314,8 @@ select:
can_id: 0x680




- platform: template
name: "Raumsoll Einstellen"
id: r_soll
Expand All @@ -345,7 +334,7 @@ select:
- "24 °C"
- "24,5 °C"
- "25 °C"
initial_option: 20 °C
initial_option: 20,5 °C
set_action:
then:
- delay: 500ms
Expand Down Expand Up @@ -473,6 +462,10 @@ select:
- "50 °C"
- "51 °C"
- "52 °C"
- "53 °C"
- "54 °C"
- "55 °C"

initial_option: 45 °C
set_action:
then:
Expand Down Expand Up @@ -573,16 +566,44 @@ select:
- canbus.send:
data: [ 0x30, 0x00, 0x13, 0x01, 0xFE, 0x00, 0x00 ]
can_id: 0x680

- if:
condition:
- lambda: |-
return (id(ww_soll).state) == "52 °C";
then:
- canbus.send:
data: [ 0x30, 0x00, 0x13, 0x02, 0x08, 0x00, 0x00 ]
can_id: 0x680
can_id: 0x680

- if:
condition:
- lambda: |-
return (id(ww_soll).state) == "53 °C";
then:
- canbus.send:
data: [ 0x30, 0x00, 0x13, 0x02, 0x12, 0x00, 0x00 ]
can_id: 0x680

- if:
condition:
- lambda: |-
return (id(ww_soll).state) == "54 °C";
then:
- canbus.send:
data: [ 0x30, 0x00, 0x13, 0x02, 0x1C, 0x00, 0x00 ]
can_id: 0x680

- if:
condition:
- lambda: |-
return (id(ww_soll).state) == "55 °C";
then:
- canbus.send:
data: [ 0x30, 0x00, 0x13, 0x02, 0x26, 0x00, 0x00 ]
can_id: 0x680




time:
Expand Down Expand Up @@ -909,7 +930,4 @@ canbus:
ESP_LOGD("main", "Antwort von 180 Float: %f", wert7);
ESP_LOGI("main", "Antwort von 180 Dez.: %i %i", wert5, wert6);

0 comments on commit 4c63850

Please sign in to comment.