Advertisement
ottelo15

Sonoff Tasmota 3Stufenheizer

Jan 23rd, 2025
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 1.57 KB | None | 0 0
  1. ; von thomas0001@web.de
  2. ; Script zum Schalten eines 3-Stufen Heizer bei PV-Überschuss via Sonoff Dual r3 (schaltet Heizer)
  3. >D
  4. min1=50
  5. min2=60
  6. min3=70
  7. max1=1000
  8. max2=800
  9. max3=1000
  10. ; IP vom Sonoff Dual r3
  11. url="[192.168.178.58]"
  12. interval1=6
  13. start=0
  14. stop=0
  15. Stufe=0
  16. Tag=0
  17. a=0
  18. Power_curr=0
  19. >T
  20. Power_curr=0-W#Power_curr
  21. >S
  22. start=sunrise+120
  23. stop=sunset-45
  24. if time==stop
  25. {
  26. then
  27. =>WebSend %url% Power1 off
  28. =>WebSend %url% Power2 off
  29. }
  30. if ((time<stop) and (time>start))
  31. {
  32. Tag=1
  33. else
  34. Tag=0
  35. }
  36. if upsecs%interval1==0
  37. {
  38. a=0
  39. if ((Power_curr>max1) and (Tag==1) and (a==0) and (Stufe==0))
  40. {
  41. =>WebSend %url% Power1 on
  42. Stufe=1
  43. a=1
  44. }
  45. if ((Power_curr<min1) and (Tag==1) and (a==0) and (Stufe<=1))
  46. {
  47. =>WebSend %url% Power1 off
  48. =>WebSend %url% Power2 off
  49. Stufe=0
  50. a=1
  51. }
  52. if ((Power_curr>max2) and (Tag==1) and (a==0) and (Stufe==1))
  53. {
  54. =>WebSend %url% Power1 off
  55. =>WebSend %url% Power2 on
  56. Stufe=2
  57. a=1
  58. }
  59. if ((Power_curr<min2) and (Tag==1) and (a==0) and (Stufe==2))
  60. {
  61. =>WebSend %url% Power2 off
  62. =>WebSend %url% Power1 on
  63. Stufe=1
  64. a=1
  65. }
  66. if ((Power_curr>max3) and (Tag==1) and (a==0) and (Stufe==2))
  67. {
  68. =>WebSend %url% Power1 on
  69. =>WebSend %url% Power2 on
  70. Stufe=3
  71. a=1
  72. }
  73. if ((Power_curr<min3) and (Tag==1) and (a==0) and (Stufe==3))
  74. {
  75. =>WebSend %url% Power1 off
  76. =>WebSend %url% Power2 on
  77. Stufe=2
  78. a=1
  79. }
  80. }      
  81. >B
  82. =>sensor53 r
  83. >M 1
  84. +1,3,s,0,9600,W
  85. 1,77070100100700ff@1,Akt. Verbrauch,W,Power_curr,1
  86. 1,77070100010800ff@1000,Bezug 1.8.0,KWh,Total_in,2
  87. 1,77070100020800ff@1000,Einsp. 2.8.0,KWh,Total_out,2
  88. 1,77070100000009ff@#,Zähler Nr,,Meter_number,0
  89. #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement