![]() If the LED remains flashing for more than 10 seconds, check the WIFI settings in the YAML code is correct for your network, modify, build, and reprogram as described above. Flashing: Attempting to connect to WIFI.You should see the red LED light up as follows: If ESPHome Flasher displays an error when trying to connect to the device, try swapping over TX and RX and try again.Īfter successful programming, disconnect and re-apply power. Once the board has started programming, and you see progress in the ESPHome Flasher application output window, you can (optionally) release the push button. Keep holding the button, and start the programming process from ESPHome Flasher.Press and hold the button on the PCB and at the same time, apply power to the board.For my install, the output bin file is: \spf-1010-ty-pet-feeder\.pioenvs\spf-1010-ty-pet-feeder\firmware.bin This can be found by looking at the compile output (see photo). Navigate to the output directory, and copy the *.bin file.Once this has been done successfully, further future updates can be done wirelessly, Over the Air! This is done with the USB to Serial converter. script.wait: flash_pos_switch_error # position sensor error takes priority over this script. # Do nothing until the position switch turns off the motor. script.execute: motor_overrun_protection # Script will restart if it's already running. # If this script runs for > 4 secs, the motors will be stopped and a error logged. # This script will be stopped by the motor position switch. id: run_motor # A script that runs the motor. # Flash an error and log an error message.įormat: "Motor overrun!! Check motor position switch or clear jam!" # If the motor is still running, an error occurred (position switch faulty or jammed) id: motor_overrun_protection # A script to stop the motor if it runs too long # The position switch is ok, clear any error. switch.turn_off: motor_drive_a # Turn off motor.įormat: "Position switch released - stopping motor." script.execute: flash_motor_running_led switch.turn_on: motor_drive_a # Turn on motor. platform: gpio # Physical button on unitįormat: "sw_user_btn pressed. script.execute: run_motor # Run the motor. If( id(run_motor).is_running() ) Run even when jammed"įormat: "ha_run_even_when_jammed on_press. # Enable fallback hotspot (captive portal) in case wifi connection fails Automatic Cat Feeder,Pet Feeder Dispensers with Desiccant Bag for Dry Food,Cat Feeder with Programmable Timer Control 1-6 Meals per Day for Cats,Dogs & Small Medium Pets (3. This will try to connect to the device over WIFI and will fail. It will hold up to 6.5 liters (7.3 pounds) of dry food and has a top cover that locks so your dog can’t pilfer extra food when you aren’t around. Īpi_pwd - only required if Home Assistant uses a password for ESPHome API access.Ĭompile the code by clicking the 'upload' button. This feeder offers many of the same features as other automatic feeders, and its design is pleasing to the eye.ota_pwd - a password to protect OTA updates.Remember to setup the following details in your secrets file: Paste in the YAML from the attached file, change the WIFI credentials and IP address to something suitable for your network. ![]() I called my project "spf-1010-ty-pet-feeder"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |