arendst / Tasmota

Alternative firmware for ESP8266 and ESP32 based devices with easy configuration using webUI, OTA updates, automation using timers or rules, expandability and entirely local control over MQTT, HTTP, Serial or KNX. Full documentation at
https://tasmota.github.io/docs
GNU General Public License v3.0
22.22k stars 4.81k forks source link

OpenHab. Tasmota multiple sensor topics #9343

Closed fizroy closed 4 years ago

fizroy commented 4 years ago

PROBLEM DESCRIPTION

A clear and concise description of what the problem is.

REQUESTED INFORMATION

Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!

- [ ] If using rules, provide the output of this command: `Backlog Rule1; Rule2; Rule3`:

Rules output here:

- [ ] Provide the output of this command: `Status 0`:

STATUS 0 output here:

- [ ] Provide the output of the Console log output when you experience your issue; if applicable:
  _(Please use_ `weblog 4` _for more debug information)_

Console output here:



### TO REPRODUCE
_Steps to reproduce the behavior:_

### EXPECTED BEHAVIOUR
_A clear and concise description of what you expected to happen._

### SCREENSHOTS
_If applicable, add screenshots to help explain your problem._

### ADDITIONAL CONTEXT
_Add any other context about the problem here._

**(Please, remember to close the issue when the problem has been addressed)**
fizroy commented 4 years ago

I have 3 LYWSD03MMC ble sensors conected to a esp32 with tasmota, but the data from them is sent to the same mqtt topic tele/tasmota/SENSOR...and not all toghether but in different lines...i olso use openhab to recive the data from the sensors and since they all use the same topic and have different id's i get a log full of warnigs. unknown (1) unknown is it posible to have all the sensors maybe report in the same line or have different sensor topic like for zigbee sensors or like POWER???

schrej-zz commented 4 years ago

You can use the REGEX transformation in the Openhab channels to prevent these warnings.

fizroy commented 4 years ago

I already use json for the data ...any tip on the REGEX part?

fizroy commented 4 years ago

Still it would be better if the dev's implement something like SetOption 89 but for ble devices.

schrej-zz commented 4 years ago

See https://community.openhab.org/t/mqtt-2-5-problem-with-receiving-status-updates-on-some-things/90054

Jason2866 commented 4 years ago

Funny same answer i gave already in Discord before 😊 This is a good example https://community.openhab.org/t/solved-how-to-ensure-regex-provide-full-multiline-json-data-to-jsonpath/35087

ascillato2 commented 4 years ago

Closing this issue as it has been answered.


Support Information

See Docs for more information. See Chat for more user experience. See Community for forum. See Code of Conduct