@nhlives, nice concept of limit the time of operation to avoid run-aways. Do you have some imagery about how the ESP8266 is connected / mounted on some of the control device of the bed and other devices? ...You may know that Espruino runs also on sonoff and a-like that allow 110..220 main power control?
Since power seems not to be an issue, there is no issue with wires 'all over the place'... and also no issue with power for driving servos, solenoids, etc. That's good to know. Understandably, because beds with these options are mains connected anyway, and if at home, they are not moved around either...
Regarding the event you were looking for: 'finished' of what? - http comm? operation? etc.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
@nhlives, nice concept of limit the time of operation to avoid run-aways. Do you have some imagery about how the ESP8266 is connected / mounted on some of the control device of the bed and other devices? ...You may know that Espruino runs also on sonoff and a-like that allow 110..220 main power control?
Since power seems not to be an issue, there is no issue with wires 'all over the place'... and also no issue with power for driving servos, solenoids, etc. That's good to know. Understandably, because beds with these options are mains connected anyway, and if at home, they are not moved around either...
Regarding the event you were looking for: 'finished' of what? - http comm? operation? etc.