I’m using the text payload in the automation so I assume this shouldn’t be defined as a binary sensor in configuration.yaml
automation.yaml
- id: mqtttest
alias: mqtttest
trigger:
- platform: mqtt
topic: sometopic
action:
configuration.yaml
sensor:
- platform: mqtt
name: mqttsensor
state_topic: sometopic