well,
I just played with it, had some time
i just created an add-on, actually to test the hardware and the PR i submitted for HassOS, so now testing a dev version… i think we need to create an addon, especially for HassOS users , since the hardware itself can only be loaded with extra tools installed
for SLCAN => we need can-utils
for CAN => we need iproute2
both tools are not part of HassOS, so i added them to my add-on container
SLCAN is for me stabler, easier to bring down/up =>> while can was sometimes giving timeouts
anyway, i just played with it , for my project, i am already pleased if i can turn on/off services based on the canbus messages i receive, thats my first goal, thats why i created this add-on , so i dont need the esphome/mcp2515 anymore
next step is offcourse making an component, and not use restapi offcourse, but i am not a developer at all, i just google for scripts
if he is able to make a custom for our domotic system at home (dobiss), i thnk you will have a nice working example
so we need @OpenJeDi to help us
anyway @OpenJeDi , i tested canbus, i was able to turn on lights by sending canbus messages, works verry good!! also there is specific canbus message, if we put that on the bus, it will receive the states of all relays!! its like the poll sensor based on TCP we use now , so thats also verry good
that means, we dont need to use TCP at all anymore
basicly we can use your custom already, the send part should be ease to change, instead of sending to TCP, we need to send to canbus, the messages are about the same
for reading/polling states, not sure , i think you need to change code here, because, its not just 1 string that contains all relays, every canbus message is a state, so not sure how you can do this?