Protofy icon indicating copy to clipboard operation
Protofy copied to clipboard

Integration of PWM control

Open jjjorgina opened this issue 11 months ago • 2 comments

Need To Be Solved

Our project requires the integration of PWM control, in this case for peristaltics.

Solution Suggestion

Below is the suggested YAML configuration for seamless integration:

mqtt: broker: xxx.xx.xxx.xx topic_prefix: devicename on_json_message: - topic: devicename/output/peristalticspeed/command then: - lambda: |- if (x.containsKey("pwmLevel")) { id(peristaltic1speed).set_level((float)x["pwmLevel"]); }

output: - platform: ledc pin: 25 id: peristalticspeed frequency: 50Hz

jjjorgina avatar Mar 05 '24 15:03 jjjorgina

This feature request is already made on : https://github.com/Protofy-xyz/Protofy/issues/59

RogerOrRobert avatar Mar 05 '24 17:03 RogerOrRobert

Yes! I also need this feature for my project, it will be very useful

mars1pial avatar Mar 15 '24 12:03 mars1pial

This has been solved. You can use it as you can see in image attached:

pwmOutput support

lluis-protofy-xyz avatar Oct 22 '24 20:10 lluis-protofy-xyz