iotdevicesdev/ps4iot-v1-homeassistant-esphome-example
IoT-devices PS4IoT_V1 Smart Power Supply Unit Module Home Assistant server with ESPHome plugin Basic Setup Example in "managed by MCU mode".
PS4IoT_V1 Home Assistant with ESPHome setup example
PS4IoT_V1 Smart Power Supply Unit Module is tested under Home Assistant server with ESPHome plugin specially deployed test environment. The PS4IoT_V1 demo setup is placed in "managed by MCU mode" using ESP8266 as the MCU.
Hackaday Project Page: https://hackaday.io/project/183099-ps4iotv1-smart-power-supply-unit-module
Documentation
- Product description https://iot-devices.com.ua/en/product/ps4iot-smart-power-module/
- Datasheet https://iot-devices.com.ua/wp-content/uploads/2021/12/ps4iot_v1-power-supply-unit-description-eng.pdf
- Quick Fact Sheet https://iot-devices.com.ua/wp-content/uploads/2021/12/en-ps4iot_v1-quick-facts-sheet.pdf
What's in example files
To enable the module in its full capacity, you need to create a yaml configuration script in ESPHome.
- nodemcu-ps4iot-v1.yaml - contains ESPHome node-side configuration script example
In addition, you must add a synthetic battery voltage rate sensor to the Home Assistant server's general
'configuration.yaml' configuration file:
- configuration.yaml - contains Home Assitant server-side configuration script example
PS4IoT in managed by MCU mode setup example
Node-side (ESPHome plugin node config) entities:
The configuration must include the following entities:
- sensor.nodemcu_battery_voltage_level
- sensor.battery_voltage_change_per_hour
- binary_sensor.nodemcu_ps4iot_external_power_supply_detector
- switch.nodemcu_ps4iot_bat_charge_enable
- binary_sensor.nodemcu_ps4iot_red_charge_in_progress
- binary_sensor.nodemcu_ps4iot_blue_charge_completed
Server-side (Home Assistant general config) entities:
- sensor.battery_voltage_change_per_hour
Additional server-sided text state sensors:
- sensor.nodemcu_ps4iot_battery_level_text_state
- sensor.nodemcu_ps4iot_charge_text_state
- sensor.nodemcu_ps4iot_numeric_battery_level_value
Install
- Download .yaml example files
- Under ESPHome plugin menu in your Home Assistant Server instance create new ESP8266 or ESP32 node.
- Make all needed modifications and additions to your node's yaml-file.
- Compile and use
- Also you may add server-aided additional state sensors using configuration.yaml file as in examples.
Resulting Home Assistant dashboard basic widget example
Buy PS4IoT_V1 Smart Power Supply Unit Module:
On Tindie: https://www.tindie.com/products/iotdev/ps4iot-smart-power-supply-unit-module/
IoT-devices Online Shop: https://iot-devices.com.ua/en/
Watch PS4IoT_V1 under Home Assistant / ESPHome demo video



