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

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

Open
Flobul opened this issue Apr 7, 2024 · 3 comments
Open

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

Flobul opened this issue Apr 7, 2024 · 3 comments

Comments

@Flobul
Copy link

Flobul commented Apr 7, 2024

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:

{
  "vendor": "Tuya",
  "bDetailed": "0",
  "name": "Full Device Name Here",
  "model": "enter short model name here",
  "chip": "BL602",
  "board": "TODO",
  "flags": "69731332",
  "keywords": [
    "TODO",
    "TODO",
    "TODO"
  ],
  "pins": {
    "2": "Rel;1",
    "3": "BL0937CF1;0",
    "14": "BL0937CF;0",
    "17": "Btn;1",
    "20": "LED_n;1",
    "21": "BL0937SEL;0"
  },
  "command": "backlog startDriver BL0937; startDriver NTP; ntp_setServer 82.64.230.205; ntp_timeZoneOfs 1:00; addRepeatingEvent 5 -1 publishFloat Temperature $intTemp",
  "image": "https://obrazki.elektroda.pl/9568515100_1707749274.jpg",
  "wiki": "https://www.elektroda.com/rtvforum/topic4020634.html"
}

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
Copy link
Owner

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

@Flobul
Copy link
Author

Flobul commented Apr 21, 2024

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
Copy link
Contributor

giedriuslt commented May 12, 2024

That is actually a bug, hopefully will be fixed in #1229

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