Not a isue but a request for help getting this running with modbus from ViperRNMC
I've made a template file for changing Fonske modbus entry's to Viper entry's(installed from HACS). I couldn't make templates for 2 they are: _discharging_cutoff_capacity _charging_cutoff_capacity
Next I had a problem with 1 entry that's a select in Fonske's setup and a switch in Viper's. This is what I came up with.
- name: "Marstek M1 RS485 Control Mode"
default_entity_id: select.marstek_m1_rs485_control_mode
unique_id: marstek_m1_rs485_control_mode
icon: mdi:connection
options: "{{ ['On', 'Off'] }}"
state: >
{% if is_state('switch.marstek_venus_modbus_rs485_besturingsmodus', 'on') %}
On
{% else %}
Off
{% endif %}
select_option:
- service: "switch.turn_{{ option | lower }}"
target:
entity_id: switch.marstek_venus_modbus_rs485_besturingsmodus
The final isue I have is when I deploy the Node Red flows I get a error, not realy a suprise but I know very little about Node Red.
Any help is appreciated.
Harry
I used this yaml https://github.com/fonske/MarstekVenusV3-modbus-TCP-IP/blob/main/marstek_m1_modbus_tcp.yaml and it has no cutoff capacity. Have a look in the other battery thread on the discord server. I have made a list of relevant entities for HBC. The control mode I think should be the other way around. Keep the enable and disable since hbc needs them. In the select option transfer the received enable/disable option value in a switch on or off. For the node-red i do not know. Perhaps Bob can help you.
In addition. Removing the viper integration and installing one from fonske is a much better plan.
I knew about Fonke githup and I could not find them in use either, I did see them commented out, so I think they are bob internal(I just wanted to be sure) and I'm not to worried about them. It's just about the naming convention the name they have is the name fonske uses "marstek_m1__charging_cutoff_capacity". Thanks about the disable/enable I'll update my template. I would like to keep using ViperRNMC because his development is still going strong(his last one was making the rs485 load less heavy, getting more values in one request) and he has all the Venus variants and I've an E and A(my A has 196 entity's and the E 116, he's still looking for more).
These are all the entity's I've found to be in use by Bob and are in my template file, there are only 17.
unique_id: marstek_m1_device_name
unique_id: marstek_m1_battery_state_of_charge
unique_id: marstek_m1_battery_voltage
unique_id: marstek_m1_battery_total_energy
unique_id: marstek_m1_ac_power
unique_id: marstek_m1_battery_power
unique_id: marstek_m1_inverter_state
unique_id: marstek_m1_battery_remaining_capacity
unique_id: marstek_m1_max_charge_power
unique_id: marstek_m1_max_discharge_power
unique_id: marstek_m1_forcible_charge_power
unique_id: marstek_m1_forcible_discharge_power
unique_id: marstek_m1_charge_to_soc
unique_id: marstek_m1_rs485_control_mode
unique_id: marstek_m1_user_work_mode
unique_id: marstek_m1_forcible_charge_discharge
unique_id: marstek_m1_backup_function
That is almost correct but not all fields are actively used: https://discord.com/channels/1422227123925680228/1507859984350842890/1510207582185328680
I know now that the Node Red error I showed is a general error saying something went wrong. The real error is this:
sorry jos1958 but when I'm logged in to discord and enable your discord link I get garbage my user name is wsvayvel or wsvayvel1919
Strange, go to the HBC server:
https://discord.gg/yeAGaE4kgy