openshwprojects / OpenBK7231T_App

Open source firmware (Tasmota/Esphome replacement) for BK7231T, BK7231N, BL2028N, T34, XR809, W800/W801, W600/W601 and BL602
https://openbekeniot.github.io/webapp/devicesList.html
1.34k stars 228 forks source link

Send constant with PublishFloat/PublishInt/Publish on BL602 #1174

Open Flobul opened 3 months ago

Flobul commented 3 months ago

Describe the bug Unable to send constant values to MQTT, values sent are always 0. Tried with PublishFloat, PublishInt and Publish.

But works with plain numbers. (see screenshot) Works fine on BK7231N device.

Firmware:

To Reproduce Steps to reproduce the behavior:

  1. Send command "publishFloat TEST $intTemp" or any other constant
  2. Check on MQTT and see "0"

Screenshots

Capture d’écran 2024-04-07 à 09 47 24 Capture d’écran 2024-04-07 à 09 47 44 Capture d’écran 2024-04-07 à 09 47 34 Capture d’écran 2024-04-07 à 09 47 53
openshwprojects commented 2 months ago

You can get it working easily, you just need to enable it in obk_config.h image

Flobul commented 2 months ago

Ok, done, but not as relevant as I thought.

Capture d’écran 2024-04-21 à 20 00 55 Capture d’écran 2024-04-21 à 20 01 02 Capture d’écran 2024-04-21 à 20 01 11

Same for other $uptime, day, hour...

giedriuslt commented 1 month ago

That is actually a bug, hopefully will be fixed in https://github.com/openshwprojects/OpenBK7231T_App/pull/1229

Flobul commented 1 month ago

Fixed for me :) thanks