Dilbert66 / esphome-dsckeybus

Esphome custom configuration for interfacing to a DSC POWERSERIES alarm system
195 stars 37 forks source link

WT32-ETH01 With PCB Dev Version Compatible? #82

Closed BigHomie90 closed 1 year ago

BigHomie90 commented 1 year ago

I suppose that something's wrong with pin definitions.

substitutions:

change the name to suit your needs. This is what esphome will use as the friendly name for your component.

also used as a prefix for all fields

systemName: "dsc"

you can enter a list of user codes mapped to their names for display in armed/disarmed event messages

userCodes: "1:Master"

Only comes into effect if a password prompt occurs when arming eg. night mode

accessCode: !secret access_code

used to select the default partition associated with the alarm panel messages

defaultPartition: "1"

expanderAddr1: "1" # 1st zone expander emulator address to use . Set to 0 to disable. expanderAddr2: "0" # 2nd expander emulator address to use . Set to 0 to disable.

ESP32 Pins

dscClockPin: "22" dscReadPin: "21" dscWritePin: "18"

ESP8266 Pins

dscClockPin: "5"

dscReadPin: "4"

dscWritePin: "15"

maxZones: "32" # maximum amount of zones your system supports

esphome: name: $systemName platform: ESP32 board: wt32-eth01

platform: ESP8266

board: nodemcuv2

includes:

subdirectory path where custom component .h and .cpp files are located

- dscKeybusInterface-dev/

ESP32 only . Calls a public function within the custom component above. In this case syncs the time

to the panel 30 seconds after startup

on_boot: priority: -100 #everything initialized then:

ESP32 only . Syncs the time with the panel every hour

interval:

logger: baud_rate: 115200 level: DEBUG

API communications - ensure the mqtt: section is commented if using this protocol

api: password: !secret api_password

encryption:

 #key: !secret encryption_key

ota: password: !secret ota_password safe_mode: True on_begin: then:

MQTT communications - ensure the api: section is commented if using this protocol

mqtt:

broker: xxx.xxx.xxx.xxx #your mqtt broker address

port: 1883

username: mqttuser #your mqtt user name

password: !secret mqtt_password #your mqtt user pass

ethernet: type: LAN8720 mdc_pin: GPIO23 mdio_pin: GPIO18 clk_mode: GPIO0_IN phy_addr: 1 power_pin: GPIO16

status_led: pin: number: GPIO2 inverted: no

comment if using ESP8266 to conserve memory

time:

custom_component:

binary_sensor:

zone status open/close for each zone

text_sensor:

general system status online/disconnected

switch:

shows status of connection status to panel. You can disconnect before upload using the switch.

BigHomie90 commented 1 year ago

Changed ESP32 Pins and now is fine!

ESP32 Pins

dscClockPin: "15" dscReadPin: "14" dscWritePin: "4"