MQTT Sensor MQTT Binary Sensor Binary Sensor
user@server:~$ nano ~/.homeassistant/configuration.yaml
sensor:
- platform: mqtt
name: KitchenLuxesMqtt
state_topic: "edzna/kitchen/luxes"
sensor_class: light
- platform: mqtt
name: PrincipalLuxesMqtt
state_topic: "edzna/principal/luxes"
sensor_class: light
user@workstation:~$ mosquitto_pub -h iot.eclipse.org -p 1883 -t edzna/kitchen/luxes -m 25
user@workstation:~$ mosquitto_pub -h iot.eclipse.org -p 1883 -t edzna/principal/luxes -m 50
- platform: worldclock
time_zone: America/Mexico_City