No, the zone number is 02, so that can not be the case.
Attached the log file.
Where do you get your knowledge on how to interpret the Visonic responses. Do you have a link where there information is shared?
I almost not dare to say this… since you’ve spent a lot of time on the serial thingie… but i’ve put together some code for a friends visonic powermax complete using a wemos and some arduino code.
It is based on some smartthings code that i altered to connect to mqtt instead.
If you want to have a go you can look at the code here:
It should probably be a matter of flashing your own wemos (d1r2) with this and connect it to your mqtt server.
My friend has been running this as daily driver with his alarm for quite some time now using HA mqtt-alarm and the built-in mqtt server in ha. It’s two-way integration enabling you to collect status from the sensors and arm/disarm using HA.
It’s not very well documented yet, but if anyone shows interest for this i can absolutely spend some minutes and plant a few instruction lines together with the code on git…
edit
the guy that built the original code also added MQTT support in his code, find that project here, not sure if he has two-way support in his mqtt or if he just sends data out. https://github.com/cjcharles0/SmartThingsPowerMaxESP8266
and
@davesmeghead
Has anything changed in the last 24 hours, code wise? I moved over to the binary_sensor coding and as of I think yesterday (approximately 19 hours ago) all of the binary_sensors appear to have disappeared or become undefined.
Hi,
Are you using the latest version 0.0.8.1 ??
If so then I’m confused as the only switch I create is to do with X10.
If not then can you please update to 0.0.8.1, try it again and if you still have problems then upload your log file again. Also, make sure you remove custom_components/sensor/visonic.py as it is no longer used.
In either case, when you upload you log file can you make sure you have the logger set to show debug for my Component, please see my post a few posts back.
So I appreciate what you’re thinking is here, you’re advertising a plugin for a completely different system (Samsung SmartThings) for a completely different way of connecting to the alarm panel. And in doing so, right in the middle of this forum thread, haven’t done a search for the alternative that you propose on these very forums, see here
I say advertising intentionally, if you check the SmartThings link from your post, there are people selling the necessary hardware.
If you wish to further your discussion on the SmartThings plugin, please do me the courtesy of doing so elsewhere.
I’ve made use that all components have been updated to that in the master branch. Attached is the log file following a reboot. I’ve also ensured that the sensor/visonic.py file has been removed.
I’m on 0.87.1
I’ve had a look through your log file and it is indeed now enrolling the sensor as Zone 2. That’s really good to see. I also see that when your panel tells me that it’s enrolled it also sets the zone tamper status, is that something you would expect?
The state of Z02 in the log file is
<state binary_sensor.visonic_z02=off;
device name=Z02,
friendly_name=Garagedeur voorzijde,
zone type name=Perimeter-Follow,
device_armed=True,
zone tamper=Yes,
battery_level=100,
device tamper=No,
visonic device=2,
zone open=No,
zone name=Garage,
zone type=8,
device_tripped=False,
zone chime=Off,
sensor type=UNKNOWN 41,
last_tripped_time=2019-02-14T13:39:49.277656
Although this goes away eventually and is set to No.
The sensor type is set to UNKNOWN 41 as I don’t know what sensor type 41 is. What is the visonic model number of the sensor please and I can add it to my code. Also what type of sensor is it i.e motion, magnet etc. (although if you give me the model number then I can look it up)
Can you check this please. Go in to HA and in to “Configuration”, in “developer tools” select the states “<>” and filter on visonic. Do you see the correct data?
I also see however that you’re still getting the telephone trouble status and I don’t know why, sorry.
OK, I’ve had a look at your log file and you have the problem that I can’t immediatelly resolve. Sometimes the panel just keeps sending a single status message out over and over again.
When the panel does this I’ve tried sending the initialisation commands to it, soft reset commands etc and the panel just ignores them and carries on regardless. What you’re seeing is the effect of this in HA, you get some zone information through but not a lot else. Sorry I can’t be any more help, I can only suggest you leave it alone for a while and go back to it later to try again. I’ll keep searching the internet to see if any other Visonic components for other systems have a solution.
Thanks for the reply.
The information about the sensor is now in the binary overview and in the states overview… Maybe it needed some more time.
The telephone line is not connected, so a valid warning.
I intend to use the Powermaster for detecting open/close/movement, to act on it in HA. Later on I will use it also as burglar alarm.
The unknow sensor type is a MC-302V magnet (http://catalog.visonic.com/powermaster/intrusion-detectors/18/).
Very indepth information at the domotica forum. Will have a good look at it to see if I can analyze my own data😁
I’ve had it running here overnight and have updated the version on Github to 0.0.8.2. I’ve added the sensor type for the Powermaster so you should get the “magnet” binary sensor in HA instead of the generic one (although you can customise this in HA anyway).
Yeah it is quite in depth. As I don’t have a Powermaster, if you work anything out then let me know and we can add it in to the Component.
@davesmeghead
I went back to first principles and striped out the component and re-installed. I’ve rebooted the alarm and everything seems to be back, except the switch which allows you to display the alarm panel properties. Attached the log file following a reboot.logs.yaml (165.3 KB)
I’ve checked and there is no switch.visonic_alarm_panel defined. Any thoughts?
Oh that’s good, I had a cursory look at the log file and it looks OK, no problems.
Ah yes, that’s the breaking change for version 0.8.0.0 onwards. I removed the switch and placed all its attributes in the alarm control itself, see “alarm_control_panel.visonic_alarm”. The only switches created are for X10 devices. The old switch didn’t do anything anyway, it was just a placeholder for the attributes.
I do say this on the Github page, you must have missed it, I hope it goes well.
Thanks for the change in the software. Works great. Planning to buy some ‘specific’ PowerMaster sensors, so will send you some new debug info in a short while.
Is the binary sensor information displayed in HA format or do you make the format? I see some redundant information, like zone type and zone type name, device name and visonic device or is just all the information you get from the sensor displayd?
Looked a bit in the code of the ‘pyvisonic’ program, what I saw was a lot of variables which are defined and read. Would’n it be easier to use a configuration file to load the ‘panel specific’ parameters? Would also make it easier to maintain the code.
Will look further in to it, but Python is not one of my programming skills unfortunately.
HA does all the formatting but you can customise it within HA if you want to. All I do in the binary_sensor is to define the device_class and HA does the rest.
I set all these as attributes of the sensor. If you go in to “developer tools” “states” i.e. “<>” and filter on visonic you’ll see all of these. You can use these attributes in scripts etc.
Yep, but what do I do with them all, there’s a lot of data I can extract from the EEPROM but what use is it, it just fills up HA
Perhaps but I prefer that it’s in this one file.
OK, just let me know the sensor types for each of the zones and I’ll add them in.
Hello there. I’m trying to install this in a PowerMaster 10. I got some help from @Hombre with the wiring and I’m pretty sure everything is as it should. I’m using a USR-WIFI232-A module. I can access its web settings page, and followed instructions. But all I get in the log is a lot of