Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Functionality request #43

Open
rvdgaag opened this issue Sep 10, 2024 · 3 comments
Open

Functionality request #43

rvdgaag opened this issue Sep 10, 2024 · 3 comments

Comments

@rvdgaag
Copy link

rvdgaag commented Sep 10, 2024

Hi I would like to have a button to switch off in total the Deye inverter, I believe modbus register 80 makes this possible ?

How do I add this to the yaml ?

@fabhund
Copy link

fabhund commented Sep 11, 2024

Please note this will not turn off he inverter completly it will only stop the inverter/charging function. The display etc. will still be operational.
Further it throws a F19, that is rather undocumented, so proceed with caution. Fx. if you turn it off, and for some reason you loose connection via.modbus you will not be able to turn it on via. the Display again.

Add this to your "Switch" segment in the YAML, and edit name, modbus ID etc. to your needs.
https://pastebin.com/mYznfnfg

switch:

  • platform: modbus_controller
    use_write_multiple: true
    modbus_controller_id: Put your modbus_controller_id here
    name: Deye12k_Power_switch
    register_type: holding
    address: 80
    bitmask: 1
    entity_category: config

@rvdgaag
Copy link
Author

rvdgaag commented Sep 11, 2024

will it also stop the discharging of the battery ? Thanks by the way !

My goals is to switch the Deye off when a fire alarm is triggered in my smart home system for safety reasons.

@fabhund
Copy link

fabhund commented Sep 12, 2024

It should. The inverter trips and stops all inverting. But test it out for yourself, again there is very little documentation for what it does, and throwing an error is also wierd.
As an alternative you could re-wire the on/off switch of the inverter to a external Relay controlled via ESP32 (ESPhome) this way you can use the existing built-in function to start/stop the inverter. 2.nd alternative is to mount a "Switchbot" on top of the button to physically push the button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants