Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 2.32 KB

README.md

File metadata and controls

53 lines (40 loc) · 2.32 KB

Setup

Hardware

Local Pi address: 192.168.1.13 Local Home Assistant address: 192.168.1.13:8123 Local Octoprint address: 192.168.1.13:5000

On laptop

On router

Statically reserve 192.168.1.13 for the Pi.

On raspberry pi

Adding a new smart plug

  • Connect to the tasmota wifi. If the tasmota wifi isn't appearing:
    • It's possible the specific power outlet isn't playing well with the plug, for whatever reason. Try another outlet.
    • It's possible the plug was already configured to the home network. Visit http://192.168.1.1/ and look among "Attached Devices" for devices similar to TASMOTA-XXX-YYY.
  • Provide the home network wifi credentials
  • Provide a new hostname (Configuration > Configure Other > Device Name + Friendly Name)
  • Provide the 192.168.1.13 host to the MQTT Tasmota settings (Configuration > Configure MQTT)
    • Port is 1883
  • Add toggle in Home Assistant

Adding a new IR command

  • Hook up the base of NPN transistor to pin 22, with the transistor in series with an IR LED and a 330 ohm resistor.
  • Hook up an IR receiver module to pin 22, 3.3V and GND.
  • cd esphome
  • esphome run remotecontrol.yaml
  • Watch the serial output and record the values in remotecontrol.yaml under a new button
  • Run esphome run remotecontrol.yaml again to deploy the changes