Sonoff Switch Working as Thermostat

Begonnen von Wanman, 07 Februar 2018, 22:36:02

Vorheriges Thema - Nächstes Thema

Wanman

Hi everyone,

I am a very basic FHEM user and relied on standard modules thus far. My main use is EQ3 Max! rad stats and Homematic switches controlled by the weekday timer. I would like to control some electric radiators and have thus far managed to get a sonoff switch working with basic on/off control plus managing it either from the weekday timer or using the thermostat using a dummy setlist.

The problem I have is that I cannot combine the setlist and the timer so I the switch only operates at certain times. I have tried the if "value" && "value" command to combine term and timer but it fails with a perl error.

My programming skills are not great and have only got this far by cutting and pasting other examples. Ideally it would be great to use the sonoff like a rad valve with time and temperature control but that is beyond my pay grade.

Any help or guidance appreciated.

Cheers,

RaspiLED

Hi,
We do not have what you habe ;-) so please paste also lists of your defined devices in code tags:


list HM_Dev1


Warm regards,
Arnd


Raspi2 mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, Bravia, ...
Raspberry Pi mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, WifiLight2, Bravia, ...

Wanman

Not quite sure what you mean by code tags? Definitions below?

define espBridge ESPEasy bridge 8383
define Master_Bath weekprofile MAX_1135a6
define family_bath weekprofile MAX_1134fc
define SVG_FileLog_MAX_1135a6_1 SVG FileLog_MAX_1135a6:SVG_FileLog_MAX_1135a6_1:CURRENT
define SwitchTimes WeekdayTimer ESPEasy_S_Test_Switch en 0|06:00|off 12|06:00|off 3|23:00|on 456|06:00|off 456|23:00|on
define ESPEasy_S_Test_Switch ESPEasy 192.168.220.35 80 espBridge S_Test_Switch
define ESPEasy_S_Test2_Switch ESPEasy 192.168.220.36 80 espBridge S_Test2_Switch
define ESPEasy_S_Test2 ESPEasy 192.168.220.36 80 espBridge S_Test2
define ESPEasy_S_Test_Button ESPEasy 192.168.220.35 80 espBridge S_Test_Button
define ESPEasy_TH10_1_Switch ESPEasy 192.168.220.34 80 espBridge TH10_1_Switch
define FileLog_ESPEasy_TH10_1_Switch FileLog ./log/ESPEasy_TH10_1_Switch-%Y.log
define SVG_FileLog_ESPEasy_TH10_1_Switch_1 SVG FileLog_ESPEasy_TH10_1_Switch:SVG_FileLog_ESPEasy_TH10_1_Switch_1:CURRENT
define Stat dummy
define Thermostat_Switch_Mon at +*00:01:00 IF
define TH10_1_Sw_Times WeekdayTimer Dummy123 en 0|13:00|on 16:00|off

RaspiLED

#3
Hi,
Long texts here in the board should be posted in code tags for readibility purpose, like: [code]longtext[/code]
With the command
list ESPEasy_S_Test_Switch in the webgui commandline at the top, you should be able to dump all the infos for the device as text for posting here. I would like to see all relevant devices for your question ;-)
Warm regards
Arnd


Raspi2 mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, Bravia, ...
Raspberry Pi mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, WifiLight2, Bravia, ...