Closed vogler closed 4 years ago
Ok, just found out it's actually devices/senseo-wifi/machine/power/set
. Works 😄
Maybe a sentence in the readme on how to test it would be a good idea.
The README does not explicitly state that but the device follows the Homie convention. Check it out for all details! ;)
I'll need to update the README with a lot of things. Anything else you found? Does your machine work? Btw if you are located in Germany I could send you one of my spare PCBs.
Does your machine work?
Not anymore 😅
I tested that power on/off work and adjusted the time so that it correctly detected no_water, then I closed it.
It did complete 'cup1' successfully (including on/off), but then, directly afterwards, it went crazy cycling between states. I unplugged it, but even then it went: unknown, ready, brewing, (no_water, ready)+.
I guess there's something off with the timings, but I don't feel like opening it up all the time (I assume I can keep USB connected while the machine is also plugged in to attach to serial output?). I added some more outputs to the debug mqtt and got fast pulse durations from 53 to 84 while it was working, but now I also get values like 6 and 285.
When should pinStateToggled
be called? Is there some noise? I didn't press any buttons.
Also, can you recommend an alternative to MQTT.fx? Sometimes it receives messages after I reset the machine, sometimes I first have to disconnect, connect and resubscribe all topics to make it work again 😞
I could send you one of my spare PCBs.
Thanks for the offer! I used some perfboard that had the right size:
Hey! You can leave USB connected for debugging, that is the main reason for the optocouplers.
What concerns me is the picture of your machine. It seems to be an older model. Could you tell me the exact type number? Nevertheless, as the PCB just observes the LED and digitally pushed the buttons I believe it should still work. I would suggest to connect USB, then go through a bit of testing. You should see very precise timings of +-1ms. See: https://github.com/ThomDietrich/SenseoWifi/blob/master/src/constants.h#L12 for the times.
but now I also get values like 6 and 285
Please check again. If those are your readings there is probably something wrong with your PCB or power supply.
If your Senseo PCB is older, this could also be an issue with a less stable LED power supply. Be careful while playing around with this part of the problem!!
Please keep me in the loop!
Also: Any addition to the readme, the source code or the PCB is highly welcome!!
It's a Philips HD 7801/62.
Everything worked fine for the first brew. I found out that now ledChangedHandler
seems to fire whenever cupAvailable
changes. When I remove the TCRT5000 it doesn't change states anymore.
I use the following times:
pulseDurLedSlow = 1000;
pulseDurLedFast = 80;
pulseDurTolerance = 30;
pulseContThreshold = 2 * pulseDurLedSlow;
HeatingTime = 70; // cold start -> LED blinks -> LED on
HeatingTimeTol = 10;
Brew1CupSeconds = 34; // warmed up: LED on -> LED blinks -> LED on
Brew2CupSeconds = 70; // "
BrewHeat1CupSeconds = 64; // HeatingTime+Brew1CupSeconds
BrewHeat2CupSeconds = 140; // HeatingTime+Brew2CupSeconds
It wasn't exactly clear to me what the difference is, are the comments right?
Before working with the recipe feature I'd recommend to find out if the rest does what it is supposed to. If the TCRT5000 seems to be part of the issue could you please check if the problem is on PCB or code side?
Regarding the times: Are you sure your changes are correct? Does your machine really have a fast blinking period of 80?
The comments are not clear indeed. Please create a PR ;) See here: https://github.com/ThomDietrich/SenseoWifi/blob/master/src/SenseoWifi.cpp#L139 BrewHeat is the normal cycle from pressing the brew button till the machine is finished and the LED stops blinking. The brew times represent the first part of those if the machine switches to OFF or NOWATER after brewing.
Ich hätte gerne das übrige pcb abgekauft :)
I'm using home-assistant's embedded MQTT broker. The esp8266 publishes topics like
opState
anddebug
, but doesn't receive any commands. My Tasmota devices receive commands via MQTT jut fine. Publishingfoo
todevices/senseo-wifi/machine/power
should result in an output ondevices/senseo-wifi/machine/debug
, but doesn't do anything. How can I debug this?