arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.2k stars 4.81k forks source link

Support for SONOFF Smart Power Meter Switch | POW Elite #15856

Closed nobodyman1 closed 2 years ago

nobodyman1 commented 2 years ago

PROBLEM DESCRIPTION

Is it possible to use Tasmota on the new SONOFF POW Elite? I found some Pictures here. It´s based on an ESP32 and the power measuring is done with a CSE7759B (same as used in SONOFF POW R2). But what´s about the LCD driver?

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

EXPECTED BEHAVIOUR

A clear and concise description of what you expected to happen.

SCREENSHOTS

If applicable, add screenshots to help explain your problem.

ADDITIONAL CONTEXT

Add any other context about the problem here.

(Please, remember to close the issue when the problem has been addressed)

Elekronixx commented 7 months ago

Hi, clear - it's onewire. But the original POWR320D has not only one onewire device and so also not a given GPIO. But I will flash tasmota and check what I can do in the web interface. thank you

pmknowles commented 7 months ago

Golden rule. If you want to add things not originally supported don't use a template. Choose the generic device and put in the GPIO manually as Blakadder's page. People forget that the template is there and try to change things and not realise why it doesn't work.


From: Elekronixx @.> Sent: 21 March 2024 09:38 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

Hi, clear - it's onewire. But the original POWR320D has not only one onewire device and so also not a given GPIO. But I will flash tasmota and check what I can do in the web interface. thank you

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2011754003, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM2AAD2D7WRAD2K4LGLYZKTB3AVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBRGE3TKNBQGAZQ. You are receiving this because you were mentioned.Message ID: @.***>

sfromis commented 7 months ago

No reason to put in the gpios manually, just start from the existing template, you can change pins and name in the web interface, and save it. "Configure Template" instead of "Configure Module".

pmknowles commented 7 months ago

And there are loads of people who have come on here saying I did x and it didn't work. A few emails later we find that they had a template applied (or not) and were making the changes in the wrong place... It only takes a few minutes to enter the 10 or so parameters and you know it will work.


From: sfromis @.> Sent: 21 March 2024 09:49 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

No reason to put in the gpios manually, just start from the existing template, you can change pins and name in the web interface, and save it. "Configure Template" instead of "Configure Module".

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2011774232, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM6ID35KNNTLLKVC45DYZKUIZAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBRGE3TONBSGMZA. You are receiving this because you were mentioned.Message ID: @.***>

Elekronixx commented 7 months ago

OK, I got it running via AutoConf and Sonoff POWR316D (LEDs, Display, Relay on/OFF). Then I configure on base of the AutoConf before the pin GPIO19 as DS18x20 1 and rename the config to 'Sonoff POWR316D+DS18B20'. Then I remove the AutoConf and reboot (230V Power Cycle) - i still have the display and the GPIO configured. But I estimate to get also a temperature on the Webpage ?! Is this the mistace you @pmknowles talk from ?

gpio all gives me "GPIO19":{"1312":"DS18x201"}

12:29:46.377 CMD: gpio all
12:29:46.393 RSL: RESULT = {"GPIO0":{"32":"Button1"},"GPIO1":{"0":"None"},"GPIO2":{"0":"None"},"GPIO3":{"0":"None"},"GPIO4":{"0":"None"},"GPIO5":{"576":"LedLink_i"},"GPIO6":{"0":"None"},"GPIO7":{"0":"None"},"GPIO8":{"0":"None"},"GPIO9":{"0":"None"},"GPIO10":{"0":"None"},"GPIO11":{"0":"None"},"GPIO12":{"0":"None"},"GPIO13":{"224":"Relay1"},"GPIO14":{"9280":"TM1621 DAT"},"GPIO15":{"0":"None"},"GPIO16":{"3104":"CSE7766 Rx"},"GPIO17":{"0":"None"},"GPIO18":{"320":"Led_i1"},"GPIO19":{"1312":"DS18x201"},"GPIO20":{"0":"None"},"GPIO21":{"0":"None"},"GPIO22":{"0":"None"},"GPIO23":{"0":"None"},"GPIO24":{"0":"None"},"GPIO25":{"9184":"TM1621 CS"},"GPIO26":{"9248":"TM1621 RD"},"GPIO27":{"9216":"TM1621 WR"},"GPIO32":{"0":"None"},"GPIO33":{"0":"None"},"GPIO34":{"0":"None"},"GPIO35":{"0":"None"},"GPIO36":{"0":"None"},"GPIO37":{"0":"None"},"GPIO38":{"0":"None"},"GPIO39":{"0":"None"}}

Clear, that I at first have soldered the 4,7k to3.3V and connect the DS18B20 ! :-)

2024-03-21 12_31_28 2024-03-21 12_31_13

minichma commented 7 months ago

From #19373 one could conclude it doesn't work From letscontrolit one could conclude it should work.

I ordered some WTS01 and have a look myself and let you know.

@arendst Any findings regarding the WTS01?

arendst commented 7 months ago

Yes. I cannot get the WTS01 to work reliably. So final fix is remove the bulge and configure as DS18x20

tof92130 commented 7 months ago

Hello,

I have installed tasmota32-fatory.bin from the GitHub tasiota install page.

Flash was successful but it doesn't work on the POW Elite device, no Wifi network and I have this message that continuously repeat.

Any idea ?

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:184
load:0x40078000,len:12732
ho 0 tail 12 room 4
load:0x40080400,len:2908
entry 0x400805c4

00:00:00.002-215/50 HDW: ESP32-D0WD-V3 v3.0 
00:00:00.013-213/50 UFS: FlashFS mounted with 312 kB free
00:00:00.016-213/50 TFS: File '.settings' not found
00:00:00.019-213/50 TFS: File '.settings.lkg' not found
00:00:00.019-213/50 CFG: Utiliser par défaut
00:00:00.134 QPC: Reset
00:00:00.552 BRY: Berry initialized, RAM used 5180 bytes
00:00:00.573 Projet tasmota - Tasmota Version 13.4.0(tasmota32)-2_0_14(2024-02-14T16:22:51)
00:00:00.963 WIF: WifiManager actif pour 3 minutes
ets Jul 29 2019 12:21:46
arendst commented 7 months ago

Yes. Start reading this threat from the beginning and find a solution to your problem.

tof92130 commented 7 months ago

this one was also needed : https://github.com/arendst/Tasmota/discussions/19979#discussioncomment-8263822

PhillyGilly commented 7 months ago

I have two THR316D devices and one SI7021 sensor and one DS18x20 sensor. I flashed both with v13.4 tasmota.factory32.bin. I can configure both to work with the SI7021 sensor and after applying the DhtDelay 500,40 they work reliably. image However I cannot get either to work with the DS sensor. I select the correct device to GPIO25: image But the display does not come on and nothing is showing in tasmota: image Any ideas?

pmknowles commented 7 months ago

If you're getting nothing at all it's generally a wiring issue


From: PhillyGilly @.> Sent: 04 April 2024 18:48 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

I have two THR316D devices and one SI7021 sensor and one DS18x20 sensor. I flashed both with v13.4 tasmota.factory32.bin. I can configure both to work with the SI7021 sensor and after applying the DhtDelay 500,40 they work reliably. image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/0404318e-7e43-4f6a-a068-0ee4fd796687 However I cannot get either to work with the DS sensor. I select the correct device to GPIO25: image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/9edc7aa2-0c72-48f9-a4d2-cd0d1fab3e66 But the display does not come on and nothing is showing in tasmota: image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/cdd5b7d1-9831-4dd0-b28f-f30ff444b50a Any ideas?

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2037826694, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM3ITVLGKLA36DFZ563Y3WG7BAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTG44DENRWHE2A. You are receiving this because you were mentioned.Message ID: @.***>

Tasmodo commented 7 months ago

@PhillyGilly how did you connect the sensor to the device?

PhillyGilly commented 7 months ago

If you're getting nothing at all it's generally a wiring issue


From: PhillyGilly @.> Sent: 04 April 2024 18:48 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

I have two THR316D devices and one SI7021 sensor and one DS18x20 sensor. I flashed both with v13.4 tasmota.factory32.bin. I can configure both to work with the SI7021 sensor and after applying the DhtDelay 500,40 they work reliably. image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/0404318e-7e43-4f6a-a068-0ee4fd796687 However I cannot get either to work with the DS sensor. I select the correct device to GPIO25: image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/9edc7aa2-0c72-48f9-a4d2-cd0d1fab3e66 But the display does not come on and nothing is showing in tasmota: image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/cdd5b7d1-9831-4dd0-b28f-f30ff444b50a Any ideas?

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2037826694, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM3ITVLGKLA36DFZ563Y3WG7BAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTG44DENRWHE2A. You are receiving this because you were mentioned.Message ID: @.***>

If I set GPIO25 to SI7021 but don't plug in the sensor it shows with null values. So why doesn't the THR316D show DS18x20 at the top of the page even with a null value? The temperature sensor is plugged in by its original RJ9 plug. On other Tasmota devices you can set it up and then plug in the sensor. So why not here?

pmknowles commented 7 months ago

Because they are different types of devices the DS is 1-wire the SI is IC2. They work in totally different ways.


From: PhillyGilly @.> Sent: 04 April 2024 20:43 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

If you're getting nothing at all it's generally a wiring issue


From: PhillyGilly @.> Sent: 04 April 2024 18:48 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856https://github.com/arendst/Tasmota/issues/15856)

I have two THR316D devices and one SI7021 sensor and one DS18x20 sensor. I flashed both with v13.4 tasmota.factory32.bin. I can configure both to work with the SI7021 sensor and after applying the DhtDelay 500,40 they work reliably. image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/0404318e-7e43-4f6a-a068-0ee4fd796687 However I cannot get either to work with the DS sensor. I select the correct device to GPIO25: image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/9edc7aa2-0c72-48f9-a4d2-cd0d1fab3e66 But the display does not come on and nothing is showing in tasmota: image.png (view on web)https://github.com/arendst/Tasmota/assets/56273663/cdd5b7d1-9831-4dd0-b28f-f30ff444b50a Any ideas?

— Reply to this email directly, view it on GitHub#15856 (comment)https://github.com/arendst/Tasmota/issues/15856#issuecomment-2037826694, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM3ITVLGKLA36DFZ563Y3WG7BAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTG44DENRWHE2A. You are receiving this because you were mentioned.Message ID: @.***>

If I set GPIO25 to SI7021 but don't plug in the sensor it shows with null values. So why doesn't the THR316D show DS18x20 at the top of the page even with a null value? The temperature sensor is plugged in by its original RJ9 plug. On other Tasmota devices you can set it up and then plug in the sensor. So why not here?

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2038075214, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM74OMHMB6AEEB6T5JTY3WUODAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMBTHAYDONJSGE2A. You are receiving this because you were mentioned.Message ID: @.***>

PhillyGilly commented 7 months ago

There is nothing plugged in (although it makes no difference) but when I set GPIO25 to DS18x20 like this image I get nothing below the Title image However if I set GPIO25 to other random inputs I get image image image image

This makes me think that there may be a problem in using DS18x20 relating to the discussion above comment https://github.com/arendst/Tasmota/issues/15856#issuecomment-2012385163

sfromis commented 7 months ago

It is quite normal that the DS18x20 driver will not give anything on the front page, or in JSON, unless the sensor is detected. With Weblog 3 enabled, you should see this during boot: DSB: Sensors found 1 Obviously, the number 0 means nothing detected, and would be bad if you have it plugged in.

Littlesloths commented 7 months ago

did you look into this?: https://github.com/arendst/Tasmota/discussions/19373

new DS18x20 "with bulge" will not work as they come. You need to cut the bulge first and connect manually...

sfromis commented 7 months ago

In that case, the supplied device is WTS01, not DS18B20, even if the device incorporates a DS18B20 plus a MCU to bridge to a different protocol.

PhillyGilly commented 7 months ago

did you look into this?: #19373

new DS18x20 "with bulge" will not work as they come. You need to cut the bulge first and connect manually...

Remarkably I didn't see the "bulge" inside my neatly coiled sensor. Great thank you.

sfromis commented 7 months ago

I'd not expect people to make new code for just one random relay device, when there are general projects working for lots of similar device.

S474N commented 6 months ago

Is it upgradeable THR316D via OTA Tasmota 12.5.0.4 to newest?

And how is final version of template? :D

HectorDRR commented 5 months ago

Yes. I cannot get the WTS01 to work reliably. So final fix is remove the bulge and configure as DS18x20

Hi @arendst , in the #19373 I've put a driver coded in Berry console that seem to work with the WTS01. It lacks of update web page, as I'm newbie to Berry and driver development. But I suppose that with the information I've published it could be implemented the driver directly in the Tasmota code for a next firmware revision. It save us to cut the cable of the WTS01... ;)

arendst commented 5 months ago

Your drivers works perfectly and I'm not sure if I should rewrite it in C and hardcode it.

This is a perfect example of berry extending Tasmota!!!

dx136 commented 5 months ago

An idea for extra GPIO pins on THR3XXD. @Longlife4ever

Here's a question/idea: THR316 and THR320 appear to be identical except for the main relay; presumably the PCB is common, with all the same traces. On the blakadder template site, I see that the THR316 uses GPIO21 for the (monostable) 16A relay; THR3320 uses GPIO19 & GPIO22 for the (bi-stable) 20A relay.

Wouldn't it be relatively easy to access the unused solder pads near the non-populated relay in each case? e.g. on the THR316, the unused solder pads for GPIO19 + GPIO22 in the exposed space where the 20A relay would go?

I ask because this may represent simpler, easier soldering for those who aren't willing/capable to attempt to access SMD solder pads in the relatively crowded area for GPIO26. If this makes sense, it shouldn't be too hard to reverse-engineer to determine where the GPIO pins terminate near the relay.

Comments, suggestions, feedback are solicited & welcome. Thanks.

sfromis commented 5 months ago

If you want to suggest an idea, you should not really ask about ease of access to such pads, but have an answer about whether it would be feasible.

I'd not really expect holes for "the other" relay type (significant size difference) to be connected directly to the ESP32, as it looks like 5V relays, where the ESP32 only produces 3.3V signals. However, I've not poked around on the board.... https://sonoff.tech/wp-content/uploads/2023/02/SONOFF_THR3_Photos-1.pdf

If you're fine with SMD level soldering at the 3.3V end of that setup, that may be possible, but I thought that SMD level soldering was what you wanted to avoid :grin:

capoccio1 commented 4 months ago

Hi, I just flashed my TH316D with tasmota: Screenshot 2024-07-10 164558 I can't make the thermostat work, i.e. I don't understand what commands to give to activate the relays at a set temperature, can you help me? Thank you

capoccio1 commented 4 months ago

at irregular time intervals on the THR the display turns off and no longer shows any data Screenshot 2024-07-10 165008

capoccio1 commented 4 months ago

I used the automatic configuration with THS01 sensor: Screenshot 2024-07-10 165414 Screenshot 2024-07-10 165544

Littlesloths commented 4 months ago

I guess you should give "DhtDelay 500,40" a try. Just google for it to get more background.

capoccio1 commented 4 months ago

perfect, I entered the DhtDelay 480.40. Can you explain to me how to set the thermostat function? Screenshot 2024-07-10 171536

capoccio1 commented 4 months ago

I would like to turn on the relay at 30° and turn it on at 29°, how can I do it?

Littlesloths commented 4 months ago

just an example you might use: rule1 on Energy#Power > 5 do WebSend [D1_1] dimmer 80 endon on Energy#Power < 5 do WebSend [D1_1] dimmer 0 power off endon Instead websend (act on another remote device) you may enter the correct terms.... I've seen you elaborated with rules before... Instead a rule you may also use Berry, depending on how complex your project will end up...

capoccio1 commented 4 months ago

my project is very simple, I just need to activate the relay at a temperature x and at a temperature y deactivate it, nothing could be simpler. Excuse my ignorance but I've been looking for these commands for days but I can't find anything, or if there is a simpler way to set a thermostat let me know. Thanks for your kindness...

capoccio1 commented 4 months ago

rule1 on Energy#Power > 5 do WebSend [D1_1] dimmer 80 endon on Energy#Power < 5 do WebSend [D1_1] dimmer 0 power off endon

can you comment these commands so I can understand.

capoccio1 commented 4 months ago

tasmota made a great firmware possible that didn't implement a web page to set the thermostat?

capoccio1 commented 4 months ago

I found these commands but they are not accepted from the console Screenshot 2024-07-10 180841

capoccio1 commented 4 months ago

To set a thermostat perhaps you need to enter the MQTT parameters? Screenshot 2024-07-10 192408

pmknowles commented 4 months ago

Please read this page Thermostat - Tasmotahttps://tasmota.github.io/docs/Thermostat/ Thermostat is not in the pre-compiled binaries - click the red banner at the top of the page


From: capoccio1 @.> Sent: 10 July 2024 17:10 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

I found these commands but they are not accepted from the console Screenshot.2024-07-10.180841.png (view on web)https://github.com/arendst/Tasmota/assets/64582441/e3288ec1-61c6-4583-8c17-55dadfde9d6f

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2220935320, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPMZKTNWCTYSAZVC2YFDZLVMIXAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRSGA4TGNJTGIYA. You are receiving this because you were mentioned.Message ID: @.***>

capoccio1 commented 4 months ago

ok I understand it's not in the binary but is there a way to have this function?

I have to activate the relay when the temperature exceeds 30° and deactivate it when it is at 29.8°, what commands should I use?

capoccio1 commented 4 months ago

this example is right for me, but I don't know where to insert these commands

Screenshot 2024-07-10 193141

pmknowles commented 4 months ago

There are loads of examples in this forum - depending on which sensor you are using rule1 on tele-ds18b20#temperature>30 do power1 1 endon on tele-ds18b20#temperature<29.8 do power1 0 endon rule1 1

Use tele- so that the rule only triggers on the teleperiod other wise it might repeatedly cycle with such close setpoints


From: capoccio1 @.> Sent: 10 July 2024 18:30 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

ok I understand it's not in the binary but is there a way to have this function?

I have to activate the relay when the temperature exceeds 30° and deactivate it when it is at 29.8°, what commands should I use?

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2221081566, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM75PLCKRXUCOGLSKG3ZLVVUVAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRSGEYDQMJVGY3A. You are receiving this because you were mentioned.Message ID: @.***>

pmknowles commented 4 months ago

WebSend Send a command to Tasmota host over http. If a command starts with a / it will be used as a link. [:,:]

= hostname or IP address. = port for the device if not the default 80 = enter username of the device you're sending the command to = enter password of the device you're sending the command to = command and payload example 1: [] POWER1 ON sends http:///cm?cmnd=POWER1 ON example 2: WebSend [myserver.com] /fancy/data.php?log=1234 sends http://myserver.com/fancy/data.php?log=1234 ________________________________ From: capoccio1 ***@***.***> Sent: 10 July 2024 16:47 To: arendst/Tasmota ***@***.***> Cc: pmknowles ***@***.***>; Mention ***@***.***> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856) rule1 on Energy#Power > 5 do WebSend [D1_1] dimmer 80 endon on Energy#Power < 5 do WebSend [D1_1] dimmer 0 power off endon can you comment these commands so I can understand. — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: ***@***.***>
capoccio1 commented 4 months ago

the sensor I use is THS01, so the command will be:

Screenshot 2024-07-10 212832

tele-SI7021#temperature>30 do power1 1 tele-SI7021#temperature<29.8 do power1 0

Right?

pmknowles commented 4 months ago

That's a MQTT message to send to the device.

If entering in console strip the cmnd/Tasmota_Name/ and just the command


From: capoccio1 @.> Sent: 10 July 2024 18:34 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

this example is right for me, but I don't know where to insert these commands

Screenshot.2024-07-10.193141.png (view on web)https://github.com/arendst/Tasmota/assets/64582441/bd174e6d-9c93-4077-a61a-89ade2a5a1b2

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2221087296, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM7DZPLO73JDUAP5QKTZLVWB3AVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRSGEYDQNZSHE3A. You are receiving this because you were mentioned.

pmknowles commented 4 months ago

No you need on before the trigger and endon after the command

rule1 on tele-SI7021#temperature>30 do power1 1 endon on tele-SI7021#temperature<29.8 do power1 1 endon rule1 1

Bear in mind that you are trying to control with a 0.2C 'dead band' using a sensor with +/- 0.4C accuracy. You don't say what you are trying to control the temperature of but you need to consider the time constant and thermal mass of what is being heated otherwise you will be constantly over and under shooting the set point or constantly switching on/off. Depending on what you are heating you may be better giving 'pulses' of heat and then wait for the response of the system


From: capoccio1 @.> Sent: 10 July 2024 20:30 To: arendst/Tasmota @.> Cc: pmknowles @.>; Mention @.> Subject: Re: [arendst/Tasmota] Support for SONOFF Smart Power Meter Switch | POW Elite (Issue #15856)

the sensor I use is THS01, so the command will be:

Screenshot.2024-07-10.212832.png (view on web)https://github.com/arendst/Tasmota/assets/64582441/d6952db5-383e-420f-9573-b0cff52164a0

tele-SI7021#temperature<29.8 do power1 0

— Reply to this email directly, view it on GitHubhttps://github.com/arendst/Tasmota/issues/15856#issuecomment-2221270465, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI5KPM6BSCPCA4VM5FHQJKTZLWDTZAVCNFSM5ZVP735KU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TEMRSGEZDOMBUGY2Q. You are receiving this because you were mentioned.

capoccio1 commented 4 months ago

yes you are right I wrote the temperature data just for an example and to understand the command to send. Sorry but I don't know how to send MQTT commands, from webgui I have the console panel and in the settings I have an MQTT window:

Screenshot 2024-07-11 000303

Screenshot 2024-07-11 000356

Where should the command to be sent be inserted?

capoccio1 commented 4 months ago

rule1 on tele-SI7021#temperature>30 do power1 1 endon on tele-SI7021#temperature<29 do power1 1 endon rule1 1

I sent this command from the console, when the temperature exceeded 30° the relay tripped but not immediately after a delay of about 1 minute. Now I try to make it go below 29° hoping that the relay goes back to rest

capoccio1 commented 4 months ago

I sent this command from the console:

rule1 on tele-SI7021#temperature>30 do power1 1 endon on tele-SI7021#temperature<29 do power1 0 endon rule1 1

WAAAUU it works perfectly, then I noticed that with the remote function I have a notable delay in turning the relay on and off. I sent the modified command like this:

rule1 on SI7021#temperature>30 do power1 1 endon on SI7021#temperature<29 do power1 0 endon rule1 1

now the relay trips quickly once the set temperatures have been reached.

Loving thanks to pmknowles for his precious help.

capoccio1 commented 4 months ago

To put the icing on the cake all you need to do is memorize this command:

rule1 on SI7021#temperature>30 do power1 1 endon on SI7021#temperature<29 do power1 0 endon rule1 1

otherwise if I turn the device off when I turn it back on it loses the programming.