방화벽(FortiGate)


FortiGate API의 장치 감지를 기반으로하는 FortiGate 재실 센서입니다.

FortiGate 셋업

USERNAME API 사용자로 FortiGate를 설정하고 최소 권한 프로파일을 지정하십시오.

config system accprofile
    edit "homeassistant_profile"
        set authgrp read
    next
end

config system api-user
    edit "USERNAME"
        set api-key API_KEY
        set accprofile "homeassistant_profile"
        set vdom "root"
        config trusthost
            edit 1
                set ipv4-trusthost <trusted subnets>
            next
        end
    next
end

설정

configuration.yaml 파일에 다음을 추가하십시오 :

# Example configuration.yaml entry
fortigate:
  host: HOST_IP
  username: YOUR_USERNAME
  api_key: YOUR_API_KEY

Configuration Variables

host

(string)(Required)

The IP address of the FortiGate device.

username

(string)(Required)

The username of the user that will connect to the FortiGate device.

api_key

(string)(Required)

The API key associated with the user.

devices

(string)(Optional)

The MAC addresses of the devices to monitor.

에러들

프로필의 권한이 충분하지 않으면 다음 오류가 발생합니다.

ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved