Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Unsolved
Collapse
Discussion Forum to share and further the development of home control and automation, independent of platforms.

Global Moderators

Forum wide moderators

Private

Posts


  • Struggling to setup my first Tasmota device and MQTT
    toggledbitsT toggledbits

    Tasmota has this inconsistency where if there's only one relay configured, it does not include the relay number; if more than one, then it adds it. There's no way for the template to know how many relays are configured, so you found the correct fix.

    Multi-System Reactor

  • Struggling to setup my first Tasmota device and MQTT
    therealdbT therealdb

    @cw-kid I have them with lux, barometric, distance, and temp/humidity sensors, while also using a couple as Bluetooth bridges. in this regard, your fantasy is the real limit.

    I've recently moved everything I could to ZWave, because it is better in terms of stability, but ATM there's no equivalent for fancy sensors, even if ZigBee has a denter offer.

    Multi-System Reactor

  • Struggling to setup my first Tasmota device and MQTT
    therealdbT therealdb

    @cw-kid post some screenshots from mqtt explorer. It’s easier to follow, if you want my advice.

    Multi-System Reactor

  • Struggling to setup my first Tasmota device and MQTT
    toggledbitsT toggledbits

    @cw_kid in your post here the configuration you posted is incorrect -- the indenting is invalid, and that will prevent anything from working for that entity.

    Honestly, I can't at this stage really get a read on where you are. Between you jumping in with random AI changes and others commenting, your config is a moving target and I can't follow it. If you want my help, I will send you a link so you can upload your config and I can look at it and potentially fix it. Otherwise, I'll let you continue to learn on your own and seek help from others.

    Multi-System Reactor

  • Struggling to setup my first Tasmota device and MQTT
    therealdbT therealdb

    When asking AI, be sure to send the docs, the exact page. It will be more precise. All that said, here's my config

    controllers:
      - id: mqtt
        name: MQTT
        enabled: true
        implementation: MQTTController
        config:
          # omitted...
          entities:
            # dehum
            tasmota_dehumidifier:
              name: "Dehum - sensors"
              include: tasmota_sensor_temperature_humidity
              topic: "tasmota-dehum"
              source: SI7021
            tasmota_dehumidifier_switch:
              name: "Dehum - switch"
              include: tasmota_generic_relay
              topic: "tasmota-dehum"
              unit: ""
    

    You could probably consolidate them, but I prefer to have the switch and the sensors separated: it's easier to start and to manage them.

    In you case, as per the post, topic: "tasmota-dehum" should be topic: "fan_controller", while sourceshould beAM2301`.

    Multi-System Reactor

  • Struggling to setup my first Tasmota device and MQTT
    CatmanV2C CatmanV2

    MQTT Explorer is good for troubleshooting to make sure your data is actually getting to the broker IME

    C

    Multi-System Reactor

  • Struggling to setup my first Tasmota device and MQTT
    toggledbitsT toggledbits

    Sorry, my bad, change the include section to look like this (I'll fix the example above as well):

            include: 
              - tasmota_generic_relay
              - tasmota_sensor_temperature_humidity
    

    Also, you can use yamllint.com to sanity-check your entire config file.

    Multi-System Reactor

  • Struggling to setup my first Tasmota device and MQTT
    toggledbitsT toggledbits

    @cw-kid By the numbers:

    1. tasmota_discovery is not a thing in Reactor, so that won't work.
    2. The AI-recommended use of 0.0.0.0 for the host IP address of your MQTT broker (mosquitto) is correct and recommended.
    3. implementation: MQTTController is the correct usage (class is deprecated).
    4. You should use the 127.0.0.1 (aka loopback) address for the MQTTController's source configuration in reactor.yaml whenever the MQTT broker (i.e. mosquitto) is running on the same host as Reactor; otherwise, use the LAN interface address (192.168.0.4 in your case).
    5. system: and extension_path are also not a thing in Reactor configuration (another AI fantasy fact).
    6. All ESP32s and other MQTT clients should use the LAN address for the MQTT host (192.168.0.4 as shown in your image; that's correct).

    You need to use one of the available templates for Tasmota described in the MQTTController documentation or create a configuration of your own. The latter may be necessary for your configuration, but we need more info. Please show more of the Tasmota device configuration (screen shots), so we can help you with that.

    Until then, just choose the simple included switch/relay configuration template to get things working (i.e. so you can see that Reactor sees the device and may be able to control it).

      # In the controllers section of reactor.yaml:
      - id: mqtt
        enabled: true
        implementation: MQTTController
        name: Mosquitto
        config:
          source: mqtt://127.0.0.1:1883/
          log_topics: ['tele','stat','tasmota']  # only for testing, disable when not in use (makes big log file)
          entities:
            tasmota_fan_controller:
              name: "Tasmota Fan Controller"
              topic: fan_controller  # matches topic configured in Tasmota
              unit: 0  # relay number on the device
              include:
                - tasmota_generic_relay
                - tasmota_sensor_temperature_humidity
    

    This may be all you need. Try it and see what happens. Don't forget to look at the logs when things aren't working as expected. And look at the mqtt-topics.log file to see what data you are getting (post a nice snippet of it here, along with everything else requested, if the device isn't working in Reactor).

    Multi-System Reactor

  • Existing Rule stopped working HTTP command fetching IP address from website
    toggledbitsT toggledbits

    Here's another one that is very likely to not have significant downtime: https://checkip.amazonaws.com/

    If you still get errors with this one, I suspect your local network or something off with the configuration of your host.

    Multi-System Reactor

  • Existing Rule stopped working HTTP command fetching IP address from website
    toggledbitsT toggledbits

    Best add some error detection, then.

    Multi-System Reactor

Member List

CatmanV2C CatmanV2
therealdbT therealdb
toggledbitsT toggledbits
akbooerA akbooer
DesTD DesT
rafale77R rafale77
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • Unsolved