Yes indeed , my custom dobiss component should go in sensor integration, not template…
The dobiss sensor is indeed a template one
Yes indeed , my custom dobiss component should go in sensor integration, not template…
The dobiss sensor is indeed a template one
That’s better, but you need to change my script a bit, and format it better so it looks like mine , I have for every output the state also, like 00 or 01 behind the :
can you uncomment this line in the code?
_LOGGER.warning(data)
also print thos one too:
_LOGGER.warning(message.dlc)
And then see how the “data” is captured, you can see it then in the homeassistant.log file
I think you need to modify my code and make the strings different…
In second line 03 08 00
Is 03 the module, 08 the relay and 00 the state ?
Yep think so.
The strange thing is that I don’t see any logs added.
When I now press a switch nothing is added to the log.
Yeah, just change the formatting then, shift it up 2 places
Thanks to chatgpt i’m understanding roughly how the code works.
Gues i have to play with the 2:6 and 6:8 numbers?
Yes indeed, try changing to 0:4 and 4:6
0:4 are module + relay , 4 characters
4:6 are states 00 or 01
Try it, otherwise I compare it with mine, was a long time ago
Cool, have you tried sending messages? To turn something on? You can also send that “0” to receive all current states , I do that on restart of HA, so all lights are synched with correct states
Hmm that doesn’t seem to work yet.
Wil look at it further tomorow
Thanks for the help, would have been impossible to do it on my own.
Ok , but just try sending first from an ssh terminal, with can send …
Seems your canbus data is different, can you try below?
For turning on/off an relay ?
cansend can0 00800102#030801
cansend can0 00800102#030800
OR
cansend can0 00800102#00030801
cansend can0 00800102#00030800
For getting ALL states
cansend can0 00800101#00
If it doesnt work, i see on your drawing a button? Am i right?
I believe thats a test button for getting all states? If you press on it, i think it loads all states, so when you do a candump, you see how the message is sended…
Button is not giving any canbus message’s.
The cansend commands also don’t do anything.
Hmm, what if you do a dump again, and turn on light with a button on / off can you show it to me?
Also try turning on/off with the dobiss max tool software , maybe it’s different
Just tryed it again and when you pres longer it goes into a testing mode and you can togle all inputs on and of one at a time.
Above is Off below is On
hi, when pressing indeed the button on the wall you do a toggle probably, thats “02”
so i think the first line is the command, try sending that one as a test?
the second line is the state of the light 00 for off , 01 for on
so try sending something like:
cansend can0 01FC0302#030802FFFF64FFFF for toggle
cansend can0 01FC0302#030801FFFF64FFFF for on
cansend can0 01FC0302#030800FFFF64FFFF for off