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'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.
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