Finally got FTDI to work and flashed two of my Sonoffs. I can control them with their web interface. Now trying to get them to appear in Hass.io.
My configuration.yaml looks like this.
switch:
- platform: mqtt
name: "Socket"
state_topic: "socket_1/state"
command_topic: "socket_1/cmnd"
availability_topic: "socket_1/available"
- platform: mqtt
name: "TH10(Switch)"
state_topic: "th10_1/state"
command_topic: "th10_1/cmnd"
availability_topic: "th10_1/available"
# Sensors
sensor:
# Weather prediction
- platform: yr
- platform: mqtt
name: "TH10(Temp)"
state_topic: "tele/th10_1/SENSOR"
value_template: "{{ value_json.BME280.Temperature }}"
unit_of_measurement: "°C"
- platform: mqtt
name: "TH10(Hum)"
state_topic: "tele/th10_1/SENSOR"
value_template: "{{ value_json.BME280.Humidity }}"
unit_of_measurement: "%"
socket_1 and th10_1 are the correct names. If I go onto the device console, I can do socket_1/power 1 and it switches on OK.
The devices don’t seem to “appear” in Home Assistant. That said, if they did, I’m not sure where I would expect to see them. Should I see them on the “Overview” page?
Is it correct to have multiple “-platform” entries under one “switch:” entry?
What is the “switch:” entry called? (I’m a software engineer. I mean what is it an example of?) Is it a “topic”?
Same question for “-platform”. What is this YAML entry called?
Other than “switch:” or “sensor:” Where can I find a list of the devices which can be added?
If ever there was a steep learning curve, I’m on it!