Autor Thema: Sonoff Switch Working as Thermostat  (Gelesen 463 mal)

Offline Wanman

  • New Member
  • *
  • Beiträge: 8
Sonoff Switch Working as Thermostat
« am: 07 Februar 2018, 22:36:02 »
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,

Offline RaspiLED

  • Hero Member
  • *****
  • Beiträge: 1635
  • Es begann alles so klein ;-)
Antw:Sonoff Switch Working as Thermostat
« Antwort #1 am: 08 Februar 2018, 19:48:57 »
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, ...

Offline Wanman

  • New Member
  • *
  • Beiträge: 8
Antw:Sonoff Switch Working as Thermostat
« Antwort #2 am: 08 Februar 2018, 21:45:04 »
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

Offline RaspiLED

  • Hero Member
  • *****
  • Beiträge: 1635
  • Es begann alles so klein ;-)
Sonoff Switch Working as Thermostat
« Antwort #3 am: 11 Februar 2018, 16:09:24 »
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, ...
« Letzte Änderung: 11 Februar 2018, 16:11:44 von RaspiLED »
Raspberry Pi mit FHEM, CUL, Signalduino, MySensors, HomeBridge, Presence, WifiLight2, Bravia, ...