Hi, there! I would like to ask, it’s possible to make an item contact using mqtt binding displaying in russian language?
I tried to use something like this from “Door Sensor” guide:
My ESP8266 code.
//Sensor Detection
if(digitalRead(sensorPin) == HIGH)
{
if(lockLow)
{
//makes sure we wait for a transition to LOW before any further output is made:
lockLow = false;
client.publish(outTopic, "ОТКРЫТО");
delay(50);
}
takeLowTime = true;
}
if(digitalRead(sensorPin) == LOW)
{
if(takeLowTime)
{
lowIn = millis(); //save the time of the transition from high to LOW
takeLowTime = false; //make sure this is only done at the start of a LOW phase
}
//if the sensor is low for more than the given pause,
//we assume that no more detection is going to happen
if(!lockLow && millis() - lowIn > pause)
{
//makes sure this block of code is only executed again after
//a new detection sequence has been detected
lockLow = true;
client.publish(outTopic, "ЗАКРЫТО");
delay(50);
}
}
My default.items configuration.
Contact Door “Side Door [%s]” { mqtt="<[broker:MyHomeServer/LivingRoom:state:default]"}
Actually it doesn’t work and i feel like i begin to understand why. I tried to find out something about “transformer” in inbound mqtt binding configuraition, but didn’t find a solution.
Thank you!