Ability to change "StateText-s"
Dees7 opened this issue · comments
Hello.
I use others StateText1 - 0 and StateText2 - 1. this needed for my Home-Auto.
In this plugin used default OFF and OFF. It will be very useful to change this from settigs..
or please take an advice where should i change in code?
Just to make sure I understand, the "on"/"off" commands you are using are not the standard Tasmota ones? Could you share maybe a screenshot of the console from your tasmota web interface when you are doing this from your HA?
Hello.
I use 1 for ON and 0 for OFF. To change it use 2 command in console:
StateText1 0
StateText2 1
MQTT messages (mosquitto_sub -t '+/printer/#'):
tele/printer/STATE {"Time":"2020-05-06T08:36:05","Uptime":"33T17:09:29","Vcc":3.174,"SleepMode":"Dynamic","Sleep":50,"LoadAvg":19,"POWER1":"0","Wifi":...}
stat/printer/POWER1 0
stat/printer/RESULT = {"POWER1":"1"}
MQTT commmand to turn on\off\toggle
cmnd/printer/power1 1
cmnd/printer/power1 0
cmnd/printer/power1 2
Logs (commands from web console):
08:32:34 CMD: power1 2
08:32:34 MQT: stat/printerr/RESULT = {"POWER1":"1"}
08:32:34 MQT: stat/printer/POWER1 = 1 (retained)
08:32:38 CMD: power1 0
08:32:38 MQT: stat/printer/RESULT = {"POWER1":"0"}
08:32:38 MQT: stat/printer/POWER1 = 0 (retained)
And if you put printer
as the topic and 1
for the Relay # in the plugin's settings your plug doesn't toggle?
Doesn't toggle.
Cause your plugin wants
stat/printer/POWER1 = OFF
or
stat/printer/POWER1 = ON
Plugin doesn't get this, and it try to define status sending
cmnd/printer/POWER1 (null)
my relay respond with status (0 or 1) but plugin don't know this status
stat/printer/RESULT {"POWER1":"0"}
stat/printer/POWER1 0
This issue has been automatically marked as stale because it has not had activity in 14 days. It will be closed if no further activity occurs in 7 days.