Skip to content

Latest commit

 

History

History
49 lines (35 loc) · 5.63 KB

SwitchOnOption_EN.md

File metadata and controls

49 lines (35 loc) · 5.63 KB

Switch-on option

The switch-on option can be used to optimally support the SG-Ready feature of heat pumps.

Switching on the SG-Ready input corresponds to an offer to the heat pump it does not have to accept. So that non-acceptance of the switch-on option does not result in other devices under the control of the Sunny Home Manager being slowed down unnecessarily, non-acceptance of the switch-on option within a certain period of time results in the current timeframe being released.

Einschaltoption

To do this, the heat pump and SG-Ready must each be created as an independent device in the Smart Appliance Enabler.

Both devices share a physical meter that is assigned to both devices in the Smart Appliance Enabler as Master/Slave Meter. The master meter must be configured so that the power consumption is allocated to the slave when the slave switch is on:

Master-Zähler bei Einschaltoption

The switch on the Heat pump device switches and/or signals the switching status of the heat pump, while the switch on the SG-Ready-Input device switches the SG-Ready input.

For the SG-Ready feature, a Schedule with excess energy is used, which must be assigned to the device SG-Ready-Input in the Smart Appliance Enabler.

As soon as a switch-on request for the SG-Ready-Input appliance is received from the Sunny Home Manager, the SG-Ready input is switched on. If the power consumption of the heat pump appliance exceeds the value specified in the power threshold within the switch-on detection duration, this is recognized as switching on of the appliance and the timeframe that led to the switching on of the SG-Ready input is remains active. Otherwise, the current timeframe is released after the switch-on detection duration has expired.

After switching on the device Heat pump has been detected, the switch-off detection is active. This means that the switching off of the heat pump appliance is detected as soon as the power consumption remains below the power threshold for the switch-off detection duration. If the switch-off has been detected, the current timeframe is released.

Log

If a control request is received from the Sunny Home Manager for the control of the SG-Ready-Input device, the log contains entries that show the SG-Ready-Input device being switched on and subsequent waiting for the Heat pump device to be switched on:

$ grep SwitchOnOption /tmp/rolling-2022-10-23.log
2022-10-23 10:20:09,450 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:113] F-00000001-000000000008-00: Setting switch state to on
2022-10-23 10:20:09,452 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.WrappedControl [WrappedControl.java:211] F-00000001-000000000008-00: Setting wrapped appliance switch to on
2022-10-23 10:20:10,172 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:66] F-00000001-000000000008-00: on=true averagePower=0
2022-10-23 10:20:10,175 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.WrappedControl [WrappedControl.java:190] F-00000001-000000000008-00: power value cache: min=0W max=0W values=37 maxAge=900s
2022-10-23 10:20:10,176 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:94] F-00000001-000000000008-00: Switch on not detected.
2022-10-23 10:20:30,178 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:66] F-00000001-000000000008-00: on=true averagePower=0
2022-10-23 10:20:30,182 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.WrappedControl [WrappedControl.java:190] F-00000001-000000000008-00: power value cache: min=0W max=0W values=38 maxAge=900s
2022-10-23 10:20:30,187 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:94] F-00000001-000000000008-00: Switch on not detected.
2022-10-23 10:20:50,177 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:66] F-00000001-000000000008-00: on=true averagePower=0
2022-10-23 10:20:50,182 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.WrappedControl [WrappedControl.java:190] F-00000001-000000000008-00: power value cache: min=0W max=0W values=39 maxAge=900s
2022-10-23 10:20:50,185 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:94] F-00000001-000000000008-00: Switch on not detected.
2022-10-23 10:21:10,181 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:66] F-00000001-000000000008-00: on=true averagePower=0

Webmin: In View Logfile enter SwitchOnOption after Only show lines with text and press Refresh.

If the appliance Heat pump has not switched on within the switch-on detection duration, the following entry is made in the log:

$ grep SwitchOnOption /tmp/rolling-2022-10-23.log
2022-10-23 10:35:30,193 DEBUG [MQTT Call: F-00000001-000000000008-00-SwitchOnOption-0] d.a.s.c.SwitchOnOption [SwitchOnOption.java:82] F-00000001-000000000008-00: No switch on detected within switchOnDetectionDuration=900s. Removing timeframe interval.

Webmin: In View Logfile enter SwitchOnOption after Only show lines with text and press Refresh.