Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- substitutions:
- hostname: 'pipsolar'
- HumanDeviceName: 'PIP Solar'
- tx_pin: D1
- rx_pin: D2
- esphome:
- name: ${hostname}
- platform: ESP8266
- board: d1_mini
- esp8266_restore_from_flash: true
- preferences:
- flash_write_interval: 10min
- # Enable logging
- logger:
- wifi:
- networks:
- - ssid: DECO_tplink
- password: carolEsanti1410
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: ${hostname}_WIFI
- password: UOAA2VoDf6sO
- captive_portal:
- # Turn on the web server
- web_server:
- port: 80
- # Enable Home Assistant API
- api:
- ota:
- - platform: esphome
- password: !secret ota_password
- button:
- - platform: restart
- id: ${hostname}_restart
- name: "${HumanDeviceName} Restart"
- icon: mdi:restart
- - platform: safe_mode
- name: "${HumanDeviceName} Restart in Safe Mode"
- id: ${hostname}_power_button
- icon: mdi:restart
- - platform: shutdown
- name: "${HumanDeviceName} Shutdown"
- id: ${hostname}_shutdown_button
- icon: mdi:restart
- time:
- - platform: homeassistant
- id: ${hostname}_esptime
- uart:
- id: ${hostname}_uart_0
- baud_rate: 2400
- tx_pin: ${tx_pin}
- rx_pin: ${rx_pin}
- pipsolar:
- uart_id: ${hostname}_uart_0
- id: ${hostname}_inverter0
- sensor:
- - platform: uptime
- name: "${HumanDeviceName} Uptime Sensor"
- id: ${hostname}_uptime_sensor
- update_interval: 60s
- on_raw_value:
- then:
- - text_sensor.template.publish:
- id: ${hostname}_uptime_human
- state: !lambda |-
- int seconds = round(id(${hostname}_uptime_sensor).raw_state);
- int days = seconds / (24 * 3600);
- seconds = seconds % (24 * 3600);
- int hours = seconds / 3600;
- seconds = seconds % 3600;
- int minutes = seconds / 60;
- seconds = seconds % 60;
- return (
- (days ? String(days) + "d " : "") +
- (hours ? String(hours) + "h " : "") +
- (minutes ? String(minutes) + "m " : "") +
- (String(seconds) + "s")
- ).c_str();
- - platform: wifi_signal
- name: "${HumanDeviceName} WiFi RSSI"
- id: ${hostname}_wifi_rssi
- update_interval: 60s
- - platform: pipsolar
- pipsolar_id: ${hostname}_inverter0
- # QPIRI
- # grid_rating_voltage:
- # name: "${name} grid_rating_voltage"
- # grid_rating_current:
- # name: "${HumanDeviceName} grid_rating_current"
- # ac_output_rating_voltage:
- # name: "${HumanDeviceName} ac_output_rating_voltage"
- # ac_output_rating_frequency:
- # name: "${HumanDeviceName} ac_output_rating_frequency"
- # ac_output_rating_current:
- # name: "${HumanDeviceName} ac_output_rating_current"
- # ac_output_rating_apparent_power:
- # name: "${HumanDeviceName} ac_output_rating_apparent_power"
- # ac_output_rating_active_power:
- # name: "${HumanDeviceName} ac_output_rating_active_power"
- # battery_rating_voltage:
- # name: "${HumanDeviceName} battery_rating_voltage"
- # battery_recharge_voltage:
- # name: "${HumanDeviceName} battery_recharge_voltage"
- # battery_under_voltage:
- # name: "${HumanDeviceName} battery_under_voltage"
- # battery_bulk_voltage:
- # name: "${HumanDeviceName} battery_bulk_voltage"
- # battery_float_voltage:
- # name: "${HumanDeviceName} battery_float_voltage"
- # battery_type:
- # name: "${HumanDeviceName} battery_type"
- # current_max_ac_charging_current:
- # name: "${HumanDeviceName} current_max_ac_charging_current"
- # current_max_charging_current:
- # name: "${HumanDeviceName} current_max_charging_current"
- # input_voltage_range:
- # name: "${HumanDeviceName} input_voltage_range"
- # output_source_priority:
- # name: "${HumanDeviceName} output_source_priority"
- # charger_source_priority:
- # name: "${HumanDeviceName} charger_source_priority"
- # parallel_max_num:
- # name: "${HumanDeviceName} parallel_max_num"
- # machine_type:
- # name: "${HumanDeviceName} machine_type"
- # topology:
- # name: "${HumanDeviceName} topology"
- # output_mode:
- # name: "${HumanDeviceName} output_mode"
- # battery_redischarge_voltage:
- # name: "${HumanDeviceName} battery_redischarge_voltage"
- # pv_ok_condition_for_parallel:
- # name: "${HumanDeviceName} pv_ok_condition_for_parallel"
- # pv_power_balance:
- # name: "${HumanDeviceName} pv_power_balance"
- # QPIGS
- grid_voltage:
- id: ${hostname}_grid_voltage
- name: "${HumanDeviceName} Grid Voltage"
- grid_frequency:
- id: ${hostname}_grid_frequency
- name: "${HumanDeviceName} Grid Frequency"
- ac_output_voltage:
- id: ${hostname}_ac_output_voltage
- name: "${HumanDeviceName} AC Output Voltage"
- ac_output_frequency:
- id: ${hostname}_ac_output_frequency
- name: "${HumanDeviceName} AC Output Frequency"
- ac_output_apparent_power:
- id: ${hostname}_ac_output_apparent_power
- name: "${HumanDeviceName} AC Output Apparent Power"
- ac_output_active_power:
- id: ${hostname}_ac_output_active_power
- name: "${HumanDeviceName} AC Output Active Power"
- output_load_percent:
- id: ${hostname}_output_load_percent
- name: "${HumanDeviceName} Output Load Percent"
- bus_voltage:
- id: ${hostname}_bus_voltage
- name: "${HumanDeviceName} BUS Voltage"
- battery_voltage:
- id: ${hostname}_battery_voltage
- name: "${HumanDeviceName} Batery Voltave"
- battery_charging_current:
- id: ${hostname}_battery_charging_current
- name: "${HumanDeviceName} Battery Charging Current"
- battery_capacity_percent:
- id: ${hostname}_battery_capacity_percent
- name: "${HumanDeviceName} Battery Capacity Percent"
- inverter_heat_sink_temperature:
- id: ${hostname}_inverter_heat_sink_temperature
- name: "${HumanDeviceName} Inverter Heat Sink Temperature"
- pv_input_current_for_battery:
- id: ${hostname}_pv_input_current_for_battery
- name: "${HumanDeviceName} PV Input Current For Battery"
- pv_input_voltage:
- id: ${hostname}_pv_input_voltage
- name: "${HumanDeviceName} PV Input Voltage"
- battery_voltage_scc:
- id: ${hostname}_battery_voltage_scc
- name: "${HumanDeviceName} Battery Voltage SCC"
- battery_discharge_current:
- id: ${hostname}_battery_discharge_current
- name: "${HumanDeviceName} Battery Discharge Current"
- battery_voltage_offset_for_fans_on:
- id: ${hostname}_battery_voltage_offset_for_fans_on
- name: "${HumanDeviceName} Battery Voltage Offset For Fans On"
- # eeprom_version:
- # id: ${hostname}_eeprom_version
- # name: "${HumanDeviceName} eeprom_version"
- pv_charging_power:
- id: ${hostname}_pv_charging_power
- name: "${HumanDeviceName} PV Charging Power"
- text_sensor:
- - platform: template
- name: "${HumanDeviceName} Uptime"
- id: ${hostname}_uptime_human
- icon: mdi:clock-start
- - platform: version
- name: "${HumanDeviceName} ESPHome Version"
- id: ${hostname}_esphome_version
- hide_timestamp: true
- - platform: wifi_info
- ip_address:
- id: ${hostname}_IP
- name: "${HumanDeviceName} Endereço IP"
- icon: mdi:ip-network
- ssid:
- id: ${hostname}_SSID
- name: "${HumanDeviceName} Rede Wifi"
- icon: mdi:wifi
- - platform: pipsolar
- pipsolar_id: ${hostname}_inverter0
- device_mode:
- id: ${hostname}_device_mode
- name: "${HumanDeviceName} Device Mode"
- # last_qpigs:
- # name: "${HumanDeviceName} last_qpigs"
- # last_qpiri:
- # name: "${HumanDeviceName} last_qpiri"
- # last_qmod:
- # name: "${HumanDeviceName} last_qmod"
- # last_qflag:
- # name: "${HumanDeviceName} last_qflag"
- binary_sensor:
- - platform: status
- id: ${hostname}_status
- name: "${HumanDeviceName} Status"
- device_class: connectivity
- - platform: pipsolar
- pipsolar_id: ${hostname}_inverter0
- add_sbu_priority_version:
- id: ${hostname}_add_sbu_priority_version
- name: "${HumanDeviceName} ADD SBU Priority Version"
- configuration_status:
- id: ${hostname}_configuration_status
- name: "${HumanDeviceName} Configuration Status"
- # scc_firmware_version:
- # id: ${hostname}_scc_firmware_version
- # name: "${HumanDeviceName} scc_firmware_version"
- load_status:
- id: ${hostname}_load_status
- name: "${HumanDeviceName} Load Status"
- battery_voltage_to_steady_while_charging:
- id: ${hostname}_battery_voltage_to_steady_while_charging
- name: "${HumanDeviceName} Battery Voltage To Steady While Charging"
- charging_status:
- id: ${hostname}_charging_status
- name: "${HumanDeviceName} Charging Status"
- scc_charging_status:
- id: ${hostname}_scc_charging_status
- name: "${HumanDeviceName} SCC Charging Status"
- ac_charging_status:
- id: ${hostname}_ac_charging_status
- name: "${HumanDeviceName} AC Charging Status"
- charging_to_floating_mode:
- id: ${hostname}_charging_to_floating_mode
- name: "${HumanDeviceName} Charging To Floating Mode"
- switch_on:
- id: ${hostname}_switch_on
- name: "${HumanDeviceName} switch_on"
- # dustproof_installed:
- # id: ${hostname}_dustproof_installed
- # name: "${HumanDeviceName} dustproof_installed"
- silence_buzzer_open_buzzer:
- id: ${hostname}_silence_buzzer_open_buzzer
- name: "${HumanDeviceName} Silence Buzzer Open Buzzer"
- overload_bypass_function:
- id: ${hostname}_overload_bypass_function
- name: "${HumanDeviceName} Overload Bypass Function"
- lcd_escape_to_default:
- id: ${hostname}_lcd_escape_to_default
- name: "${HumanDeviceName} LCD Escape To Default"
- overload_restart_function:
- id: ${hostname}_overload_restart_function
- name: "${HumanDeviceName} Overload Restart Function"
- over_temperature_restart_function:
- id: ${hostname}_over_temperature_restart_function
- name: "${HumanDeviceName} Over Temperature Restart Function"
- # backlight_on:
- # id: ${hostname}_
- # name: "${HumanDeviceName} backlight_on"
- switch:
- - platform: pipsolar
- pipsolar_id: ${hostname}_inverter0
- output_source_priority_utility:
- id: ${hostname}_output_source_priority_utility
- name: "${HumanDeviceName} Output Source Priority Utility"
- output_source_priority_solar:
- id: ${hostname}_output_source_priority_solar
- name: "${HumanDeviceName} Output Source Priority Solar"
- output_source_priority_battery:
- id: ${hostname}_output_source_priority_battery
- name: "${HumanDeviceName} Output Source Priority Battery"
- input_voltage_range:
- id: ${hostname}_input_voltage_range
- name: "${HumanDeviceName} Input VOltage Range"
- pv_ok_condition_for_parallel:
- id: ${hostname}_pv_ok_condition_for_parallel
- name: "${HumanDeviceName} PV Ok Condition For Parallel"
- pv_power_balance:
- id: ${hostname}_pv_power_balance
- name: "${HumanDeviceName} PV Power Balance"
- output:
- - platform: pipsolar
- pipsolar_id: ${hostname}_inverter0
- battery_recharge_voltage:
- id: ${hostname}_inverter0_battery_recharge_voltage_out
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement