Skip to content
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

Switch from automatic to manual mode #36

Closed
fabimschiller opened this issue Dec 12, 2021 · 3 comments
Closed

Switch from automatic to manual mode #36

fabimschiller opened this issue Dec 12, 2021 · 3 comments

Comments

@fabimschiller
Copy link

Hi,
I love this gateway. Great work! Thanks so much! I use it to integrate my stove into my home automation.
I have one question: How can I switch from automatic mode (dynamic) to manual mode? I tried to use Maestro/Command/Control_Mode and Maestro/Command/Active_Mode, but it looks like neither of them has any effect...
Can you help?
Thanks!

@VoetenK
Copy link

VoetenK commented Dec 13, 2021

Hi,
I toggle the control mode for this.
Manual:
{"topic":"SUBmcz/Control_Mode","payload":"0","_msgid":"4cf04ce6abf27f75"}{"payload":"0","data":
Dynamic:
{"topic":"SUBmcz/Control_Mode","payload":"1","_msgid":"4cf04ce6abf27f75"}{"payload":"1","data":

NodeRed Input:
input_boolean.maestro_control_mode

NodeRed Function:
msg.topic = msg.topic.replace("input_boolean.maestro_", "")
var topic1 = msg.topic.charAt(0).toUpperCase() + msg.topic.slice(1);
msg.topic = msg.topic.charAt(0).toUpperCase() + msg.topic.slice(1);
var x = msg.topic.indexOf("_") + 1
var topic2 = msg.topic.charAt(x) + msg.topic.slice(x + 1);
topic1 = topic1.replace(topic2, "")
msg.topic = msg.topic.charAt(x).toUpperCase() + msg.topic.slice(x + 1);
msg.topic = "SUBmcz/" + topic1 + msg.topic

if(msg.payload == "on" )
{
msg.payload = "1"
global.set(msg.topic , msg.payload)
return msg
}
else
{
msg.payload = "0"
msg.topic = "SUBmcz/Chronostat"
global.set("SUBmcz/Chronostat" , msg.payload)
return msg
}

@Chibald
Copy link
Owner

Chibald commented Dec 20, 2021

Hi @fabimschiller,

Maestro/Command/Control_Mode

Should be the right one. But for me it's also not working. But it is not working for me in the original app as well. When I set to manual, after a while it will revert to automatic. So I guess this is a MCZ issue. (I have Musa Hydro).

As a workaround I use my home automation to send 1 degree higher to the stove when I want power.

stoveSetpoint = currentStoveTemperature +1;

Bit crazy but it works for me ;)

@fabimschiller
Copy link
Author

Thanks! Works for me now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants