This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| mission:log:2022:11:12:pimp-my-riden-rd-6018w [2022-11-22 14:20] – created chrono | mission:log:2022:11:12:pimp-my-riden-rd-6018w [2025-04-24 17:39] (current) – chrono | ||
|---|---|---|---|
| Line 22: | Line 22: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | |||
| + | === Update === | ||
| + | |||
| + | As requested, here is the esphome config for it: | ||
| + | |||
| + | <code yaml> | ||
| + | ################################################################################ | ||
| + | # RD-6018W ESP-12F Configuration | ||
| + | # V1.0 chrono (Apollo-NG) 2022-11-13 | ||
| + | |||
| + | substitutions: | ||
| + | name: ' | ||
| + | friendly_name: | ||
| + | |||
| + | ################################################################################ | ||
| + | # GENERAL | ||
| + | |||
| + | esphome: | ||
| + | name: | ||
| + | platform: | ||
| + | board: | ||
| + | |||
| + | wifi: | ||
| + | ssid: | ||
| + | password: | ||
| + | domain: | ||
| + | fast_connect: | ||
| + | |||
| + | logger: | ||
| + | baud_rate: | ||
| + | |||
| + | # Enable Home Assistant API and set reboot timeout | ||
| + | api: | ||
| + | reboot_timeout: | ||
| + | |||
| + | # Enable OTA updates | ||
| + | ota: | ||
| + | |||
| + | # Time sync needed for total_daily_energy calcs | ||
| + | time: | ||
| + | - platform: | ||
| + | id: | ||
| + | timezone: | ||
| + | |||
| + | ################################################################################ | ||
| + | # BUS Config | ||
| + | |||
| + | uart: | ||
| + | tx_pin: 1 | ||
| + | rx_pin: 3 | ||
| + | baud_rate: 1000000 | ||
| + | debug: | ||
| + | |||
| + | modbus_controller: | ||
| + | address: 0x01 | ||
| + | update_interval: | ||
| + | |||
| + | ################################################################################ | ||
| + | # SENSORS | ||
| + | |||
| + | text_sensor: | ||
| + | |||
| + | - platform: | ||
| + | name: " | ||
| + | icon: | ||
| + | |||
| + | |||
| + | sensor: | ||
| + | |||
| + | - platform: | ||
| + | name: " | ||
| + | update_interval: | ||
| + | icon: | ||
| + | |||
| + | - platform: | ||
| + | name: " | ||
| + | update_interval: | ||
| + | icon: | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | register_type: | ||
| + | address: 4 | ||
| + | register_count: | ||
| + | bitmask: 0xFFFF | ||
| + | value_type: U_DWORD | ||
| + | unit_of_measurement: | ||
| + | state_class: | ||
| + | device_class: | ||
| + | lambda: | | ||
| + | return data[item-> | ||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | register_type: | ||
| + | address: 34 | ||
| + | register_count: | ||
| + | bitmask: 0xFFFF | ||
| + | value_type: U_DWORD | ||
| + | unit_of_measurement: | ||
| + | state_class: | ||
| + | device_class: | ||
| + | lambda: | | ||
| + | return data[item-> | ||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | register_type: | ||
| + | address: 10 | ||
| + | value_type: U_WORD | ||
| + | unit_of_measurement: | ||
| + | state_class: | ||
| + | device_class: | ||
| + | accuracy_decimals: | ||
| + | filters: | ||
| + | - multiply: 0.01 | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | register_type: | ||
| + | address: 11 | ||
| + | value_type: U_WORD | ||
| + | unit_of_measurement: | ||
| + | state_class: | ||
| + | device_class: | ||
| + | accuracy_decimals: | ||
| + | filters: | ||
| + | - multiply: 0.01 | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | register_type: | ||
| + | address: 12 | ||
| + | value_type: U_WORD | ||
| + | unit_of_measurement: | ||
| + | state_class: | ||
| + | device_class: | ||
| + | accuracy_decimals: | ||
| + | filters: | ||
| + | - multiply: 0.001 | ||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | address: 13 | ||
| + | register_type: | ||
| + | value_type: U_WORD | ||
| + | unit_of_measurement: | ||
| + | state_class: | ||
| + | device_class: | ||
| + | accuracy_decimals: | ||
| + | filters: | ||
| + | - multiply: 0.01 | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | register_type: | ||
| + | address: 14 | ||
| + | value_type: U_WORD | ||
| + | unit_of_measurement: | ||
| + | state_class: | ||
| + | device_class: | ||
| + | accuracy_decimals: | ||
| + | filters: | ||
| + | - multiply: 0.01 | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | internal: true | ||
| + | register_type: | ||
| + | address: 40 | ||
| + | value_type: U_DWORD | ||
| + | unit_of_measurement: | ||
| + | state_class: | ||
| + | device_class: | ||
| + | accuracy_decimals: | ||
| + | filters: | ||
| + | - multiply: 0.001 | ||
| + | |||
| + | switch: | ||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | address: 15 | ||
| + | register_type: | ||
| + | bitmask: 1 | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | address: 18 | ||
| + | register_type: | ||
| + | bitmask: 1 | ||
| + | |||
| + | number: | ||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | address: 8 | ||
| + | value_type: U_WORD | ||
| + | min_value: 0.01 | ||
| + | max_value: 60.0 | ||
| + | step: 0.01 | ||
| + | lambda: return x / 100.0f; | ||
| + | multiply: 100 | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | address: 9 | ||
| + | value_type: U_WORD | ||
| + | min_value: 0.01 | ||
| + | max_value: 18.0 | ||
| + | step: 0.01 | ||
| + | lambda: return x / 100.0f; | ||
| + | multiply: 100 | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | entity_category: | ||
| + | address: 82 | ||
| + | value_type: U_WORD | ||
| + | min_value: 0.01 | ||
| + | max_value: 60.0 | ||
| + | step: 0.01 | ||
| + | lambda: return x / 100.0f; | ||
| + | multiply: 100 | ||
| + | |||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | entity_category: | ||
| + | address: 83 | ||
| + | value_type: U_WORD | ||
| + | min_value: 0.01 | ||
| + | max_value: 18.0 | ||
| + | step: 0.01 | ||
| + | lambda: return x / 100.0f; | ||
| + | multiply: 100 | ||
| + | |||
| + | binary_sensor: | ||
| + | - platform: modbus_controller | ||
| + | name: ' | ||
| + | address: 32 | ||
| + | register_type: | ||
| + | bitmask: 1 | ||
| + | </ | ||
| If you want to see more, please [[https:// | If you want to see more, please [[https:// | ||