Giter Site home page Giter Site logo

Comments (11)

biologist79 avatar biologist79 commented on May 20, 2024

Thanks for your report!
Just provided a fix - please test.

from espuino.

GeneralLuzi avatar GeneralLuzi commented on May 20, 2024

nope - sorry.

The deactivation is not published via mqtt.

The log also does not also indicate the fix:

MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: EOT]
Sleep-Timer: Nach dem Ende des laufenden Tracks.
ws[/ws][1] text-message[24]: ping
RSSI: -75 dBm
MQTT: Bin noch online.
MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: 0]
Sleep-Timer ist bereits deaktiviert.

from espuino.

GeneralLuzi avatar GeneralLuzi commented on May 20, 2024

also the device went into deep sleep mode

ESP-IDF-version (major): 3
ESP-IDF-version (minor): 3
Software-revision: 20211128-2

from espuino.

biologist79 avatar biologist79 commented on May 20, 2024

Just reviewed the code yesterday and discovered the problem. I'm looking forward to fix it this evening.

from espuino.

biologist79 avatar biologist79 commented on May 20, 2024

2nd attempt :-)
Please test.

from espuino.

GeneralLuzi avatar GeneralLuzi commented on May 20, 2024

Hi,

seems to work:

MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: EOP]
Sleep-Timer: Nach dem letzten Track der Playlist.
MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: 0]
Sleep-Timer wurde deaktiviert.
MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: EOT]
Sleep-Timer: Nach dem Ende des laufenden Tracks.
MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: 0]
Sleep-Timer wurde deaktiviert.
MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: EO5T]
Sleep Timer: Nach Ende des Titels oder, wenn früher, Ende der Playlist
MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: 0]
Sleep-Timer wurde deaktiviert.
MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: 1]
LEDs wurden auf Nachtmodus gedimmt.
Modifikator: Sleep-Timer per RFID aktiviert (2 Stunden).
Sleep-Timer gesetzt auf: 1 Minute(n)
MQTT-Nachricht empfangen: [Topic: Cmnd/ESPuino/SleepTimer] [Command: 0]
Sleep-Timer wurde deaktiviert.

Also the commands are correctly published via MQTT! Well done!

However, I guess there is still an inconsistent behavior:

  1. While SleepTimer 1 Min reduces the brightness of the LEDs, the other commands don't.
  2. The deactivation of the SleepTimer should brighten up the LED, shouldn't it?

Thanks for your work so far!

from espuino.

biologist79 avatar biologist79 commented on May 20, 2024

Done. By doing so I also discovered there was no dimming enabled at EOP, EOT and EO5T.
Fixed this inline.

Please test.

from espuino.

GeneralLuzi avatar GeneralLuzi commented on May 20, 2024

Positiv first:
EOT EO5T EOP decrease the lights, disabling sleep mode increases the light. So far so good.

However, there is no MQTT publish of the new brightness level. Could you observe please?

Thanks!

from espuino.

biologist79 avatar biologist79 commented on May 20, 2024

Tried it again :-)

from espuino.

GeneralLuzi avatar GeneralLuzi commented on May 20, 2024

Almost. :D

The following scenario does not work:

  1. Play song with Brightness 16
  2. configure EOT, EO5T or something else
  3. de- or increase Brightness
  4. deactivate sleep timer --> Issue: brightness resets to 16 and not to the value change in between.

from espuino.

biologist79 avatar biologist79 commented on May 20, 2024

Finally fixed it after taking almost forever 😂.

from espuino.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.