My logbook does not register my humidity sensor, the history card shows all changes

I have a device with esphome, it has a motion sensor and humidity sensor.

The logbook register the motion changes but not the humidity changes.

The history card shows the changes correctly but when I search on the logbook nothing appears and my automations not trigger.

Any idea?

The logbook only logs entities with binary states (on/off, true/false), not sensors that report continuously variable analogue levels. It would rapidly fill up if it logged every change in analogue level.

There is a History page for analogue sensors.

What automations?

Please post the correctly formatted text (not a screenshot of text) of one of your automations that does not trigger.

Hello, i encountered a issue there in how my automation is shown.

This is my automation in yaml

alias: extractor baño enciende sobre threshold y condicion.
description: ''
trigger:
  - type: value
    platform: device
    device_id: 0e57cab80b2a99f3765a5322a3798088
    entity_id: sensor.humedad_bano_principal
    domain: sensor
    above: 78
    below: 75
  - platform: state
    entity_id: light.switchlinc_bano_principal
condition: []
action:
  - choose:
      - conditions:
          - condition: state
            entity_id: light.switchlinc_bano_principal
            state: 'on'
          - type: is_value
            condition: device
            device_id: 0e57cab80b2a99f3765a5322a3798088
            entity_id: sensor.humedad_bano_principal
            domain: sensor
            above: 78
          - condition: device
            type: is_off
            device_id: 0e57cab80b2a99f3765a5322a3798088
            entity_id: switch.tasmota_bano_principal
            domain: switch
        sequence:
          - type: turn_on
            device_id: 0e57cab80b2a99f3765a5322a3798088
            entity_id: switch.tasmota_bano_principal
            domain: switch
      - conditions:
          - condition: device
            type: is_off
            device_id: aa06db2ef91311ea807a6f6c34a4bcaa
            entity_id: light.switchlinc_bano_principal
            domain: light
          - condition: device
            type: is_on
            device_id: 0e57cab80b2a99f3765a5322a3798088
            entity_id: switch.tasmota_bano_principal
            domain: switch
        sequence:
          - type: turn_off
            device_id: 0e57cab80b2a99f3765a5322a3798088
            entity_id: switch.tasmota_bano_principal
            domain: switch
      - conditions:
          - condition: device
            type: is_on
            device_id: 0e57cab80b2a99f3765a5322a3798088
            entity_id: switch.tasmota_bano_principal
            domain: switch
          - type: is_value
            condition: device
            device_id: 0e57cab80b2a99f3765a5322a3798088
            entity_id: sensor.humedad_bano_principal
            domain: sensor
            below: 75
        sequence:
          - type: turn_off
            device_id: 0e57cab80b2a99f3765a5322a3798088
            entity_id: switch.tasmota_bano_principal
            domain: switch
    default: []
mode: single

The humedad (humidity) trigger was not working, but when i check in the Automation UI i’m seeing:

Unknown trigger on the trigger part.

every time the Humidity is used on this automation the UI shows Unknown Trigger.

But in my Entities the sensor.humedad_bano_principal exists and report correctly.

I recently update the firmware of my ESPhome device but was after the problem appeared.

I changed the value on UI and i’ll test it ASAP.

I’m learning here also, but spotted a couple things:

above: 78
below: 75
  • and then I see two different platform: under the trigger block.
    (Not sure why we need a switch here under the trigger section…?)
  • and then I’m not sure type: value or platform: device or domain: sensor being a thing for trigger, since I don’t find those in the aforementioned trigger document.

I’m sure other experts would chime in. But… @Alfonsolsl could you help elaborate what you are trying to achieve with this automation? Also does this automation do what you are trying to do, when you manually click the image button?

1 Like

Hello and thanks to spot that, basically this is the reason the conditions was not meet.

For some reason I coded this in a different way I normally do and for some reason though in a OR when set the thresholds on the humidity sensor.

Dumb… xD

I will remove the limits and use choose options for each case.

What this automation does:

This control when my fan exhaust turns on, based on the humidity of the room and the state of the light.

If the light is on the fan will turn on only when the humidity is above 78% and turn off when is below 75%. But I have the two triggers cos if you turn on the light and the humidity is already above the threshold should turn on but if the humidity raises 78% when the light is already on should turn on also.

If the light turns off the fan should turn off no matter the humidity levels.

Edit: I just had to remove the device trigger and set a state trigger for humidity with any condition on it. My choose already check the conditions on each case.

Thanks!