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

Flexible On Off, multiples pins, delays.. mosquitto_pub -t home/OpenM… #299

Open
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@SenexCrenshaw
Copy link

SenexCrenshaw commented Nov 3, 2018

Flexible On Off
multiples pins
delays

mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoONOFF -m 2000,4<,publish after delay>

Will turn pin 4 on for 2000 milliseconds. by default after the delay no mqtt message will be published unless set to 1

This is helpful if you only need the pin to go high for x milliseconds (fireplace control...) and then stop. Sending a pub after the delay is configurable. I want the fireplace switch to stay on high (on) even though the pin isnt. Works great with Home assistant.

I usually dont publish PRs so sorry about the extra formatting.

Flexible On Off, multiples pins, delays.. mosquitto_pub -t home/OpenM…
…QTTGateway/commands/MQTTtoONOFF -m 2000,4<,publish after delay> Will turn pin 4 on for 2000 milliseconds. by default after the delay no mqtt message will be published unless set to 1
@1technophile

This comment has been minimized.

Copy link
Owner

1technophile commented Nov 11, 2018

Thanks for this PR.

Do you think you can rebegin from current master revision so as to avoid the extra formatting.
With the last master code you could use json to parse the mqtt message. By this way we will assure bettre compatibility with home automation softwares.

@1technophile 1technophile added this to the V0.9 milestone Nov 11, 2018

@1technophile 1technophile modified the milestones: V0.9, V1.0 Nov 25, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment