Skip to content

Commit d6d7960

Browse files
authored
Updated Winky/Denky/Wemos configuration for Teleinfo (#52)
* updated Denky D4, added all D4 boards version updated Denky D4, added all D4 boards version * updated Wemos Teleinfo to reflect other configs updated Wemos Teleinfo to reflect other configs * removed teleinfo driver, now native in Nicolas's Firmware removed teleinfo driver, now native in Nicolas's Firmware adjusted some parameters to pre production * fixed autoload of cp2fs.be fixed autoload of cp2fs.be * added autoexec.be added autoexec.be * Enable default Winky Sleep Time to 5min Enable default Winky Sleep Time to 5min * Enable Wifi Scan on boot for Winky Enable Wifi Scan on boot for Winky
1 parent 669cb04 commit d6d7960

File tree

19 files changed

+376
-74
lines changed

19 files changed

+376
-74
lines changed

raw/esp32/DenkyD4_V1.0/init.bat

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,22 @@
11
Template {"NAME":"Denky D4 (v1.0)","GPIO":[32,0,0,0,1,0,0,0,0,1,0,1,0,0,0,0,0,640,608,0,0,450,449,448,0,0,5632,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
22
Module 0
3-
OtaUrl https://raw.githubusercontent.com/tasmota/install/main/firmware/unofficial/tasmota32-teleinfo.bin
43

54
; All these parameters are saved onto flash device
6-
; so once configured, it's better to leave them in
7-
; file init.bat
5+
; only once when autoconf is activated or
6+
; when it's removed and activated again
87
; ===================================================
98

10-
; Set Teleinfo in legacy (historique) mode at 1200 baud.
11-
EnergyConfig Historique
9+
; Disable Boot Loop Detection
10+
SetOption65 1
1211

13-
; Set Teleinfo in standard mode at 9600 baud.
14-
; EnergyConfig Standard
12+
; define OTA Url
13+
OtaUrl https://github.com/NicolasBernaerts/tasmota/raw/master/teleinfo/binary/tasmota32-teleinfo-denkyd4.bin
1514

16-
; Enable sending of all frames in raw mode
17-
EnergyConfig Full
15+
; # Set auto timezone
16+
Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120
1817

19-
; Send only each 1 on 10 frames received
20-
EnergyConfig Skip 9
18+
; # Set Teleinfo in legacy (historique) mode at 1200 baud.
19+
; EnergyConfig Historique
2120

21+
; # Set Teleinfo in stadard mode at 9600 baud.
22+
; EnergyConfig Standard

raw/esp32/DenkyD4_V1.1/_autoexec.be

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file does nothing it just contains some
2+
# examples to suit your needs depending on project
3+
# It will be copied into filesystem to be editable
4+
# =====================================================
5+
6+
# Set auto timezone
7+
#tasmota.cmd("Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120")
8+
9+
# Set Teleinfo in legacy (historique) mode at 1200 baud.
10+
#tasmota.cmd("EnergyConfig Historique")
11+
12+
# Set Teleinfo in Standar mode at 9600 baud.
13+
#tasmota.cmd("EnergyConfig Standard")
14+
15+
# Disable Boot Loop Detection
16+
#tasmota.cmd("SetOption65 1")
17+
18+
# Avoid conflict between native WS2812 and Berry control
19+
# disables native WS2812 (default Scheme is 0)
20+
#tasmota.cmd("Scheme 14")

raw/esp32/DenkyD4_V1.1/cp2fs.be

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copy teleinfo driver to file system to be end user editable
2+
3+
# simple function to copy from autoconfig archive to filesystem
4+
# return true if ok
5+
def cp(from, to)
6+
import path
7+
if to == nil to = from end # to is optional
8+
tasmota.log("OTA: copying "+tasmota.wd + to, 2)
9+
if !path.exists(to)
10+
try
11+
# tasmota.log("f_in="+tasmota.wd + from)
12+
var f_in = open(tasmota.wd + from)
13+
var f_content = f_in.readbytes()
14+
f_in.close()
15+
var f_out = open(to, "w")
16+
f_out.write(f_content)
17+
f_out.close()
18+
except .. as e,m
19+
tasmota.log("OTA: Couldn't copy "+to+" "+e+" "+m,2)
20+
return false
21+
end
22+
return true
23+
end
24+
return true
25+
end
26+
27+
import path
28+
29+
# copy some samples files from autoconf
30+
# to filesystem for end user speed up learn
31+
cp("_autoexec.be", "autoexec.be")
32+
33+
# Done

raw/esp32/DenkyD4_V1.1/init.bat

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1+
Br load("DenkyD4_V1.1.autoconf#cp2fs.be")
12
Template {"NAME":"Denky D4 (v1.1)","GPIO":[32,0,0,0,1,0,0,0,0,1,1376,1,0,0,0,0,0,640,608,0,0,0,0,0,0,0,5632,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
23
Module 0
3-
OtaUrl https://raw.githubusercontent.com/tasmota/install/main/firmware/unofficial/tasmota32-teleinfo.bin
44

55
; All these parameters are saved onto flash device
6-
; so once configured, it's better to leave them in
7-
; file init.bat
6+
; only once when autoconf is activated or
7+
; when it's removed and activated again
88
; ===================================================
99

10-
; Set Teleinfo in legacy (historique) mode at 1200 baud.
11-
EnergyConfig Historique
10+
; Disable Boot Loop Detection
11+
SetOption65 1
1212

13-
; Set Teleinfo in standard mode at 9600 baud.
14-
; EnergyConfig Standard
15-
16-
; Enable sending of all frames in raw mode
17-
EnergyConfig Full
18-
19-
; Send only each 1 on 10 frames received
20-
EnergyConfig Skip 9
13+
; define OTA Url
14+
OtaUrl https://github.com/NicolasBernaerts/tasmota/raw/master/teleinfo/binary/tasmota32-teleinfo-denkyd4.bin
2115

16+
; # Set auto timezone
17+
Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120
2218

19+
; # Set Teleinfo in legacy (historique) mode at 1200 baud.
20+
; EnergyConfig Historique
2321

22+
; # Set Teleinfo in stadard mode at 9600 baud.
23+
; EnergyConfig Standard

raw/esp32/DenkyD4_V1.3/_autoexec.be

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file does nothing it just contains some
2+
# examples to suit your needs depending on project
3+
# It will be copied into filesystem to be editable
4+
# =====================================================
5+
6+
# Set auto timezone
7+
#tasmota.cmd("Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120")
8+
9+
# Set Teleinfo in legacy (historique) mode at 1200 baud.
10+
#tasmota.cmd("EnergyConfig Historique")
11+
12+
# Set Teleinfo in Standar mode at 9600 baud.
13+
#tasmota.cmd("EnergyConfig Standard")
14+
15+
# Disable Boot Loop Detection
16+
#tasmota.cmd("SetOption65 1")
17+
18+
# Avoid conflict between native WS2812 and Berry control
19+
# disables native WS2812 (default Scheme is 0)
20+
#tasmota.cmd("Scheme 14")

raw/esp32/DenkyD4_V1.3/cp2fs.be

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copy teleinfo driver to file system to be end user editable
2+
3+
# simple function to copy from autoconfig archive to filesystem
4+
# return true if ok
5+
def cp(from, to)
6+
import path
7+
if to == nil to = from end # to is optional
8+
tasmota.log("OTA: copying "+tasmota.wd + to, 2)
9+
if !path.exists(to)
10+
try
11+
# tasmota.log("f_in="+tasmota.wd + from)
12+
var f_in = open(tasmota.wd + from)
13+
var f_content = f_in.readbytes()
14+
f_in.close()
15+
var f_out = open(to, "w")
16+
f_out.write(f_content)
17+
f_out.close()
18+
except .. as e,m
19+
tasmota.log("OTA: Couldn't copy "+to+" "+e+" "+m,2)
20+
return false
21+
end
22+
return true
23+
end
24+
return true
25+
end
26+
27+
import path
28+
29+
# copy some samples files from autoconf
30+
# to filesystem for end user speed up learn
31+
cp("_autoexec.be", "autoexec.be")
32+
33+
# Done

raw/esp32/DenkyD4_V1.3/init.bat

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Br load("DenkyD4_V1.3.autoconf#cp2fs.be")
2+
Template {"NAME":"Denky D4 (v1.3)","GPIO":[32,0,0,0,1,0,0,0,0,1,1376,1,0,0,0,0,0,640,608,0,0,0,0,0,0,0,5632,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
3+
Module 0
4+
5+
; All these parameters are saved onto flash device
6+
; only once when autoconf is activated or
7+
; when it's removed and activated again
8+
; ===================================================
9+
10+
; Disable Boot Loop Detection
11+
SetOption65 1
12+
13+
; define OTA Url
14+
OtaUrl https://github.com/NicolasBernaerts/tasmota/raw/master/teleinfo/binary/tasmota32-teleinfo-denkyd4.bin
15+
16+
; # Set auto timezone
17+
Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120
18+
19+
; # Set Teleinfo in legacy (historique) mode at 1200 baud.
20+
; EnergyConfig Historique
21+
22+
; # Set Teleinfo in stadard mode at 9600 baud.
23+
; EnergyConfig Standard

raw/esp32/DenkyD4_V1.3a/_autoexec.be

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file does nothing it just contains some
2+
# examples to suit your needs depending on project
3+
# It will be copied into filesystem to be editable
4+
# =====================================================
5+
6+
# Set auto timezone
7+
#tasmota.cmd("Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120")
8+
9+
# Set Teleinfo in legacy (historique) mode at 1200 baud.
10+
#tasmota.cmd("EnergyConfig Historique")
11+
12+
# Set Teleinfo in Standar mode at 9600 baud.
13+
#tasmota.cmd("EnergyConfig Standard")
14+
15+
# Disable Boot Loop Detection
16+
#tasmota.cmd("SetOption65 1")
17+
18+
# Avoid conflict between native WS2812 and Berry control
19+
# disables native WS2812 (default Scheme is 0)
20+
#tasmota.cmd("Scheme 14")

raw/esp32/DenkyD4_V1.3a/cp2fs.be

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copy teleinfo driver to file system to be end user editable
2+
3+
# simple function to copy from autoconfig archive to filesystem
4+
# return true if ok
5+
def cp(from, to)
6+
import path
7+
if to == nil to = from end # to is optional
8+
tasmota.log("OTA: copying "+tasmota.wd + to, 2)
9+
if !path.exists(to)
10+
try
11+
# tasmota.log("f_in="+tasmota.wd + from)
12+
var f_in = open(tasmota.wd + from)
13+
var f_content = f_in.readbytes()
14+
f_in.close()
15+
var f_out = open(to, "w")
16+
f_out.write(f_content)
17+
f_out.close()
18+
except .. as e,m
19+
tasmota.log("OTA: Couldn't copy "+to+" "+e+" "+m,2)
20+
return false
21+
end
22+
return true
23+
end
24+
return true
25+
end
26+
27+
import path
28+
29+
# copy some samples files from autoconf
30+
# to filesystem for end user speed up learn
31+
cp("_autoexec.be", "autoexec.be")
32+
33+
# Done

raw/esp32/DenkyD4_V1.3a/init.bat

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
Br load("DenkyD4_V1.3a.autoconf#cp2fs.be")
2+
Template {"NAME":"Denky D4 (v1.3a)","GPIO":[32,0,0,0,1,0,0,0,0,1,1376,1,0,0,0,0,0,640,608,0,0,0,0,0,0,0,5632,0,0,0,0,0,0,0,0,0],"FLAG":0,"BASE":1}
3+
Module 0
4+
5+
; All these parameters are saved onto flash device
6+
; only once when autoconf is activated or
7+
; when it's removed and activated again
8+
; ===================================================
9+
10+
; Disable Boot Loop Detection
11+
SetOption65 1
12+
13+
; define OTA Url
14+
OtaUrl https://github.com/NicolasBernaerts/tasmota/raw/master/teleinfo/binary/tasmota32-teleinfo-denkyd4.bin
15+
16+
; # Set auto timezone
17+
Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120
18+
19+
; # Set Teleinfo in legacy (historique) mode at 1200 baud.
20+
; EnergyConfig Historique
21+
22+
; # Set Teleinfo in stadard mode at 9600 baud.
23+
; EnergyConfig Standard

raw/esp32/Wemos_Teleinfo/_autoexec.be

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# This file does nothing it just contains some
2+
# examples to suit your needs depending on project
3+
# It will be copied into filesystem to be editable
4+
# =====================================================
5+
6+
# Set auto timezone
7+
#tasmota.cmd("Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120")
8+
9+
# Set Teleinfo in legacy (historique) mode at 1200 baud.
10+
#tasmota.cmd("EnergyConfig Historique")
11+
12+
# Set Teleinfo in Standar mode at 9600 baud.
13+
#tasmota.cmd("EnergyConfig Standard")
14+
15+
# Disable Boot Loop Detection
16+
#tasmota.cmd("SetOption65 1")
17+
18+
# Avoid conflict between native WS2812 and Berry control
19+
# disables native WS2812 (default Scheme is 0)
20+
#tasmota.cmd("Scheme 14")

raw/esp32/Wemos_Teleinfo/cp2fs.be

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Copy teleinfo driver to file system to be end user editable
2+
3+
# simple function to copy from autoconfig archive to filesystem
4+
# return true if ok
5+
def cp(from, to)
6+
import path
7+
if to == nil to = from end # to is optional
8+
tasmota.log("OTA: copying "+tasmota.wd + to, 2)
9+
if !path.exists(to)
10+
try
11+
# tasmota.log("f_in="+tasmota.wd + from)
12+
var f_in = open(tasmota.wd + from)
13+
var f_content = f_in.readbytes()
14+
f_in.close()
15+
var f_out = open(to, "w")
16+
f_out.write(f_content)
17+
f_out.close()
18+
except .. as e,m
19+
tasmota.log("OTA: Couldn't copy "+to+" "+e+" "+m,2)
20+
return false
21+
end
22+
return true
23+
end
24+
return true
25+
end
26+
27+
import path
28+
29+
# copy some samples files from autoconf
30+
# to filesystem for end user speed up learn
31+
cp("_autoexec.be", "autoexec.be")
32+
33+
# Done

raw/esp32/Wemos_Teleinfo/init.bat

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,25 @@
1+
Br load("Wemos_Teleinfo.autoconf#cp2fs.be")
12
Template {"NAME":"Wemos Teleinfo","GPIO":[1,1,1,1,1,1,1,1,1,1,1,1,1,1,1376,1,1,640,608,5632,1,1,0,1,0,0,0,1,1,1,1,1,1,1,1,1],"FLAG":0,"BASE":1}
23
Module 0
34

45
; All these parameters are saved onto flash device
5-
; so once configured, it's better to leave them in
6-
; file init.bat
6+
; only once when autoconf is activated or
7+
; when it's removed and activated again
78
; ===================================================
89

9-
; Set Teleinfo in legacy (historique) mode at 1200 baud.
10-
EnergyConfig Historique
10+
; Disable Boot Loop Detection
11+
SetOption65 1
1112

12-
; Set Teleinfo in standard mode at 9600 baud.
13-
; EnergyConfig Standard
13+
; define OTA Url
14+
OtaUrl https://github.com/NicolasBernaerts/tasmota/raw/master/teleinfo/binary/tasmota32-teleinfo.bin
1415

15-
; Enable sending of all frames in raw mode
16-
EnergyConfig Full
16+
; # Set auto timezone
17+
Backlog0 Timezone 99; TimeStd 0,0,10,1,3,60; TimeDst 0,0,3,1,2,120
1718

18-
; Send only each 1 on 10 frames received
19-
EnergyConfig Skip 9
19+
; # Set Teleinfo in legacy (historique) mode at 1200 baud.
20+
; EnergyConfig Historique
2021

22+
; # Set Teleinfo in stadard mode at 9600 baud.
23+
; EnergyConfig Standard
2124

2225

0 commit comments

Comments
 (0)