Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Master-/Slave-Zähler funktioniert nicht mit S0 #206

Closed
camueller opened this issue Feb 19, 2022 Discussed in #205 · 1 comment
Closed

Master-/Slave-Zähler funktioniert nicht mit S0 #206

camueller opened this issue Feb 19, 2022 Discussed in #205 · 1 comment
Assignees

Comments

@camueller
Copy link
Owner

Discussed in #205

Originally posted by ElsenerJunge February 18, 2022
Nachdem ich problemlos von 1.6.18 auf 2.0.2 aktualisiert habe, wollte ich den neuen Master-/Slave-Zähler nutzen, da dieser für die optionale Ansteuerung der Warmwasserwärmepumpe bei PV-Überschuss sehr praktisch ist. Leider funktioniert bei mir nach der Umstellung sowohl der Master- als auch der Slave-Zähler nach der Umstellung nicht mehr. Im Log erhalte ich die Meldung, dass kein Zugriff auf den GPIO-Port möglich ist. Wenn ich den Master-/Slave-Zähler-Mechanismus deaktiviere, funktioniert der Zugriff auf den GPIO-Port ohne Probleme, d. h. der neue pigpiod Dienst scheint grundsätzlich zu funktionieren. Mache ich etwas falsch oder gibt es noch ein Problem im Zusammenspiel mit S0-Zählern?

pi@Pi4IoT:~ $ grep S0 /tmp/rolling-2022-02-18.log
hier noch ohne Master-/Slave-Zähler

2022-02-18 21:53:34,898 DEBUG [Thread-4] d.a.s.m.MqttClient [MqttClient.java:133] F-xxxxxxxx-000000000002-00-MQTT-S0ElectricityMeter: Created MQTT client F-xxxxxxxx-000000000002-00-S0ElectricityMeter
2022-02-18 21:53:34,900 DEBUG [Thread-4] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:119] F-xxxxxxxx-000000000002-00: configured: GPIO=5 impulsesPerKwh=2000 minPulseDuration=15 pinPullResistance=PULL_UP
2022-02-18 21:53:34,904 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:270] F-xxxxxxxx-000000000002-00: Configuring GPIO for S0ElectricityMeter
2022-02-18 21:53:37,087 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:310] F-xxxxxxxx-000000000002-00: Starting S0ElectricityMeter
2022-02-18 21:53:37,087 DEBUG [Thread-4] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:126] F-xxxxxxxx-000000000002-00: Starting S0ElectricityMeter
2022-02-18 22:01:14,296 DEBUG [nioEventLoopGroup-2-2] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:191] F-xxxxxxxx-000000000002-00: S0 impulse detected on GPIO 5
2022-02-18 22:01:14,301 DEBUG [nioEventLoopGroup-2-2] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:195] F-xxxxxxxx-000000000002-00: power: 0W
2022-02-18 22:06:56,843 DEBUG [nioEventLoopGroup-2-2] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:191] F-xxxxxxxx-000000000002-00: S0 impulse detected on GPIO 5
2022-02-18 22:06:56,845 DEBUG [nioEventLoopGroup-2-2] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:195] F-xxxxxxxx-000000000002-00: power: 5W
2022-02-18 22:07:45,753 DEBUG [Thread-4] d.a.s.m.MqttClient [MqttClient.java:133] F-xxxxxxxx-000000000002-00-MQTT-S0ElectricityMeter: Created MQTT client F-xxxxxxxx-000000000002-00-S0ElectricityMeter
2022-02-18 22:07:45,754 DEBUG [Thread-4] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:119] F-xxxxxxxx-000000000002-00: configured: GPIO=5 impulsesPerKwh=2000 minPulseDuration=15 pinPullResistance=PULL_UP
2022-02-18 22:07:45,758 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:270] F-xxxxxxxx-000000000002-00: Configuring GPIO for S0ElectricityMeter
2022-02-18 22:07:47,474 INFO [Thread-4] d.a.s.a.Appliance [Appliance.java:310] F-xxxxxxxx-000000000002-00: Starting S0ElectricityMeter
2022-02-18 22:07:47,474 DEBUG [Thread-4] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:126] F-xxxxxxxx-000000000002-00: Starting S0ElectricityMeter

ab hier mit aktiviertem Master-/Slave-Mechanismus

2022-02-18 22:12:06,367 DEBUG [http-nio-8080-exec-3] d.a.s.w.SaeController [SaeController.java:338] F-xxxxxxxx-000000000002-00: Returning meter de.avanux.smartapplianceenabler.meter.S0ElectricityMeter@1a34f53
2022-02-18 22:12:35,513 DEBUG [http-nio-8080-exec-10] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:166] F-xxxxxxxx-000000000002-00: Stopping S0ElectricityMeter
2022-02-18 22:12:35,524 DEBUG [http-nio-8080-exec-10] d.a.s.m.MqttClient [MqttClient.java:168] F-xxxxxxxx-000000000002-00-MQTT-S0ElectricityMeter: disconnected from MQTT broker - was connected=true
2022-02-18 22:12:35,668 DEBUG [http-nio-8080-exec-10] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:166] F-xxxxxxxx-000000000002-00: Stopping S0ElectricityMeter
2022-02-18 22:12:35,669 WARN [http-nio-8080-exec-10] d.a.s.m.S0ElectricityMeter [GpioControllable.java:104] F-xxxxxxxx-000000000002-00: Configured for 5, but GPIO access disabled.
2022-02-18 22:12:36,501 DEBUG [http-nio-8080-exec-10] d.a.s.m.MqttClient [MqttClient.java:133] F-xxxxxxxx-000000000002-00-MQTT-S0ElectricityMeter: Created MQTT client F-xxxxxxxx-000000000002-00-S0ElectricityMeter
2022-02-18 22:12:36,502 DEBUG [http-nio-8080-exec-10] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:119] F-xxxxxxxx-000000000002-00: configured: GPIO=5 impulsesPerKwh=2000 minPulseDuration=15 pinPullResistance=PULL_UP
2022-02-18 22:13:32,116 DEBUG [http-nio-8080-exec-4] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:166] F-xxxxxxxx-000000000002-00: Stopping S0ElectricityMeter
2022-02-18 22:13:32,116 WARN [http-nio-8080-exec-4] d.a.s.m.S0ElectricityMeter [GpioControllable.java:104] F-xxxxxxxx-000000000002-00: Configured for 5, but GPIO access disabled.
2022-02-18 22:13:32,117 DEBUG [http-nio-8080-exec-4] d.a.s.m.MqttClient [MqttClient.java:168] F-xxxxxxxx-000000000002-00-MQTT-S0ElectricityMeter: disconnected from MQTT broker - was connected=false
2022-02-18 22:13:32,991 DEBUG [http-nio-8080-exec-4] d.a.s.m.MqttClient [MqttClient.java:133] F-xxxxxxxx-000000000002-00-MQTT-S0ElectricityMeter: Created MQTT client F-xxxxxxxx-000000000002-00-S0ElectricityMeter
2022-02-18 22:13:32,993 DEBUG [http-nio-8080-exec-4] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:119] F-xxxxxxxx-000000000002-00: configured: GPIO=5 impulsesPerKwh=2000 minPulseDuration=15 pinPullResistance=PULL_UP
2022-02-18 22:13:34,953 DEBUG [http-nio-8080-exec-4] d.a.s.m.S0ElectricityMeter [S0ElectricityMeter.java:126] F-xxxxxxxx-000000000002-00: Starting S0ElectricityMeter
2022-02-18 22:13:34,953 WARN [http-nio-8080-exec-4] d.a.s.m.S0ElectricityMeter [GpioControllable.java:104] F-xxxxxxxx-000000000002-00: Configured for 5, but GPIO access disabled.

und hier noch der relevante Abschnitt aus der Appliances.xml nach der Konfiguration des Master-/Slave-Zählers

<Appliance id="F-xxxxxxxx-000000000001-00">
    <HttpSwitch>
        <HttpWrite url="http://esp32-heating-control/cm?cmnd=Power%20On">
            <HttpWriteValue name="On" method="GET"/>
        </HttpWrite>
        <HttpWrite url="http://esp32-heating-control/cm?cmnd=Power%20Off">
            <HttpWriteValue name="Off" method="GET"/>
        </HttpWrite>
        <HttpRead url="http://esp32-heating-control/cm?cmnd=Status%208">
            <HttpReadValue name="On" method="GET" extractionRegex=":.ON"/>
        </HttpRead>
    </HttpSwitch>
    <SlaveElectricityMeter masterElectricityMeterApplianceId="F-xxxxxxxx-000000000002-00"/>
    <Schedule enabled="true">
        <RuntimeRequest min="0" max="10740"/>
        <DayTimeframe>
            <Start hour="11" minute="1" second="0"/>
            <End hour="14" minute="0" second="0"/>
        </DayTimeframe>
    </Schedule>
    <Schedule enabled="true">
        <RuntimeRequest min="0" max="10740"/>
        <DayTimeframe>
            <Start hour="15" minute="31" second="0"/>
            <End hour="18" minute="30" second="0"/>
        </DayTimeframe>
    </Schedule>
</Appliance>
<Appliance id="F-xxxxxxxx-000000000002-00">
    <AlwaysOnSwitch/>
    <MasterElectricityMeter slaveSwitchOn="true">
        <S0ElectricityMeter gpio="5" pinPullResistance="PULL_UP" impulsesPerKwh="2000"/>
    </MasterElectricityMeter>
</Appliance>
@camueller camueller self-assigned this Feb 19, 2022
@camueller
Copy link
Owner Author

Sollte mit 2.0.4 gefixt sein.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant